从Xcode8.0升级到Xcode8.1后,几个Braintree捆绑代码签名失败。
经过多次尝试后,无法找到任何解决方案。 这里我发布了错误日志。
CodeSign /Users/Arvaan/Library/Developer/Xcode/DerivedData/InstaCare-bielwuzaqgqgngcpffjnjballruv/Build/Products/Debug-iphonesimulator/Braintree-Drop-In-Localization.bundle
cd /Users/Arvaan/Documents/BitBucket/iOS/2016/Xcode8_1/New/Instacare/Pods
export CODESIGN_ALLOCATE=/Applications/Xcode8_1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export PATH="/Applications/Xcode8_1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode8_1.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
Signing Identity: "-"
/usr/bin/codesign --force --sign - --timestamp=none /Users/Arvaan/Library/Developer/Xcode/DerivedData/InstaCare-bielwuzaqgqgngcpffjnjballruv/Build/Products/Debug-iphonesimulator/Braintree-Drop-In-Localization.bundle
/Users/Arvaan/Library/Developer/Xcode/DerivedData/InstaCare-bielwuzaqgqgngcpffjnjballruv/Build/Products/Debug-iphonesimulator/Braintree-Drop-In-Localization.bundle: bundle format unrecognized, invalid, or unsuitable
Command /usr/bin/codesign failed with exit code 1
项目在设备上正常运行,并且还能够创建存档以进行分发。但不适用于模拟器。
如果有人遇到同样的问题,请帮助我。
答案 0 :(得分:6)
我从这个Apple Developer forum链接得到了回答。这也提出了很多解决方案,但下面是对我有用的。
在导航中选择窗格 - >目标 - >你的BundleName - >签名(启用开发签名) - >身份(选择Info.plist文件)。