Undefined symbols _RCTRegisterModule - ios

I'm using xcode 13,
React-native version 0.64.2
Its working fine in Android but iOS I getting error
It builds with the following error:
Undefined symbols for architecture x86_64:
"_RCTRegisterModule", referenced from:
+[RNMixpanel load] in RNMixpanel.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Undefined symbol: _RCTRegisterModule

Not sure if it's the same thing but for me my solution was an issue with the packages, they had s.dependancy as React when it should be React-Core. See here: https://github.com/facebook/react-native/issues/29633#issuecomment-694187116
You can manually change them to see if it works for you and then use the patcher as suggested to fix the libraries.

Related

Xcode13 Undefined symbol: ___gcov_flush

For code coverage, I upgraded to xcode13 and used extern to export the built-in function 'Gcov'. Xcode13 reported an error of "undefined symbol: __gcov_flush". I'm good on xcode12. Does anyone encounter this problem?
The specific error reports are as follows:
Undefined symbols for architecture x86_64: "___gcov_flush", referenced from: -[AppDelegate applicationDidEnterBackground:] in AppDelegate.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
new llvm use __gcov_dump(). Place use new LLVM

Undefined symbols for architecture x86_64 when using Tesseract

I am using tesseract provided by google. After following this tutorial, i finally built finish my app. However, when i run it, i run into the problem of undefined symbols. This is the error
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_G8Tesseract", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How do i fix this issue? I tried searching online but none of the solutions worked for me. I tried reinstalling the pods and updating it. Then i faced this error
clang: error: no such file or directory: '/Users/admin/Desktop/tst/Pods/Target Support Files/Pods-tst/Pods-tst-dummy.m'
clang: error: no input files
When i tried redoing the project i get his error
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_G8Tesseract", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Apparently i had to add the TesseractOCR.framework separately even after using cocoa pods and disable Bitcode. This prevented the errors.
I think you should update pod version:
sudo gem install cocoapods
After this run:
pod update --verbose
Since Tesseract requires libstdc++.6.0.9.dylib (or libstdc++.6.0.9.tbd if libstdc++.6.0.9.dylib is unavailable in your current Xcode version) and CoreImage.framework you’ll need to link both of these libraries in.
In the General tab, scroll down to Linked Frameworks and Libraries.
There should be only one file here: TesseractOCR.framework, which you just added. Click the + button underneath the list. Find both libstdc++.dylib (or libstdc++.6.0.9.tbd) and CoreImage.framework and add them to your project.

gstreamer ios undefined symbol _gst_plugin_liveadder_register

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)

iOS Error Undefined symbols for architecture armv7?

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.

googlemap sdk having issue with the ios architecture

As the apple map adk is not well detailed on street details, and the google has provided the new sdk, I am trying to get this as a work around for the current ios 6, the problem that I am facing is that it is throwing error no matter what architecture you have placed in the settings,
Following is the error, though it works with no problem when running there sdkmapdemo :(
Undefined symbols for architecture armv7:
"___gxx_personality_sj0", referenced from:
+[GMSServices provideAPIKey:] in GoogleMaps(GMSServices.o)
+[GMSServices openSourceLicenseInfo] in GoogleMaps(GMSServices.o)
+[GMSServices services] in GoogleMaps(GMSServices.o)
_GMS_NSClassFromString in GoogleMaps(GMSRenames.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Did you add libstdc++.dylib to the project's frameworks?

Resources