【发布时间】:2019-02-24 13:56:43
【问题描述】:
每次我构建控制台时都会显示此消息。
CodeSign /Users/admin/Desktop/AppStoreBuild/Project201/build/Debug-iphonesimulator/Project.app(目标:Desker) cd /Users/admin/Desktop/AppStoreBuild/Project201 export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
签名身份:“-”
/usr/bin/codesign --force --sign - --entitlements /Users/admin/Desktop/AppStoreBuild/Project201/build/Project.build/Debug-iphonesimulator/Project.build/Project.app.xcent --timestamp=none /Users/admin/Desktop/AppStoreBuild/Project201/build/Debug-iphonesimulator/Project.app
/Users/admin/Desktop/AppStoreBuild/Project201/build/Debug-iphonesimulator/Project.app:不允许资源分叉、Finder 信息或类似的碎屑 Command CodeSign 失败,退出代码为非零
... 有什么方法可以确定此故障的原因吗?当我尝试在模拟器中运行时,它显示签名身份:“-”。为什么我们需要在模拟器中签名身份?还有一件事是,如果我退出 Xcode 并重新启动,它会在我更改代码时正确构建,或者添加方法会再次构建失败。
【问题讨论】: