I am working with a project and in that I want to integrateing a tapku calendar. I followed all the steps and integrated the calendar. But unfortunately I am getting the error due to which my build is failing again and again. The error is as below:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_TKCalendarMonthView", referenced from:
objc-class-ref in habitstatisticsViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Set "Build Active Architechtures" to YES and make sure you have armv6 also within your valid architechtures along with arm64, armv7 and armv7s.
Related
I am using xcode 7.3 and using PubNub library. The build runs fine on simulator but fails while running on actual device.
Here is the error that I see :
ld: warning: ignoring file /Users/supercomputer/Documents/SitbaqApp/iPhoneDriverApp/CocoaLumberjack.framework/CocoaLumberjack, missing required architecture armv7 in file /Users/supercomputer/Documents/SitbaqApp/iPhoneDriverApp/CocoaLumberjack.framework/CocoaLumberjack (2 slices)
ld: warning: ignoring file /Users/supercomputer/Documents/SitbaqApp/iPhoneDriverApp/PubNub.framework/PubNub, missing required architecture armv7 in file /Users/supercomputer/Documents/SitbaqApp/iPhoneDriverApp/PubNub.framework/PubNub (2 slices)
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_PubNub", referenced from:
type metadata accessor for __ObjC.PubNub in AppDelegate.o
"_OBJC_CLASS_$_PNConfiguration", referenced from:
type metadata accessor for __ObjC.PNConfiguration in AppDelegate.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have the $(inherited) flag in the OTHER LINKER FLAGS. I am not using cocoa pods for pubnub. It is framework drag and drop.
Now I am unable to run the app on actual device.
Any suggestions ?
I had same issue but when i use pod so i solved this issue. pod get automatic dependancy.
pod setup.
After installing the new sdk I cleaned the project and build it. It fails with this message:
Undefined symbols for architecture i386:
"_SecRandomCopyBytes", referenced from:
+[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)
-[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)
"_kSecRandomDefault", referenced from:
+[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)
-[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Same problem anyone? Solutions?
Well, you need to include the security framework and the libsqlite3.dylib as stated here.
It works now.
edit
Also found this now...
Jumping on this, im running into the same issue, I saw that the FBSDK needs the Security, AdSupport, etc. Here's my linked libraries:
My error is the same:
Undefined symbols for architecture i386:
"_SecRandomCopyBytes", referenced from:
+[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)
-[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)
"_kSecRandomDefault", referenced from:
+[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)
-[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
All the other framework dependencies are good to go as far as I can tell. A Vlean->Build didn't fix it either. Thanks.
Edit: Got it. I needed to re Add Files to Project and check the Add to Target button.. basically XCode automagicka
When I'm trying to run the project i receive the following errors
Here is the log.
Undefined symbols for architecture armv7: __ZN6metaio40getScreenRotationForInterfaceOrientationE22UIInterfaceOrientation", referenced from: -[MetaioSDKViewController viewDidLoad] in MetaioSDKViewController.o -[MetaioSDKViewController willAnimateRotationToInterfaceOrientation:duration:] in MetaioSDKViewController.o -[ARELViewController willAnimateRotationToInterfaceOrientation:duration:] in ARELViewController.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Does any one knows what the reason might be.
This project has bind with the Metio . AR framework.
Thanks
Click on your Project and go to Build Settings and change the value of Build Active Architecture only to yes.
Let me know if it solves the error:)
Why i am still getting this error even after linking fat library
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_NgnEngine", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
and linking everything in "User-Defined
I am following the instruction which written here Link ios-ngn-stak to your app
any help please, this is tiring me and it is my senior project
please refer this two link for getting solution if your issue:-
Error : "_OBJC_CLASS_$_NgnEngine"
Xcode with iOS - Creating a library in a way that is easy to run in debug mode, distribute, iterate
I'm having a problem with building my iPhone app..so, i finally finished it, but now when i try to test or profile my app , a error shows up..
Undefined symbols for architecture armv7:
"_STComposeString", referenced from:
-[TaxiApp_Tests testExample] in TaxiApp_Tests.o
"_OBJC_CLASS_$_SenTestCase", referenced from:
_OBJC_CLASS_$_TaxiApp_Tests in TaxiApp_Tests.o
"_OBJC_METACLASS_$_SenTestCase", referenced from:
_OBJC_METACLASS_$_TaxiApp_Tests in TaxiApp_Tests.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Are you running it in the simulator? Based on the answer here:
XCode 4.3 - Build error "missing required architecture armv7"
your testing framework will not run properly on the iphone.