构建失败,原因是“ CompileSwiftSources的退出代码非零而失败”

时间:2018-09-19 09:08:26

标签: ios swift xcode

将Swift版本更新到4.2之后,每次构建运行时都会出现此错误。

Command CompileSwiftSources failed with a nonzero exit code

logcat如下:

  

CompileSwiftSources正常提供x86_64 com.apple.xcode.tools.swift.compiler(在目标中:twidere)       cd /用户/ sinyuk /回购/ twidere       导出DEVELOPER_DIR = / Applications / Xcode.app / Contents / Developer       导出SDKROOT = / Applications / Xcode.app / Contents / Developer / Platforms / iPhoneSimulator.platform / Developer / SDKs / iPhoneSimulator12.0.sdk       /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name twidere -Onone -enable-batch-mode -enforce-exclusivity = checked -DDEBUG -D COCOAPODS -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk -target x86_64-apple-ios12.0-simulator -g -module-cache-path / Users / sinyuk /库/开发人员/Xcode/DerivedData/ModuleCache.noindex -Xfrontend-序列化调试选项-启用测试-索引存储路径/ Users / sinyuk / Library / Developer / Xcode / DerivedData / Twidere-fltbmfgkcodqsfgdhkqzwkuvxy swift版本4.2 -I /用户/ sinyuk /库/开发人员/ Xcode / DerivedData / Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul / Build / Products / Debug-iphonesimulator -F / Users / sinyuk / Library / Developer / Xcode / Dekedfltbd /产品/ Debug-iphonesimulator -F /用户/ sinyuk / Library / Developer / Xcode / DerivedData / Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul / Bui ld /产品/ Debug-iphonesimulator / AutoInsetter -F /用户/ sinyuk / Library / Developer / Xcode / DerivedData / Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul / Build /产品/ Debug-iphonesimulator / NewPopMenu -F / Users / Xerin DerivedData / Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul / Build / Products / Debug-iphonesimulator / Pageboy -F / Users / sinyuk / Library / Developer / Xcode / DerivedData / Twidere-fltbmfgkcodqsfgdhkqzwkus库/开发人员/ Xcode / DerivedData / Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul / Build /产品/ Debug-iphonesimulator / ReSwiftRouter -F / Users / sinyuk / Library / Developer / Xcode / DerivedData / Twidere-fltbmfgkd F / Users / sinyuk / Library / Developer / Xcode / DerivedData / Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul / Build / Products / Debug-iphonesimulator / RealmSwift -F / Users / sinyuk / Library / Developer / Xcode / Dekedflty Debug-iphonesimulator / RxCoco -F / Users / sinyuk / Library / Developer / Xcode / DerivedData / Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul / Build / Products / Debug-iphonesimulator / RxSwift -F / Users / sinyuk / Library / Developer / Xcode / Kqffkgfkgfkdk产品/ Debug-iphonesimulator / SnapKit -F /用户/ sinyuk / Library / Developer / Xcode / DerivedData / Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul / Build / Products / Debug-iphonesimulator / Swinject -F /用户/ sinyuk / Library / ered / X Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul / Build / Products / Debug-iphonesimulator / Tabman -c -j4 / Users / sinyuk / repo / twidere / Common / SwiftyPlistManager.swift / Users / sinyuk / repo / Viewer / Feed / Display / Feed repo / twidere / Common / widgets / GMStepper.swift /Users/sinyuk/repo/twidere/Feed/widgets/ScreenNameLabel.swift /Users/sinyuk/repo/twidere/Twidere/AppDelegate.swift / Users / sinyuk / repo / twidere Feed / FontSizeCell.swift /Users/sinyuk/repo/twidere/Settings/Theming/ThemeViewController.swift / Users / sinyuk / repo / twidere / Common / ext / UITableView + Ext.swift /Users/sinyuk/repo/twidere/Feed/StaticFeedCell.swift /Users/sinyuk/repo/twidere/Settings/SettingsNavViewController.swift / Users / sinyuk / repo / twidere / Common / widgets / KaedeTextField。 Users / sinyuk / repo / twidere / Reducers / AppReducer.swift /Users/sinyuk/repo/twidere/Reducers/SettingsReducer.swift /Users/sinyuk/repo/twidere/Feed/FontNameViewController.swift / Users / sinyuk / repo来源/SourceEdit+Ext.swift /Users/sinyuk/repo/twidere/Feed/widgets/AvatarImageView.swift /Users/sinyuk/repo/twidere/Common/widgets/TextFieldEffects.swift / Users / sinyuk / repo / twidere / Common ext / Color + Ext.swift /Users/sinyuk/repo/twidere/Routes/UINavigationController+Ext.swift /Users/sinyuk/repo/twidere/State/State.swift / Users / sinyuk / repo / twidere / Settings / Ohters /语言+ Ext.swift /Users/sinyuk/repo/twidere/Common/widgets/SwitchMenuCell.swift /Users/sinyuk/repo/twidere/Settings/Theming/AppTheme.swift / Users / sinyuk / repo / twidere / Common / widgets / SnapchatCheckbox.swift /用户/ sinyuk / repo / twider e / Common / IconFont + Ext.swift /Users/sinyuk/repo/twidere/Common/Enum+Ext.swift /Users/sinyuk/repo/twidere/Source/SourceViewController.swift / Users / sinyuk / repo / twidere / Twidere / Dimension.swift /用户/sinyuk/repo/twidere/Routes/Routes.swift /Users/sinyuk/repo/twidere/Source/Source.swift /Users/sinyuk/repo/twidere/Settings/Ohters/OthersViewController.swift / Users / sinyuk / repo / twidere / Settings / TabItemsProvider.swift /Users/sinyuk/repo/twidere/Settings/Theming/ThemeCell.swift /Users/sinyuk/repo/twidere/Source/EditSourceController.swift / Users / sinyuk / repo / twidere / Feed / widgets / IdLabel.swift /Users/sinyuk/repo/twidere/Source/SourceCell.swift /Users/sinyuk/repo/twidere/Feed/widgets/ContentTextView.swift / Users / sinyuk / repo / twidere / Twidere / NewPopMenu + Ext.swift /Users/sinyuk/repo/twidere/Common/font/Font+Ext.swift /Users/sinyuk/repo/twidere/State/SettingsState.swift / Users / sinyuk / repo / twidere / Common / font / ScaledFont。 swift /用户/sinyuk/repo/twidere/Feed/SelectedFontCell.swift /用户/ sinyuk / repo / twidere /Common/String+Ext.swift /Users/sinyuk/repo/twidere/Settings/SettingsTabViewController.swift -output-file-map / Users / sinyuk / Library / Developer / Xcode / DerivedData / Twidere-fltbmfgkcodqsfgdyqqswindex /Twidere.build/Debug-iphonesimulator/twidere.build/Objects-normal/x86_64/twidere-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path / Users / sinyuk /Library/Developer/Xcode/DerivedData/Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul/Build/Intermediates.noindex/Twidere.build/Debug-iphonesimulator/twidere.build/Objects-normal/x86_64/twidere.swiftmodule -Xccary-I / User /Developer/Xcode/DerivedData/Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul/Build/Intermediates.noindex/Twidere.build/Debug-iphonesimulator/twidere.build/swift-overrides.hmap -Xcc -iquote -Xcc / Users / sinyuk / /DerivedData/Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul/Build/Intermediates.noindex/Twidere.build/Debug-iphonesimulator/twidere.build/tw idere-generate-files.hmap -Xcc -I / Users / sinyuk / Library / Developer / Xcode / DerivedData / Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul / Build / Intermediates.noindex / Twidere.build / Debug-iphonesimulator / twidere.build / target-headers.hmap -Xcc -I / Users / sinyuk / Library / Developer / Xcode / DerivedData / Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul / Build / Intermediates.noindex / Twidere.build / Debug-iphonesimulator / twidere.build / twidere-all framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/sinyuk/Library/Developer/Xcode/DerivedData/Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul/Build/Intermediates.noindex/Twidere.build/Debug-iphonesimulator/t product-headers.yaml -Xcc -iquote -Xcc /Users/sinyuk/Library/Developer/Xcode/DerivedData/Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul/Build/Intermediates.noindex/Twidere.build/Debug-iphonesimulator/twidereproject。 headers.hmap -Xcc -I / Users / sinyuk / Library / Developer / Xcode / DerivedData / Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul / Build / Products / Debug-iphonesimul ator / include -Xcc -I / Users / sinyuk / Library / Developer / Xcode / DerivedData / Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul / Build / Intermediates.noindex / Twidere.build / Debug-iphonesimulator / twidere.build / DerivedSourceX / x86用户/ sinyuk /库/开发人员/Xcode/DerivedData/Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul/Build/Intermediates.noindex/Twidere.build/Debug-iphonesimulator/twidere.build/DerivedSources -Xcc -DDEBUG = 1 -XDS -DCOCOC objc-header -emit-objc-header-path /Users/sinyuk/Library/Developer/Xcode/DerivedData/Twidere-fltbmfgkcodqsfgdhkqzwkuvxyul/Build/Intermediates.noindex/Twidere.build/Debug-iphonesimulator/twidere。 x86_64 / twidere-Swift.h -Xcc-工作目录/用户/ sinyuk / repo / twidere

它舔了我如何解决问题,任何建议将不胜感激!

PS:目的地:iPhone X | SDK模拟器-iOS 12.0

0 个答案:

没有答案