我从链接器中得到了错误。
我在这个问题上花了很多时间。
Ld /Users/n/Library/Developer/Xcode/DerivedData/Love-firlokvkfitdaefazzayuqyntwxm/Build/Products/Debug-iphonesimulator/Love.app/Love normal i386
cd "/Love"
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -L/Users/n/Library/Developer/Xcode/DerivedData/Love_-firlokvkfitdaefazzayuqyntwxm/Build/Products/Debug-iphonesimulator -F/Users/n/Library/Developer/Xcode/DerivedData/Love-firlokvkfitdaefazzayuqyntwxm/Build/Products/Debug-iphonesimulator -F/Love/Pods/Crashlytics -F/Love/Pods/Fabric -filelist /Users/n/Library/Developer/Xcode/DerivedData/Love-firlokvkfitdaefazzayuqyntwxm/Build/Intermediates/Love.build/Debug-iphonesimulator/Love.build/Objects-normal/i386/Love.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=8.0 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -Wl,-U,_JSContextGetGlobalObject -Wl,-U,_JSEvaluateScript -Wl,-U,_JSGlobalContextCreate -Wl,-U,_JSGlobalContextRelease -Wl,-U,_JSObjectCallAsFunction -Wl,-U,_JSObjectIsFunction -Wl,-U,_JSObjectMake -Wl,-U,_JSObjectSetProperty -Wl,-U,_JSStringCopyCFString -Wl,-U,_JSStringCreateWithCFString -Wl,-U,_JSStringRelease -Wl,-U,_JSValueIsObject -Wl,-U,_JSValueIsString -Wl,-U,_JSValueMakeString -Wl,-U,_JSValueToStringCopy -lc++ -lz -framework AFNetworking -framework AMViralSwitch -framework BFPaperTableViewCell -framework CRGradientNavigationBar -framework CarbonKit -framework Crashlytics -framework DACircularProgress -framework FCUUID -framework FMDB -framework Fabric -framework INTULocationManager -framework IQKeyboardManager -framework JGProgressHUD -framework KILabel -framework MKMapView_ZoomLevel -framework MMMaterialDesignSpinner -framework MMobileApi -framework Mantle -framework Masonry -framework MaterialKit -framework Overcoat -framework RESideMenu -framework SDWebImage -framework Security -framework SystemConfiguration -framework TTTAttributedLabel -framework UIAlertView_Blocks -framework UICKeyChainStore -framework UIColor_BFPaperColors -framework UIKit -framework XCDYouTubeKit -framework objc_geohash -fobjc-arc -fobjc-link-runtime -lPods-Love\ Istanbul -weak_framework Pods -Xlinker -dependency_info -Xlinker /Users/n/Library/Developer/Xcode/DerivedData/Love-firlokvkfitdaefazzayuqyntwxm/Build/Intermediates/Love\ Istanbul.build/Debug-iphonesimulator/Love.build/Objects-normal/i386/Love\ Istanbul_dependency_info.dat -o /Users/n/Library/Developer/Xcode/DerivedData/Love_Istanbul-firlokvkfitdaefazzayuqyntwxm/Build/Products/Debug-iphonesimulator/Love.app/Love
ld: library not found for -lPods-Love
clang: error: linker command failed with exit code 1 (use -v to see invocation)你能帮我提点建议吗?
发布于 2016-01-09 23:53:42
你有没有试过清理你的build文件夹?我也遇到过类似的问题。清除build文件夹已清除此问题。
您还可以尝试设置项目的“链接器搜索路径”(对于Debug和Release版本)。如果这个库在项目的同级目录中,那么你可以这样设置它:
$(PROJECT_DIR)/../Love/lib
(您希望避免使用绝对路径,而是保持库目录相对于项目)。
如果你对此投了反对票,请提供一个有效的理由,因为这个提示对我有效。
https://stackoverflow.com/questions/32717347
复制相似问题