2016-08-11 60 views
0

到目前爲止,我們的項目和所有關聯的吊艙已經在客觀的c。我們想要使用最新版本的PromiseKit,並添加了use_frameworks!到我們的podfile。在將PromiseKit添加到PodFile之前,我確認了項目運行。在將PromiseKit添加到podfile後,我得到'Command/bin/sh失敗,退出代碼-1',說'PromiseKit.framework:捆綁格式無法識別,無效或不適用'。PromiseKit.framework:捆綁格式無法識別,無效或不適用

sent 2733061 bytes received 98 bytes 5466318.00 bytes/sec 
total size is 2732456 speedup is 1.00 
Code Signing /Users/bryanboyko/XCode/HereOne-iOS/HereOne/Build/Products/Debug-iphoneos/HereOne.app/Frameworks/Parse.framework with Identity iPhone Developer: Bryan Boyko (2J2F768B2X) 
/usr/bin/codesign --force --sign 453628556ADD8E5593F102CEF9634DB02042AA98 --preserve-metadata=identifier,entitlements "/Users/bryanboyko/XCode/HereOne-iOS/HereOne/Build/Products/Debug-iphoneos/HereOne.app/Frameworks/Parse.framework" 
/Users/bryanboyko/XCode/HereOne-iOS/HereOne/Build/Products/Debug-iphoneos/HereOne.app/Frameworks/Parse.framework: replacing existing signature 
rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/bryanboyko/XCode/HereOne-iOS/HereOne/Build/Products/Debug-iphoneos/PromiseKit.framework" "/Users/bryanboyko/XCode/HereOne-iOS/HereOne/Build/Products/Debug-iphoneos/HereOne.app/Frameworks" 
building file list ... done 
PromiseKit.framework/ 

sent 102 bytes received 26 bytes 256.00 bytes/sec 
total size is 0 speedup is 0.00 
Code Signing /Users/bryanboyko/XCode/HereOne-iOS/HereOne/Build/Products/Debug-iphoneos/HereOne.app/Frameworks/PromiseKit.framework with Identity iPhone Developer: Bryan Boyko (2J2F768B2X) 
/usr/bin/codesign --force --sign 453628556ADD8E5593F102CEF9634DB02042AA98 --preserve-metadata=identifier,entitlements "/Users/bryanboyko/XCode/HereOne-iOS/HereOne/Build/Products/Debug-iphoneos/HereOne.app/Frameworks/PromiseKit.framework" 
/Users/bryanboyko/XCode/HereOne-iOS/HereOne/Build/Products/Debug-iphoneos/HereOne.app/Frameworks/PromiseKit.framework: bundle format unrecognized, invalid, or unsuitable 
Command /bin/sh failed with exit code 1 

刪除DerivedData,Pods,.xcworkspace和Podfile.lock,然後安裝pod後,仍會出現此錯誤。

回答

5

嘗試pod deintegrate,它在我將項目遷移到use_frameworks!時解決了奇怪的問題。

$ pod deintegrate Project.xcodeproj 
$ pod install 

我已經證明我有問題,我是如何解決他們here

3

升級到Xcode 8.3.1後,其他框架出現同樣的錯誤。通過刪除解決~/Library/Developer/Xcode/DerivedData/

相關問題