I've created a clean build of libmariadbclient and integrated it into my project. Whenever I try to build said project I fail with an error:
Undefined symbols for architecture x86_64:
"_libiconv", referenced from:
_mariadb_convert_string in libmariadbclient.a(my_charset.c.o)
"_libiconv_close", referenced from:
_mariadb_convert_string in libmariadbclient.a(my_charset.c.o)
"_libiconv_open", referenced from:
_mariadb_convert_string in libmariadbclient.a(my_charset.c.o)
ld: symbol(s) not found for architecture x86_64
I then add libiconvlib.dylid to my project, cleaned it and tried to build again, but I still get the same error. Any ideas?
I filed a bug report with the developers and the issue was promptly fixed.
Related
I am working on a flutter project. My project includes tflite and amplify packages. it works fine with android but whenever I try to build it in Xcode I am getting this following errors:
Undefined symbols for architecture arm64:
"OBJC_CLASS$_FlutterStandardTypedData", referenced from:
objc-class-ref in tflite(TflitePlugin.o)
enter code here
"_FlutterMethodNotImplemented", referenced from:
-[TflitePlugin handleMethodCall:result:] in tflite(TflitePlugin.o)
"OBJC_CLASS$_FlutterMethodChannel", referenced from:
objc-class-ref in tflite(TflitePlugin.o)
"OBJC_METACLASS$_FlutterAppDelegate", referenced from:
OBJC_METACLASS$_AppDelegate in AppDelegate.o
"OBJC_CLASS$_FlutterAppDelegate", referenced from:
OBJC_CLASS$_AppDelegate in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please help me with this. I have been stuck with this issue for more than a week now. Thank you.
I have added a snippet from Xcode which shows the current settings for Architectures. There are past suggestions to add arm64 as a Valid architectures. However, as you see there is no option for that. I added arm64 in excluded architectures as shown in the picture. It didn't work for me.
I am developing an AR project in Unity and building an iOS build. From Unity, build is successful but in Xcode build is giving error like this.
Undefined symbols for architecture arm64:
"_addZipFile", referenced from:
_ZipUtil_addZipFile_m779653781 in Bulk_Assembly-CSharp-firstpass_0.o
_ZipUtil_Zip_m3365174905 in Bulk_Assembly-CSharp-firstpass_0.o
(maybe you meant: _ZipUtil_addZipFile_m779653781)
"_zip", referenced from:
_ZipUtil_zip_m353699619 in Bulk_Assembly-CSharp-firstpass_0.o
_ZipUtil_Zip_m3365174905 in Bulk_Assembly-CSharp-firstpass_0.o
(maybe you meant: _ZipUtil_zip_m353699619)
"_unzip", referenced from:
_ZipUtil_unzip_m1045744427 in Bulk_Assembly-CSharp-firstpass_0.o
(maybe you meant: _ZipUtil_unzip_m1045744427)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have already tried all the possible solution searched here.
Thanks.
You're using UnityZip plugin in your project but when your xcode project is built it says that it can find a UnityZip's plugin to link. So all the code which is using this plugin is unknown to compiler. Look at the UnityZip github page one more time. I suppose that you've missed this step:
add file "PluginsCode>iOS>ZipArchive" to xcode project.
So just add needed files to the project and it should compile.
I have tried removig the following error by following many solutions here and on other forums.
Undefined symbols for architecture armv7:
"_kABPersonPhoneProperty", referenced from:
+[InviteHelpers findPhoneNumbersForContact:] in libMedioEvent.a(InviteHelpers.o)
"_ABPersonCopyArrayOfAllLinkedPeople", referenced from:
_CopyValuesFromLinkedContact in libMedioEvent.a(InviteHelpers.o)
"_ABMultiValueCopyLabelAtIndex", referenced from:
_CopyValuesFromLinkedContact in libMedioEvent.a(InviteHelpers.o)
"_ABMultiValueAddValueAndLabel", referenced from:
_CopyValuesFromLinkedContact in libMedioEvent.a(InviteHelpers.o)
"_ABMultiValueCopyValueAtIndex", referenced from:
+[InviteHelpers findEmailsForContact:] in libMedioEvent.a(InviteHelpers.o)
+[InviteHelpers findPhoneNumbersForContact:] in libMedioEvent.a(InviteHelpers.o)
_CopyValuesFromLinkedContact in libMedioEvent.a(InviteHelpers.o)
+[InviteHelpers findContactTwitter:] in libMedioEvent.a(InviteHelpers.o)
I have already included the MedioEvent SDK and its precompiled source in the project, and also included it in Framework and Library search paths. What bothers me is that it is coming from inside libMedioEvent.o.
Do I have to include "InviteHelpers" sdk as well?
I am getting this error when I try to run my unit tests. The entire error is:
Undefined symbols for architecture i386:
"_CGImageRelease", referenced from:
_releaseImages in UIImage+animatedGIF.o
"_CGImageSourceCopyPropertiesAtIndex", referenced from:
_delayCentisecondsForImageAtIndex in UIImage+animatedGIF.o
"_CGImageSourceCreateImageAtIndex", referenced from:
_createImagesAndDelays in UIImage+animatedGIF.o
"_CGImageSourceCreateWithData", referenced from:
+[UIImage(animatedGIF) animatedImageWithAnimatedGIFData:] in UIImage+animatedGIF.o
"_CGImageSourceCreateWithURL", referenced from:
+[UIImage(animatedGIF) animatedImageWithAnimatedGIFURL:] in UIImage+animatedGIF.o
"_CGImageSourceGetCount", referenced from:
_animatedImageWithAnimatedGIFImageSource in UIImage+animatedGIF.o
"_kCGImagePropertyGIFDelayTime", referenced from:
_delayCentisecondsForImageAtIndex in UIImage+animatedGIF.o
"_kCGImagePropertyGIFDictionary", referenced from:
_delayCentisecondsForImageAtIndex in UIImage+animatedGIF.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I did all the instructions here:
http://twobitlabs.com/2011/06/adding-ocunit-to-an-existing-ios-project-with-xcode-4/
Also added the library to "Compile Sources" in Build Phrases of the test target. Still no luck.
Looks like you need to add "CoreGraphics.framework" and "ApplicationServices.framework" to your unit test target membership.
Here's how it's done for a file:
Just go to "CoreGraphics.framework" in the list of files and folders on the left side and make certain the checkmark is "ON" for the unit tests target.
Go to build phases of target, Add ImageIO.framework
I used Xcode to build a example of boost, but as you see followed it is failed. And the error
I've got is:
Undefined symbols for architecture x86_64:
"boost::system::system_category()", referenced from:
___cxx_global_var_init2 in sync_client.o
boost::asio::error::get_system_category() in sync_client.o
boost::system::error_code::error_code() in sync_client.o
"boost::system::generic_category()", referenced from:
___cxx_global_var_init in sync_client.o
___cxx_global_var_init1 in sync_client.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I don't know how I can fix it. I've added the include and libs path of boost into Xcode Build Setting. Does anyone have any idea about this problem?
Either link against a pre-built version of libboost-system.so or pull in libs/system/src/error_code.cpp (from your boost source package), into your project.