我昨天从7.1.1将我的XCode更新为7.2,以便拥有新的iOS 9.2 SDK。我没有做任何改变;我还有一个警告说明了这一点:
ld: warning: directory not found for option '-F/Users/andre/Privat/Prosjekter/Swift/my-app/My-app/build/Debug-iphoneos'
长文:
Ld /Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Products/Debug-iphonesimulator/My-app.app/My-app normal x86_64
cd /Users/andre/Privat/Prosjekter/Swift/My-app/My-app
export IPHONEOS_DEPLOYMENT_TARGET=9.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk
-L/Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Products/Debug-iphonesimulator -F/Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Products/Debug-iphonesimulator -F/Users/andre/Privat/Prosjekter/Swift/My-app/My-app/Pods/GoogleMaps/Frameworks
-F/Users/andre/Privat/Prosjekter/Swift/My-app/My-app/build/Debug-iphoneos
-filelist /Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Intermediates/My-app.build/Debug-iphonesimulator/My-app.build/Objects-normal/x86_64/My-app.LinkFileList
-Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.0 -Xlinker
-objc_abi_version -Xlinker 2 -ObjC -lc++ -licucore -lz -framework AVFoundation -framework Accelerate -framework CoreBluetooth -framework CoreData -framework CoreGraphics -framework CoreLocation -framework CoreText -framework GLKit -framework GoogleMaps -framework ImageIO
-framework OpenGLES -framework QuartzCore -framework Security -framework SystemConfiguration -framework youtube_ios_player_helper -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator
-Xlinker -add_ast_path -Xlinker /Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Intermediates/My-app.build/Debug-iphonesimulator/My-app.build/Objects-normal/x86_64/Wax_room.swiftmodule
-framework AddressBook -framework MapKit -framework CoreLocation -framework Pods -Xlinker -dependency_info -Xlinker /Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Intermediates/My-app.build/Debug-iphonesimulator/My-app.build/Objects-normal/x86_64/My-app_dependency_info.dat
-o /Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Products/Debug-iphonesimulator/My-app.app/My-app
有什么问题?我不明白错误信息。
答案 0 :(得分:3)
这是一个非常普遍的问题,我担心。如果您已尝试使用Shift + Alt + Cmd + K清理项目并重新启动Xcode,则可能需要执行以下操作:
在导航器窗格(左侧的位)中转到您的项目,然后选择目标。
单击Build Settings选项卡。
搜索“图书馆”,直至找到图书馆搜索路径,然后删除您在那里看到的内容。框架搜索路径也是如此。 可爱。
现在再试一次。
更新:请参阅下面的Michaël评论,您应该检查框架路径 - 欢迎使用Xcode几乎无法穿透的构建系统! :)
答案 1 :(得分:1)
昨天我遇到了这个问题,我通过删除和添加新方案解决了这个问题。 方法如下:link。