从Xcode 10.0 beta 2更新到Xcode 10.0 beta 3我现在在iOS项目的构建时遇到此错误:
sourcekit:[1:connection-event-handler:10499:0.0000] Connection interrupttsourcekit:[1:updateSemanticEditorDelay:10499:0.0007]禁用10 secondssourcekit的语义编辑器:[1:pingService:10499:0.0007] pinging servicesourcekitten:连接SourceKitService恢复!
连接中断
永远不要为sourcekitd失败的文件调用此文件:file File + Cache.swift,第127行
/Users/Coeur/Library/Developer/Xcode/DerivedData/My-App-eloayqptodupvfhbyegtkncnhcpu/Build/Intermediates.noindex/My-App. build/UAT-iphonesimulator/My-App-Debug.build/Script-379156A71D62F5C100574D04.sh:第2行:34382中止陷阱:6"$ {PODS_ROOT}/SwiftLint/swiftlint"
命令PhaseScriptExecution失败并返回非零退出代码
Swift 4.1
CocoaPods 1.5.3
SwiftLint 0.26.0
Showing Recent Messages:-1: mkdir -p /Users/spritzindia/Library/Developer/Xcode/DerivedData/Contigo-atftiouzrdopcmcpprphpilawwzm/Build/Products/Debug-iphonesimulator/Contigo.app/Frameworks
Run Code Online (Sandbox Code Playgroud)
显示最近的消息:-1:rsync --delete -av --filter P。*。?????? --filter“-CVS /” --filter“-.svn /” --filter“-.git /” --filter“-.hg /” --filter“-Headers” --filter“-PrivateHeaders”- -filter“-模块”“ /用户/pothi/Library/Developer/Xcode/DerivedData/Contigo-atftiouzrdopcmcpprphpilawwzm/Build/Products/Debug-iphonesimulator/IQKeyboardManagerSwift/IQKeyboardManagerSwift.framework”“ /用户/ pothi / Library / Developer / X DerivedData / Contigo-atftiouzrdopcmcpprphpilawwzm / Build / Products / Debug-iphonesimulator / Contigo.app / Frameworks”
命令PhaseScriptExecution失败,退出代码非零
我删除了衍生数据。我已经尝试过:钥匙串访问->右键单击登录->再次锁定并解锁->清除Xcode项目,重新启动机器,没有用
尝试归档项目时,如何解决“命令PhaseScriptExecution失败,退出代码非零”错误。
我正在使用那些图书馆
pod 'IQKeyboardManagerSwift'
pod 'SDWebImage', '~> 4.0'
pod 'KRPullLoader'
pod 'Paytm-Payments'
Run Code Online (Sandbox Code Playgroud) 这是我第一次完成归档我的应用程序的过程,我的问题是,当我构建项目时,它构建得很好,它在模拟器上比物理 iPad 上都运行得很好,但是当我选择Archive它时,它会失败并显示错误消息Command PhaseScriptExecution failed with a nonzero exit code 31merror: Unable to read GoogleService-Info.plist at path。在 SO 上的其他帖子之后,我确保存在 in Build Phases/Copy Bundle Resources GoogleService-Info.plist。我还检查了GoogleService-Info.plist是否正确选择了Target Membership。我试图删除,将其扔进垃圾箱,然后通过拖放将其重新添加到项目中。我重新启动了 Xcode,但没有解决它。关于我还应该看什么的任何想法?它可能与我的开发人员证书有关吗?一如既往,非常感谢。
更新:
我尝试卸载 Pod 并重新安装它们,但没有任何更改。我再次GoogleService-Info.plist从 Firebase下载了,但这也没有什么区别。
更新 2:
我删除了 firebase 应用程序并重新创建了一个。重新下载了GoogleService-Info.plist它,它在 iPad 和模拟器上都可以正常工作。
但仍然存档失败无法读取GoogleService-Info.plist..
我实际上是在为 iOS 9.3 及更高版本进行部署……这与它有关系吗?