Undefined symbol error after Xcode 13 update - react-native-ios

I have recently updated my Xcode to v13. Since then when I tried to archive I am getting following error
Undefined symbol: _OBJC_METACLASS_$_UMAppDelegateWrapper
Undefined symbol: _OBJC_CLASS_$_UMAppDelegateWrapper
Undefined symbol: _OBJC_CLASS_$_UMModuleRegistryProvider
Undefined symbol: _OBJC_CLASS_$_UMModuleRegistryAdapter
If I run in simulator or real device, Then there is no error. Getting errors only when I tired to archiving.
I tried to apply what suggested in this SO question. But there is no use.
Can someone help me to get rid of these errors?

There is a new library from Xcode 12 that needs to be added to the Link Binary with Libraries phase call libSwiftWebKit.tbd. This help me.
Go to the Xcode
Build Phases => Link Binary With Libraries => press + paste in search libSwiftWebKit.tbd => Add

Related

OpenSSL libssl.so error undefined reference to 'ssl3_cbc_remove_padding'

I am currently patching a older version of OpenSSL to the latest stable 1.0.0o build (via import_openssl.sh)for use with a Android application via the NDK r10c.
While building the libssl.so sharedlibrary i am presented with the following errors.
[armeabi] SharedLibrary : libssl.so
jni/openssl/ssl/s3_enc.c:542: error: undefined reference to 'ssl3_cbc_remove_padding'
jni/openssl/ssl/s3_enc.c:739: error: undefined reference to 'ssl3_cbc_record_digest_supported'
jni/openssl/ssl/s3_enc.c:764: error: undefined reference to 'ssl3_cbc_digest_record'
jni/openssl/ssl/s3_pkt.c:464: error: undefined reference to 'ssl3_cbc_copy_mac'
jni/openssl/ssl/t1_enc.c:763: error: undefined reference to 'tls1_cbc_remove_padding'
jni/openssl/ssl/t1_enc.c:919: error: undefined reference to 'ssl3_cbc_record_digest_supported'
jni/openssl/ssl/t1_enc.c:925: error: undefined reference to 'ssl3_cbc_digest_record'
jni/openssl/ssl/ssl_lib.c:1058: error: undefined reference to 'dtls1_min_mtu'
Taking the first error for example, i can see a reference in the file s3_enc.c (https://github.com/openssl/openssl/blob/OpenSSL_1_0_0-stable/ssl/s3_enc.c) to a function 'ssl3_cbc_remove_padding' but the actual function is nowhere to be seen, only a prototype in ssl_locl.h (https://github.com/openssl/openssl/blob/OpenSSL_1_0_0-stable/ssl/ssl_lib.c) so i am a little confused.
Any help or previous experience would be greatly appreciated in order to get these errors cleared. if you need me to elaborate further, please ask.
Check the files (s3_enc.c, t1_enc.c, ssl_lib.c), included in their respective .mk files or not. In my case it was not included so I just add these source files in ssl/Android.mk under LOCAL_SRC_FILES section.

Trying to build application in redhat machine and getting undefined reference error from linker

I am new in this sphere and need help of experienced people.
I am trying to build the product on redhat machine with gcc-4.7.2. I am linking lstdc++ statically. As a result I am getting undefined reference issue.
To be more specific, let me show some details.
Building with -Wl,--verbose option shows : RHEL5.5/gcc-4.7.2/lib/libstdc++.a succeeded
nm --demangle RHEL5.5/gcc-4.7.2/lib/libstdc++.a | grep "_M_hook" shows: 00000000 T std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)
But as a result getting: sym_sdfio_ioinfo.cpp:(.text+0x598e): undefined reference to std::_List_node_base::_M_hook(std::_List_node_base*)'
../../lib/debugger/ye_datagen/tmax/lib/libsym_kernel-O.a(sym_sdfio_ioinfo_rw.o): In functionCIOInfo::LoadSegment(long long, SYM_SDF::CSDFFilter const*, SYM_SDF::CSDFSegment*)':
sym_sdfio_ioinfo_rw.cpp:(.text+0xf3d): undefined reference to std::_List_node_base::_M_hook(std::_List_node_base*)'
../../lib/debugger/ye_datagen/tmax/lib/libsym_kernel-O.a(sym_sdfio_rw_text.o):sym_sdfio_rw_text.cpp:(.text+0x1592): more undefined references tostd::_List_node_base::_M_hook(std::_List_node_base*)' follow
collect2: error: ld returned 1 exit status
The only strange thing I see is "00000000" in 00000000 T std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)
Please, help me to figure out what I am missing here.
Here we are, a year later, so this probably won't do you any good, but I ran in to this today. I was building on a RedHat 6 box, and had copied the application's source tree from my Ubuntu machine.
I encountered this error when building, but found that I had neglected to run a "make clean" on the source tree, and so was linking with objects built on Ubuntu. Make sure to clear out your build environment so that old libraries and objects aren't around polluting your pristine RedHat 6 build.

symbol lookup error: undefined symbol: UCNV_FROM_U_CALLBACK_ESCAPE_44

I am getting this error when I try to run my project with the lib webkit shared library
The whole error is
symbol lookup error: ./lib/libwebkit-1.0.so.2: undefined symbol:
UCNV_FROM_U_CALLBACK_ESCAPE_44
I just want to look for what might cause this error as I didn't find anything useful on google to tell me what is the problem right now.
It turn out that when I recompile my ICU library "properly" it worked again

Undefined reference errors when including external library libxml2 in android ndk

I'm trying to use libxml2 with android ndk. When I run the make file, I got errors saying that file 'unicode/ucnv.h' does not exist. I've seen 'unicode/ucnv.h' is included in one of the files and no such header file is present. So I downloaded unicode header files from http://site.icu-project.org/ and placed them in include folder.
Now the previous error is gone but I've got these errors.
SharedLibrary : libxml2.so
./obj/local/armeabi/objs-debug/xml2/encoding.o: In function `openIcuConverter':
C:\test\hello-jni/jni/encoding.c:109: undefined reference to `ucnv_open_49'
C:\test\hello-jni/jni/encoding.c:115: undefined reference to `ucnv_setToUCallBack_49'
C:\test\hello-jni/jni/encoding.c:119: undefined reference to `ucnv_setFromUCallBack_49'
C:\test\hello-jni/jni/encoding.c:126: undefined reference to `ucnv_open_49'
C:\test\hello-jni/jni/encoding.c:132: undefined reference to `ucnv_close_49'
C:\test\hello-jni/jni/encoding.c:135: undefined reference to `UCNV_TO_U_CALLBACK_STOP_49'
C:\test\hello-jni/jni/encoding.c:135: undefined reference to `UCNV_FROM_U_CALLBACK_STOP_49'
./obj/local/armeabi/objs-debug/xml2/encoding.o: In function `closeIcuConverter':
C:\test\hello-jni/jni/encoding.c:141: undefined reference to `ucnv_close_49'
C:\test\hello-jni/jni/encoding.c:142: undefined reference to `ucnv_close_49'
./obj/local/armeabi/objs-debug/xml2/encoding.o: In function `xmlUconvWrapper':
C:\test\hello-jni/jni/encoding.c:1865: undefined reference to `ucnv_convertEx_49'
C:\test\hello-jni/jni/encoding.c:1870: undefined reference to `ucnv_convertEx_49'
collect2: ld returned 1 exit status
make: * [obj/local/armeabi/libxml2.so] Error 1
I didn't find function ucnv_open_49 in any of the files.
Am I the only one who is facing this problem?
Build unicode library (icu) along with libxml2 and mention in LOCAL_SHARED_LIBRARIES.
That's it!
Are you intending to link libxml2 against ICU (e.g. use it for conversion)? It's optional but currently you have it enabled. With such you'll need ICU to be linked in as well rather static or dynamic. See the libxml2's configure script for options. Some of which are iconv or even no converters if you intend to work with UTF-8 only.

gstreamer plugin development issue, gst-inspect says: undefined symbol: gst_video_format_new_caps

I need to develop a gstreamer source element, so after running a script to generate plug-in sources and adding some basic boilerplate code, I got my plug-in to build, however when trying to load it from gst-inspect tool, I get:
(gst-plugin-scanner:10260): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-0.10/libgstbcmdec.so': /usr/lib64/gstreamer-0.10/libgstbcmdec.so: undefined symbol: gst_video_format_new_caps
I found that this symbol should be in gstreamer-plugins-base so I double-checked that its already installed. Also added -lgstvideo-0.10 to the Makefile.am (so added to GST_LIBS) however this doesnt help. Any ideas what I am doing wrong?
I am working on Fedora core 14, 64 bit, and have the latest gstreamer-* packages (used yum).
What is your exact Makefile.am? Is it looking like this?
libgstbcmdec_la_LIBADD = \
$(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) \
...

Resources