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


this showed when running app connected device:

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 -lc++ clang: error: linker command failed exit code 1 (use -v see invocation) 

you had error because of missing libraries in project. check build phases link binary libraries. linker can't find frameworks may moved or deleted.

add missing libraries. clean , build project.

check these related tickets:

to solve problem:

  1. go project setting page
  2. select project (left side)
  3. click "build settings" tab
  4. search "bitcode"
  5. set "enable bitcode" "no"

hope helps!


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -