ios - PromiseKit.framework : bundle format unrecognized, 无效或不合适

标签 ios objective-c cocoapods bundle code-signing

到目前为止,我们的项目和所有关联的 pod 都在 objective-c 中。我们想使用最新版本的 PromiseKit,因此添加了 use_frameworks!到我们的播客文件。在将 PromiseKit 添加到 PodFile 之前,我确认项目运行。将 PromiseKit 添加到 podfile 后,我收到“Command/bin/sh failed with exit code -1”提示“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,还是出现这个错误。

最佳答案

试试 pod deintegrate,当我将项目迁移到 use_frameworks! 时,它帮我解决了奇怪的问题。

$ pod deintegrate Project.xcodeproj
$ pod install

我已经记录了我遇到的问题以及我是如何解决这些问题的here .

关于ios - PromiseKit.framework : bundle format unrecognized, 无效或不合适,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38904170/

相关文章:

ios - 构建基于 CocoaPods 的 Xcode 工作区时 Jenkins 中的权限错误

iOS Cocoapods 问题 : No such module in parts of my project (custom folder & Apple Watch target)

iphone - 无法在 EKEvent 中编程开始日期

ios - 是否可以在 2 个 iOS 应用程序之间创建链接?

ios - NSNumber 在 Objective-C 中存储 NSDictionary 的对象

c - 无法将 C 代码链接到 Objective C : Undefined symbols for architecture arm64

ios - 如何将当前框架发布为cocoapods而不创建新框架?

ios - 选择和取消选择 UITableViewCells - Swift

ios - 如何快速以全屏模式打开 VLC

objective-c - 示例的编码 wav 文件