从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项目在设备上运行良好,并能够创建归档文件来分发它。但没有在模拟器上工作。
如果有谁面临同样的问题,请帮助我。
发布于 2016-11-30 06:31:47
我从这个苹果开发者论坛 link.Here那里得到了答案,也有这么多的解决方案,但是下面是对我有用的答案。
在导航->目标->您的BundleName ->签名(启用开发签名)->标识(选择Info.plist文件)中选择Pods。
Braintree-Drop-In-Localization.bundle和Pods-InstaCare-Braintree-Braintree-Drop-In-Localization.bundle是两个导致错误的文件。

Choose Info.plist file按钮。它将弹出如下所示。

https://stackoverflow.com/questions/40866410
复制相似问题