2016-11-29 26 views
1

从Xcode8.0升级到Xcode8.1后,代码签名失败了几个Braintree捆绑。Xcode8.1无法编码签名文件

尝试了很多后,无法找到任何解决方案。 在这里我发布错误日志。

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

看起来像一个本地化错误。可能的模拟器使用另一种首选语言。您可以在设置应用程序中设置它(常规 - >语言) – shallowThought

回答

6

我从这个Apple Developer forum链接得到的答案。这里也有这么多的解决方案建议,但对我来说是什么工作在下面。

在导航 - >目标 - >您的BundleName - >签名(启用开发签名) - >身份(选择Info.plist文件)中选择豆荚。

  1. 首先在您的项目中选择Pod(.xcworkspace)。
  2. 然后selecr包导致代码签名错误。 这里在我的情况下Braintree-Drop-In-Localization.bundlePods-InstaCare-Braintree-Braintree-Drop-In-Localization.bundle是两个文件导致错误。

enter image description here

  • 然后点击Choose Info.plist file按钮。它会弹出如下图所示。
  • enter image description here

  • 清理项目和运行。它将在模拟器上以及设备上工作。