由于信号 9 Xcode 11 beta,编译命令失败
Posted
技术标签:
【中文标题】由于信号 9 Xcode 11 beta,编译命令失败【英文标题】:compile command failed due to signal 9 Xcode 11 beta 【发布时间】:2019-07-31 19:06:28 【问题描述】:大约 4-5 天后我无法解决此错误...我正在使用 Xcode 11 beta 1,每次运行我的应用程序时都会收到错误消息“Command CompileSwiftSources failed with a nonzero exit code”
我已删除派生数据。我也尝试过移除所有的 pod 并重新安装它们!我试过在不同的 iPhone 模拟器上运行它。
我收到的错误消息实际上比下面描述的还要长,但我只是查看了其中重要的部分并将其保留在此处。这是我收到的(一部分)错误消息:
-I/Users/kanishka/Library/Developer/Xcode/DerivedData/someApp-ffkcnnipndtmimasqjahqhgwthxq/Build/Products/Debug-iphonesimulator/GTMSessionFetcher/GTMSessionFetcher.framework/Headers -Xcc -I/Users/kanishka/Library/Developer/ Xcode/DerivedData/someApp-ffkcnnipndtmimasqjahqhgwthxq/Build/Products/Debug-iphonesimulator/GoogleUtilities/GoogleUtilities.framework/Headers -Xcc -I/Users/kanishka/Library/Developer/Xcode/DerivedData/someApp-ffkcnnipndtmimasqjahqhgwthxq/Build/Products/Debug- iphonesimulator/Protobuf/Protobuf.framework/Headers -Xcc -I/Users/kanishka/Library/Developer/Xcode/DerivedData/someApp-ffkcnnipndtmimasqjahqhgwthxq/Build/Products/Debug-iphonesimulator/SwiftMessages/SwiftMessages.framework/Headers -Xcc -I/用户/kanishka/Library/Developer/Xcode/DerivedData/someApp-ffkcnnipndtmimasqjahqhgwthxq/Build/Products/Debug-iphonesimulator/gRPC-C++/grpcpp.framework/Headers -Xcc -I/Users/kanishka/Library/Developer/Xcode/DerivedData/ someApp-ffkcnnipndtmimasqjahqhgwthxq/Build/Products/Debug- iphonesimulator/gRPC-Core/grpc.framework/Headers -Xcc -I/Users/kanishka/Library/Developer/Xcode/DerivedData/someApp-ffkcnnipndtmimasqjahqhgwthxq/Build/Products/Debug-iphonesimulator/leveldb-library/leveldb.framework/Headers - Xcc -I/Users/kanishka/Library/Developer/Xcode/DerivedData/someApp-ffkcnnipndtmimasqjahqhgwthxq/Build/Products/Debug-iphonesimulator/nanopb/nanopb.framework/Headers -Xcc -I/Users/kanishka/Desktop/someApp/Pods/ Headers/Public -Xcc -I/Users/kanishka/Desktop/someApp/Pods/Headers/Public/Firebase -Xcc -I/Users/kanishka/Desktop/someApp/Pods/Headers/Public/FirebaseAnalyticsInterop -Xcc -I/Users/ kanishka/Desktop/someApp/Pods/Headers/Public/FirebaseAuthInterop -Xcc -I/Users/kanishka/Desktop/someApp/Pods/Firebase/CoreOnly/Sources -Xcc -I/Users/kanishka/Library/Developer/Xcode/DerivedData/ someApp-ffkcnnipndtmimasqjahqhgwthxq/Build/Intermediates.noindex/someApp/Debug-iphonesimulator/someApp(Update).build/DerivedSources-normal/x86_64 -Xcc -I/Users/kanishka/Library/Developer/Xcode /DerivedData/someApp-ffkcnnipndtmimasqjahqhgwthxq/Build/Intermediates.noindex/someApp/Debug-iphonesimulator/someApp(Update).build/DerivedSources/x86_64 -Xcc -I/Users/kanishka/Library/Developer/Xcode/DerivedData/someApp-ffkcnnipndtmimasqjahqhgwthxq/ Build/Intermediates.noindex/someApp/Debug-iphonesimulator/someApp(Update).build/DerivedSources -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -DDEBUG=1 -Xcc -DGPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 -Xcc -DDEBUG=1 -Xcc -DPB_FIELD_32BIT=1 -Xcc -DPB_NO_PACKED_STRUCTS=1 -Xcc -DPB_ENABLE_MALLOC=1 -emit-objc-header -emit-objc-header-path /Users/kanishka/Library/Developer/Xcode/DerivedData/someApp-ffkcnnipndtmimasqjahqhgwthxq/Build /Intermediates.noindex/someApp/Debug-iphonesimulator/someApp(Update).build/Objects-normal/x86_64/someApp-Swift.h -working-directory /Users/kanishka/Desktop/someApp
【问题讨论】:
始终使用最新的测试版。 【参考方案1】:Beta 5 昨天发布,尝试解决 beta 1 的问题几乎没有意义。
【讨论】:
以上是关于由于信号 9 Xcode 11 beta,编译命令失败的主要内容,如果未能解决你的问题,请参考以下文章
Xcode 11 GM-设备启动后应用程序崩溃由于信号9而终止
Swift 编译器错误,由于信号导致命令失败:分段错误:11
Xcode 11 Beta 7 命令 PhaseScriptExecution 失败,退出代码非零([CP] Copy Pods Resources)