我正在运行Xcode并且没有任何问题。突然之间(在删除我的垃圾之后;不知道这是否重要),我遇到了这个可爱的问题。
CompileSwiftSources正常x86_64 com.apple.xcode.tools.swift.compiler cd / Users / OCedeno / Desktop / Showcase export PATH =" /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/ usr / bin: / bin中:/ usr / sbin目录:/ sbin目录" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -target x86_64-apple-ios8.1 -module-name Showcase -Onone -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -g -module-cache-path / Users / OCedeno / Library / Developer / Xcode / DerivedData / ModuleCache -I /用户/ OCedeno /库/开发商/ Xcode中/ DerivedData /展柜-cfyodwbqpzuutkgbhoyijshscdhu /编译/产品/调试,iphonesimulator -F / Users / OCedeno / Library / Developer / Xcode / DerivedData / Showcase-cfyodwbqpzuutkgbhoyijshscdhu / Build / Products / Debug-iphonesimulator -F / Users / OCedeno / Desktop / parse-library-1 -c -j4 /Users/OCedeno/Desktop/Showcase/Showcase/LoginVC.swift /Users/OCedeno/Desktop/Showcase/Showcase/ResponsiveTextFieldViewController.swift /Users/OCedeno/Desktop/Showcase/RegistrationVC.swift /Users/OCedeno/Desktop/Showcase/Showcase/AppDelegate.swift /Users/OCedeno/Desktop/Showcase/Showcase/DefinitionClass.swift /Users/OCedeno/Desktop/Showcase/Showcase/MainPage.swift /Users/OCedeno/Desktop/Showcase/Showcase/SettingsVC.swift -output-file-map /Users/OCedeno/Library/Developer/Xcode/DerivedData/Showcase-cfyodwbqpzuutkgbhoyijshscdhu/Build/Intermediates/Showcase.build/Debug-iphonesimulator/Showcase.build/Objects-normal/x86_64/Showcase-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/OCedeno/Library/Developer/Xcode/DerivedData/Showcase-cfyodwbqpzuutkgbhoyijshscdhu/Build/Intermediates/Showcase.build/Debug-iphonesimulator /Showcase.build/Objects-normal/x86_64/Showcase.swiftmodule -Xcc -I / Users / OCedeno / Library / Developer / Xcode / DerivedData / Showcase-cfyodwbqpzuutkgbhoyijshscdhu / Build / Intermediates / Showcase.build / Debug-iphonesimulator / Showcase.build / swift-overrides.hmap -Xcc -iquote -Xcc /Users/OCedeno/Library/Developer/Xcode/DerivedData/Showcase-cfyodwbqpzuutkgbhoyijshscdhu/Build/Intermediates/Showcase.build/Debug-iphonesimulator/Showcase.build/Showcase-generated-files.hmap -Xcc -I / Users / OCedeno / Library / Developer / Xcode / DerivedData / Showcase-cfyodwbqpzuutkgbhoyijshscdhu / Build / Intermediates / Showcase.build / Debug-iphonesimulator / Showcase.build / Showcase-own-target-headers.hmap -Xcc -I / Users / OCedeno / Library / Developer / Xcode / DerivedData / Showcase-cfyodwbqpzuutkgbhoyijshscdhu / Build / Intermediates / Showcase.build / Debug-iphonesimulator / Showcase.build / Showcase-all-target-headers.hmap -Xcc -iquote -Xcc /Users/OCedeno/Library/Developer/Xcode/DerivedData/Showcase-cfyodwbqpzuutkgbhoyijshscdhu/Build/Intermediates/Showcase.build/Debug-iphonesimulator/Showcase.build/Showcase-project-headers.hmap -Xcc -I / Users / OCedeno / Library / Developer / Xcode / DerivedData / Showcase-cfyodwbqpzuutkgbhoyijshscdhu / Build / Products / Debug-iphonesimulator / include -Xcc -I / Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / include -Xcc -I / Users / OCedeno / Library / Developer / Xcode / DerivedData / Showcase-cfyodwbqpzuutkgbhoyijshscdhu / Build / Intermediates / Showcase.build / Debug-iphonesimulator / Showcase.build / DerivedSources / x86_64 -Xcc -I / Users / OCedeno / Library / Developer / Xcode / DerivedData / Showcase-cfyodwbqpzuutkgbhoyijshscdhu / Build / Intermediates / Showcase.build / Debug-iphonesimulator / Showcase.build / DerivedSources -Xcc -DDEBUG = 1 -emit-objc-header -emit-objc-header-path /Users/OCedeno/Library/Developer/Xcode/DerivedData/Showcase-cfyodwbqpzuutkgbhoyijshscdhu/Build/Intermediates/Showcase.build/Debug-iphonesimulator/Showcase .build / Objects-normal / x86_64 / Showcase-Swift.h -import-objc-header /Users/OCedeno/Desktop/Showcase/Showcase-Bridging-Header.h
命令 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc 退出代码1失败
答案 0 :(得分:5)
你应该尝试:退出Xcode,删除Xcode缓存文件和DerivedData文件夹
使用Option-Click
如果没有帮助,则应删除并重新安装Xcode