I'm getting this error when I archive my project
ld: library not found for -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The project work in simulator and iPhone device but when I archive project, I'm getting this error. can anyone help me?
Thanx in adv.
Should be just a matter of adding -lc++ to the linker flags in the project settings, I'd have thought.
Add it under "Other Linker Flags" under "Linking" section of the "Build Settings" tab on your project's settings.
Related
I just got this interesting error by upgrading to Xcode 8. It worked fine in Xcode 7. However, in Xcode 8 it gives me a linker error:
ld: 2562 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Frameworks I'm using:
Frameworks search path:
$(PROJECT_DIR)/My\ App
Linker Flags: (Obj-C)
$(inherited)
I'm not using pods. I've just copied over the frameworks to the project directory.
Xcode recommended to use warning flags and set GCC_NO_COMMON_BLOCKS to YES.
Setting it back to NO solved the problem!
ld: framework not found FacebookSDK
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Go to your project target -> Build settings, search for 'facebook' and you should see the framework come up in Other Linker Flags. Remove it with the preceding -framework item and you should be good!
I am having one apple - o link error in my project, I have searched in Google but it's not helping me, below is my error
ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Applications/Xcode 2.app/Contents/Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
what is this error and how to fix it, please any one help me.
1.Try avoid arm64 from valid architecture.
2.Try Set Build for Active Architecture to "NO"
3.Also check framework search path
# build settings.
You can solve this by following this steps:
Select the Pods project
Click on build settings
Change Build Active Architecture Only to 'No'
I have added the -ObjC linker flag (to add the street view api),it's work fine on simulator but it causes the build to fail on device.
ld: framework not found Metal for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
see this #Developer Adding -ObjC flag in xcode
and go through this link:https://github.com/Estimote/iOS-SDK/issues/153
hope it helps
When I run the app in ios device to make ipa file, this error appear. How I can solve this problem?? PLZ help me.
ld: library not found for -lsqlite3.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thanks
In your project settings (and the left-hand pane, selected using Command-1) remove the reference to sqlite3.0 and replace them with sqlite3 instead (i.e changing "3.0" to just "3").