2016-06-29 48 views
0

這表明,當我運行與連接的設備的應用程序失敗:LD:庫找不到-lC++鐺:錯誤:連接命令,退出代碼爲1(使用-v看看調用)

Ld DerivedData/TestPods/Build/Products/Debug-iphoneos/TestPods.app/TestPods normal arm64 
    cd /Users/tannaz/Developments/TestPods 
    export IPHONEOS_DEPLOYMENT_TARGET=9.3 
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Users/tannaz/Developments/TestPods/DerivedData/TestPods/Build/Products/Debug-iphoneos -L/Users/tannaz/Developments/TestPods/Pods/GGLInstanceID/Libraries -L/Users/tannaz/Developments/TestPods/Pods/Google/Libraries -L/Users/tannaz/Developments/TestPods/Pods/GoogleCloudMessaging/Libraries -F/Users/tannaz/Developments/TestPods/DerivedData/TestPods/Build/Products/Debug-iphoneos -F/Users/tannaz/Developments/TestPods/DerivedData/TestPods/Build/Products/Debug-iphoneos/Alamofire -F/Users/tannaz/Developments/TestPods/DerivedData/TestPods/Build/Products/Debug-iphoneos/JTFadingInfoView -F/Users/tannaz/Developments/TestPods/Pods/GoogleIPhoneUtilities/Frameworks -F/Users/tannaz/Developments/TestPods/Pods/GoogleInterchangeUtilities/Frameworks -F/Users/tannaz/Developments/TestPods/Pods/GoogleNetworkingUtilities/Frameworks -F/Users/tannaz/Developments/TestPods/Pods/GoogleSymbolUtilities/Frameworks -F/Users/tannaz/Developments/TestPods/Pods/GoogleUtilities/Frameworks -filelist /Users/tannaz/Developments/TestPods/DerivedData/TestPods/Build/Intermediates/TestPods.build/Debug-iphoneos/TestPods.build/Objects-normal/arm64/TestPods.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=9.3 -dead_strip -Xlinker -no_deduplicate -ObjC -lGGLCloudMessaging -lGGLCore -lGGLInstanceIDLib -lGcmLib -lsqlite3 -lstdc++ -lz -framework AddressBook -framework Alamofire -framework AssetsLibrary -framework CoreFoundation -framework CoreGraphics -framework CoreLocation -framework CoreMotion -framework GoogleIPhoneUtilities -framework GoogleInterchangeUtilities -framework GoogleNetworkingUtilities -framework GoogleSymbolUtilities -framework GoogleUtilities -framework JTFadingInfoView -framework MessageUI -framework Security -framework SystemConfiguration -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/tannaz/Developments/TestPods/DerivedData/TestPods/Build/Intermediates/TestPods.build/Debug-iphoneos/TestPods.build/Objects-normal/arm64/TestPods.swiftmodule -framework Pods_TestPods -Xlinker -dependency_info -Xlinker /Users/tannaz/Developments/TestPods/DerivedData/TestPods/Build/Intermediates/TestPods.build/Debug-iphoneos/TestPods.build/Objects-normal/arm64/TestPods_dependency_info.dat -o /Users/tannaz/Developments/TestPods/DerivedData/TestPods/Build/Products/Debug-iphoneos/TestPods.app/TestPods 

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

請格式化問題並添加更多詳細信息。 – Jay

回答

0

你有這個錯誤,因爲你的項目中缺少一些庫。檢查您的構建階段然後鏈接庫二進制文件。鏈接器找不到可能被移動或刪除的一些框架。

添加缺少的庫。清理並建立您的項目。

檢查這些相關門票:

To solve this problem:

  1. Go to your project setting page
  2. Select your project (left side)
  3. Click the "Build Settings" tab
  4. Search "Bitcode"
  5. Set "Enable Bitcode" to "No"

希望這有助於!

相關問題