Xcode Swift编译错误导入名称太长

时间:2016-07-25 06:38:40

标签: swift xcode compiler-errors

这是我尝试构建项目时遇到的错误。

  

Opening import file for module 'Swift': File name too long

这是正在运行的swift编译命令:

  

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -filelist / var / folders / b7 / c8z8dq8n6y5b1x29mx_p209w0000gn / T / sources-adfc78 -primary-file& #34; / Users / james / Documents / workspace / fb-ios-recover / FitBugg / Model / Mock model / MockUser.swift" -target x86_64-apple-ios8.0 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -I / Users / james / Library / Developer / Xcode / DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr / Build / Products / Debug-iphonesimulator -F / Users / james / Library / Developer / Xcode / DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr / Build / Products / Debug-iphonesimulator -F&#34 ; \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator / AFNetworking \" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator /螺栓\" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator /螺栓-夫特\" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator / FBSDKCoreKit \" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator / FBSDKLoginKit \" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator / FBSDKShareKit \" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator / HexColors \" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator / JSQMessagesViewController \" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator / JSQSystemSoundPlayer \" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator / JTCalendar \" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator / MBProgressHUD \" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator / NMRangeSlider \" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator /解析\" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator / ParseCrashReporting \" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator / ParseFacebookUtilsV4 \" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator / ParseLiveQuery \" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator / ParseUI \" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator / SocketRocket \" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator / THContactPicker \" \" /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /建造/产品/调试-iphonesimulator / TSMessages \" \" /用户/詹姆斯/文档/工作区/ FB-IOS-恢复/荚/谷歌地图/框架\"" -enable-testing -g -import-objc-header /Users/james/Documents/workspace/fb-ios-recover/FitBugg-Bridging-Header.h -module-cache-path / Users / james / Library / Developer / Xcode / DerivedData / ModuleCache -D DEBUG -serialize-debugging-options -Xcc -I / Users / james / Library / Developer / Xcode / DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr / Build / Intermediates / FitBugg.build / Debug-iphonesimulator / FitBugg.build / swift-overrides.hmap -Xcc -iquote -Xcc /Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Intermediates/FitBugg.build/Debug-iphonesimulator/FitBugg.build/FitBugg-generated-files。 hmap -Xcc -I / Users / james / Library / Developer / Xcode / DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr / Build / Intermediates / FitBugg.build / Debug-iphonesimulator / FitBugg.build / FitBugg-own-target-headers.hmap -Xcc - I /用户/詹姆斯/库/开发商/ Xcode中/ DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr /编译/中间体/ FitBugg.build /调试-iphonesimulator / FitBugg.build / FitBugg-所有非framewor k-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Intermediates/FitBugg.build/all-product-headers.yaml -Xcc -iquote - Xcc /Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Intermediates/FitBugg.build/Debug-iphonesimulator/FitBugg.build/FitBugg-project-headers.hmap -Xcc -I / Users / james / Library / Developer / Xcode / DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr / Build / Products / Debug-iphonesimulator / include -Xcc" -I \" / Users / james / Documents / workspace / fb-ios-recover / Pods /接头/公共\" \" /用户/詹姆斯/文档/工作区/ FB-IOS-恢复/荚/接头/公共/谷歌地图\"" -Xcc -I / Users / james / Library / Developer / Xcode / DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr / Build / Intermediates / FitBugg.build / Debug-iphonesimulator / FitBugg.build / DerivedSources / x86_64 -Xcc -I / Users / james / Library /Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Intermediates/FitBugg.build/Debug-iphonesimulator/FitBugg.build/DerivedSources -Xcc -DDEBUG = 1 -Xcc -DCOCOAPODS = 1 -Xcc -DCOCOAPODS = 1 -Xcc -working -directory / Users / james / Documents / workspace / fb-ios-recover -emit-module-doc-path /Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Intermediates/FitBugg.build/Debug -iphonesimulator / FitBugg.build / Objects-normal / x86_64 / MockUser~partial.swiftdoc -Onone -module-name FitBugg -emit-module-path / Users / james / Library / Developer / Xcode / DerivedData / FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr / Build /中间体/ FitBugg.build / Debug-iphonesimulator / FitBugg.build / Objects-normal / x86_64 / MockUser~partial.swiftmodule -serialize-diagnostics-path / Users /james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Intermediates/FitBugg.build/Debug-iphonesimulator/FitBugg.build/Objects-normal/x86_64/MockUser.dia -emit-dependencies-path / Users / james /Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Intermediates/FitBugg.build/Debug-iphonesimulator/FitBugg.build/Objects-normal/x86_64/MockUser.d -emit-reference-dependencies-path / Users / james /Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Intermediates/FitBugg.build/Debug-iphonesimulator/FitBugg.build/Objects-normal/x86_64/MockUser.swiftdeps -o / Users / james / Library / Developer / Xcode /DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Intermediates/FitBugg.build/Debug-iphonesimulator/FitBugg.build/Objects-normal/x86_64/MockUser.o

1 个答案:

答案 0 :(得分:3)

通过查看您的日志,我发现\"选项后的所有-F都很奇怪。

在您的构建设置中,框架搜索路径是否可能设置为"$(inherited)"而不仅仅是$(inherited)(没有围绕"")?< / p>