2016-06-29 8 views
0

Dies zeigte, wenn ich die App mit angeschlossenem Gerät leite:ld: Bibliothek nicht für -lc gefunden ++ Klirren: Fehler: Linker Befehl fehlgeschlagen mit Exit-Code 1 (Verwendung -v Aufruf sehen)

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

Bitte Frage formatieren und weitere Details hinzufügen. – Jay

Antwort

0

Sie hatte diesen Fehler wegen einiger fehlender Bibliotheken in Ihrem Projekt. Überprüfen Sie Ihre Build-Phasen dann Link Binary mit Bibliotheken. Der Linker kann einige Frameworks nicht finden, die verschoben oder gelöscht werden können.

Fügen Sie die fehlenden Bibliotheken hinzu. Säubern und bauen Sie Ihr Projekt auf.

Schauen Sie sich diese im Zusammenhang Tickets:

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"

hoffe, das hilft!

Verwandte Themen