Xcode8.1 无法对 .bundle 文件进行联合签名

Xcode8.1 fails to codesign .bundle file

从 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

项目 运行 在设备上运行良好,也能够创建存档来分发它。但不能在模拟器上工作。

如果有人遇到同样的问题,请帮助我。

我从这个 Apple Developer forum link.Here 中得到了答案,还有很多建议的解决方案,但下面是对我有用的。

Select Pods in the navigation --> TARGETS --> your BundleName --> Signing(Enable Development Signing) --> Identity(Choose Info.plist File).

  1. 您项目中的第一个 select Pod(.xcworkspace)。
  2. 然后选择导致代码签名错误的包。 在我的例子中,Braintree-Drop-In-Localization.bundlePods-InstaCare-Braintree-Braintree-Drop-In-Localization.bundle 是导致错误的两个文件。

  1. 然后点击Choose Info.plist file按钮。它会弹出如下所示。

  1. 清理项目并 运行。它可以在模拟器和设备上运行。