最近下载了Xcode 11 Beta测试我的iOS 13应用程序,但遇到一个问题我似乎无法解决。每次在 [CP] Copy Pods Resources 步骤上构建时都会失败,并显示“Command PhaseScriptExecution failed with a nonzero exit code”错误。现在我知道这是任何运行脚本阶段失败时的错误,但通常会提供一些有用的信息与此错误一起。
错误输出:
ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target 11.0 --output-format human-readable-text --compile /Users/chris/Library/Developer/Xcode/DerivedData/SmartPager-dcfjsnhrgkjfeabbvafghvwsrsxr/Build/Products/Debug-iphoneos/SmartPager Sandbox.app/JSQMessagesViewController.nib
/Users/chris/Work/projectname/Pods/JSQMessagesViewController/JSQMessagesViewController/Controllers/JSQMessagesViewController.xib --sdk /Users/chris/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk --target-device ipad --target-device iphone
2019-09-06 13:26:17.003 IBAgent-iOS[39395:514843] Incorrect screen size for <UIScreen: 0x7fb0e05245a0; bounds = {{0, 0}, {0, 0}}> in UICollectionViewData
ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target 11.0 --output-format human-readable-text --compile /Users/chris/Library/Developer/Xcode/DerivedData/SmartPager-dcfjsnhrgkjfeabbvafghvwsrsxr/Build/Products/Debug-iphoneos/SmartPager Sandbox.app/JSQMessagesCollectionViewCellIncoming.nib /Users/chris/Work/projectname/Pods/JSQMessagesViewController/JSQMessagesViewController/Views/JSQMessagesCollectionViewCellIncoming.xib --sdk /Users/chris/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk --target-device ipad --target-device iphone
Command PhaseScriptExecution failed with a nonzero exit code
相关信息: 据我所知,这可能与我们正在使用的已弃用的cocoapod有关,特别是JSQMessagesViewController(7.3.5)。显然,使用已弃用的库并不理想,但在Xcode 10中它可以正常构建和运行,因此我不知道问题可能是什么。在另一个项目中,我尝试只添加此pod,但会抛出相同的错误。关于“屏幕尺寸不正确”的那一行似乎只是一个警告,而不是错误,因为在Xcode 10中,使用同一行编译是正确的。
我已经尝试重新启动计算机、清除、删除派生数据等所有常规操作。现在我不知道还要去哪里找了。如有建议,将不胜感激。谢谢!