I build project that have unity classes inside. And i got this error:
Undefined symbols for architecture armv7:
RegisterAllClassesIPhone(), referenced fro
RegisterAllClasses() in RegisterMonoModules.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Anyone knows how to handle with this?
Thanks
You may forget to add this flag:
Other C Flag:
-DINIT_SCRIPTING_BACKEND=1
Other C++ Flag:
-DINIT_SCRIPTING_BACKEND=1
I met the same issue, and fixed by added the above flags.
Related
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_MPMusicPlayerController", referenced from:
objc-class-ref in liblibPDRCore.a(PGDeviceStatus.o)
ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
One of my lib was manually dragged into project before now I have it installed by cocoapods ,then the problem occurred. And I tried add the MediaPlayer.framework(although I don't need this framework before) to my project,the problem becomes this : ld: 14 duplicate symbols for architecture armv7
Anyone can help me 🙏?
I had same problem, but then I added MediaPlayer.framework like this
I have tried to compile the gstreamer ios tutorial #3. I have built the iOS SDK from sources that I have checked out from git, the master tree, and then when I have tried to compile for iOS 9.2. I got the below link error which I have no explanation for. All help is much appreciated.
Undefined symbols for architecture arm64:
"_gst_plugin_liveadder_register", referenced from:
_gst_ios_init in gst_ios_init.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I got compile error and do not know how to fix it:
Undefined symbols for architecture armv7:
"_mono_aot_module_Assembly_UnityScript_firstpass_info", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
In build settings for valid architectures only armv7 choosen.
Solved by adding Assembly-UnityScript-firstpass.dll.s and Assembly-CSharp-firstpass.dll.s to xcode project
I'm creating a iphone app and its contain SBJson_3.1.1 for login purpose [I'm using webservice for login data] but when I run the project it shows the following error and I cant find what its reason I'm quite new to ios development so please guide me.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SBJsonParser", 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)
If you are building the SBJson library and have linked your app to that, you will need add the -ObjC and -all_load flags to your linker options.
The following is the detailed error message I got while compiling a OpenCV project. Please help me out. Thanks a lot!
Undefined symbols for architecture x86_64:
"_cvFindFundamentalMat", referenced from:
testRigidRegistrationCode() in AugmentedReality.o
CamEgoMotion::step6_computeEssentialMatrix(CvMat*, CvMat*, bool*) in CameraEgomotion.o
"_cvComputeCorrespondEpilines", referenced from:
CamEgoMotion::step6_computeEssentialMatrix(CvMat*, CvMat*, bool*) in CameraEgomotion.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The key there is "ld: symbol(s) not found for architecture x86_64". You're linking against a 32-bit library somewhere. What library, we have no idea, since you didn't include enough information.