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
Related
I didn't add -ObjC to other linker flags. This seems to be the two question. Now , I wonder why it's running in my iPhone, but Xcode7.3 can't do it.
I Want to Integrate PayTmSDk in my app. But Im getting error while building.
ld: 9 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation).
Tried Removing -Objc flag from otherlinker flags, Im able to build, but I'm using PayPalSdk also which needs to add -Objc flag to other linker flags.
Please help me..
Thank you..
paytm also contain some reachability classes due to which duplicate error of reachability.o error comes; removed reachability.m from compile resources.
I am using Xcode 6.4.
I do not understand the problem.
ld: 230 duplicate symbols for architecture x86_64
I have tried to add -ObjC linker flag also.
clang: error: linker command failed with exit code 1 (use -v to see
invocation)in swift
Any one help me please.
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.
I'm trying add a few social networks skds to my project. I've started from Facebook SDK and all works fine. But when I added a google+ sdk and added -ObjC flag, compile start failing with next error:
/Users/developer/Documents/Projects/iOS/FacebookSDK.framework/FacebookSDK(Facebook.o)
ld: 49 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
But when I remove this flag, compile going good. What should I do in this situation?
if some framework or lib required flags (-all_Load or -ObjC) you can load this special libs with Other Linker Flag like this one
-force_load "$(BUILT_PRODUCTS_DIR)/libRestKit.a"
don't remember exclude this lib from target to avoid symbol duplication