问题描述
直到现在,我们的项目和所有关联的广告连播都已位于目标c中。我们想使用PromiseKit的最新版本,因此添加了use_frameworks!到我们的podfile。在将PromiseKit添加到PodFile之前,我确认项目已运行。将PromiseKit添加到podfile后,我得到一个'命令/ bin / sh失败,退出代码为-1',说'PromiseKit.framework:无法识别,无效或不合适的捆绑格式。'
Until now our project and all associated pods have been in objective c. We wanted to use the latest version of PromiseKit and so added use_frameworks! to our podfile. Before adding PromiseKit to the PodFile, I confirmed the project runs. After adding PromiseKit to the podfile, I get a 'Command /bin/sh failed with exit code -1' saying 'PromiseKit.framework: bundle format unrecognized, invalid, or unsuitable.'
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,仍然会发生此错误。
After removing DerivedData, Pods, .xcworkspace, and Podfile.lock, and then pod installing, this error still occurs.
推荐答案
尝试 pod deintegrate
,当我将项目迁移到 use_frameworks!
时,它为我解决了奇怪的问题。
Try pod deintegrate
, it worked for me to solve weird problems when I was migrating a project to use_frameworks!
.
$ pod deintegrate Project.xcodeproj
$ pod install
我已记录了遇到的问题以及如何解决这些问题。
I have documented the problems I had and how I fixed them here.
这篇关于PromiseKit.framework:无法识别,无效或不合适的捆绑格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!