lzwjava / LZAlbum

Moments based on LeanCloud, use LeanCloud elegantly
https://leancloud.cn/
428 stars 93 forks source link

你好:我下载了cocoapods,但是打开workspace发现报错 #7

Open Hi-World opened 8 years ago

Hi-World commented 8 years ago

ld: library not found for -lDateTools clang: error: linker command failed with exit code 1 (use -v to see invocation)

liguang commented 8 years ago

相同的问题

ChenYilong commented 8 years ago

请在 build setting 的other linker 上添加 $(inherited)

如何还不行请删除 主目录下的 .lock 文件,和 pods 文件夹,重新执行如下代码

# 禁止升级CocoaPods的spec仓库,否则会卡在 Analyzing dependencies ,非常慢
# 如果提示找不到库,则可去掉 —no-repo-update
pod update —verbose —no-repo-update
MrWenBo commented 8 years ago

Ld /Users/zuoan/Library/Developer/Xcode/DerivedData/TestPost-flqzuxyqzqklbkahbbmbldxgiazu/Build/Products/Debug-iphonesimulator/TestPost.app/TestPost normal x86_64 cd /Users/zuoan/Documents/Xcode/TestPost export IPHONEOS_DEPLOYMENT_TARGET=9.1 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.1.sdk -L/Users/zuoan/Library/Developer/Xcode/DerivedData/TestPost-flqzuxyqzqklbkahbbmbldxgiazu/Build/Products/Debug-iphonesimulator -L/Users/zuoan/Documents/Xcode/TestPost/Pods/AVOSCloud -L/Users/zuoan/Documents/Xcode/TestPost/Pods/AVOSCloudCrashReporting -L/Users/zuoan/Documents/Xcode/TestPost/Pods/AVOSCloudIM -L/AVOSCloud -F/Users/zuoan/Library/Developer/Xcode/DerivedData/TestPost-flqzuxyqzqklbkahbbmbldxgiazu/Build/Products/Debug-iphonesimulator -filelist /Users/zuoan/Library/Developer/Xcode/DerivedData/TestPost-flqzuxyqzqklbkahbbmbldxgiazu/Build/Intermediates/TestPost.build/Debug-iphonesimulator/TestPost.build/Objects-normal/x86_64/TestPost.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.1 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lAVOSCloud -lAVOSCloudCrashReporting -lAVOSCloudIM -lc++ -licucore -lsqlite3 -lz -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreTelephony -framework MobileCoreServices -framework QuartzCore -framework Security -framework SystemConfiguration -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/zuoan/Library/Developer/Xcode/DerivedData/TestPost-flqzuxyqzqklbkahbbmbldxgiazu/Build/Intermediates/TestPost.build/Debug-iphonesimulator/TestPost.build/Objects-normal/x86_64/TestPost.swiftmodule -lPods-TestPost -Xlinker -dependency_info -Xlinker /Users/zuoan/Library/Developer/Xcode/DerivedData/TestPost-flqzuxyqzqklbkahbbmbldxgiazu/Build/Intermediates/TestPost.build/Debug-iphonesimulator/TestPost.build/Objects-normal/x86_64/TestPost_dependency_info.dat -o /Users/zuoan/Library/Developer/Xcode/DerivedData/TestPost-flqzuxyqzqklbkahbbmbldxgiazu/Build/Products/Debug-iphonesimulator/TestPost.app/TestPost

ld: warning: directory not found for option '-L/AVOSCloud' ld: library not found for -lPods-TestPost clang: error: linker command failed with exit code 1 (use -v to see invocation)