Xcode Swift编译错误:导入名称过长

3

这是我在尝试构建项目时收到的错误信息。

打开'module Swift' 的导入文件失败:文件名过长

这是正在运行的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 "/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 " \"/Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Products/Debug-iphonesimulator/AFNetworking\" \"/Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Products/Debug-iphonesimulator/Bolts\" \"/Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Products/Debug-iphonesimulator/Bolts-Swift\" \"/Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Products/Debug-iphonesimulator/FBSDKCoreKit\" \"/Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Products/Debug-iphonesimulator/FBSDKLoginKit\" \"/Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Products/Debug-iphonesimulator/FBSDKShareKit\" \"/Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Products/Debug-iphonesimulator/HexColors\" \"/Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Products/Debug-iphonesimulator/JSQMessagesViewController\" \"/Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Products/Debug-iphonesimulator/JSQSystemSoundPlayer\" \"/Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Products/Debug-iphonesimulator/JTCalendar\" \"/Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Products/Debug-iphonesimulator/MBProgressHUD\" \"/Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Products/Debug-iphonesimulator/NMRangeSlider\" \"/Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Products/Debug-iphonesimulator/Parse\" \"/Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Products/Debug-iphonesimulator/ParseCrashReporting\" \"/Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Products/Debug-iphonesimulator/ParseFacebookUtilsV4\" \"/Users/james/Library/Developer/Xcode/DerivedData/FitBugg-gzpxgbmtwqvbozdkgabiahuiovrr/Build/Products/Debug-iphonesimulator/ParseLiveQuery

感谢 Kevin。 - silverdagger
1个回答

3

通过查看您的日志,我发现在-F选项之后出现了奇怪的\"

您的构建设置中,Framework search Paths是否设置为"$(inherited)"而不是只有$(inherited)(没有"")?


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接