Open Hi-World opened 8 years ago
相同的问题
请在 build setting 的other linker 上添加 $(inherited)
如何还不行请删除 主目录下的 .lock 文件,和 pods 文件夹,重新执行如下代码
# 禁止升级CocoaPods的spec仓库,否则会卡在 Analyzing dependencies ,非常慢
# 如果提示找不到库,则可去掉 —no-repo-update
pod update —verbose —no-repo-update
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)
ld: library not found for -lDateTools clang: error: linker command failed with exit code 1 (use -v to see invocation)