All of a sudden I am getting the following compile error in my project:
Undefined symbols for architecture arm64:
"_sqlite3_mprintf", referenced from:
_linphone_core_store_call_log in liblinphone.a(call_log.c.o)
_linphone_chat_message_store in liblinphone.a(message_storage.c.o)
_linphone_chat_message_store_state in liblinphone.a(message_storage.c.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It looks like your Xcode project is missing a reference to sqlite3 that is required by liblinphone:
Open your Xcode project file
Go the "General" tab
Look for the section that says "Linked Frameworks and Libraries"
Press the "+" button
Search for "sqlite"
Click on "libsqlite3.dylib" and press "Add"
Now it should build and run.
I downloaded the new xcode beta version and that fixed it.
Related
After upgrade xcode to 10.1 the project's compile fails with :
ld: warning: directory not found for option '-L/Users/divanov/Desktop/<projectName> AppTests'
Undefined symbols for architecture arm64:
"_RCTSetLogFunction", referenced from:
-[AppTests testRendersWelcomeScreen] in AppTests.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The following work around worked for me:
in XCode select the project in the left panel
Click on "Build Settings"
In the "Linking" section, find"Dead Code Stripping" section and change it "No"
Clean and Build
*** In another project I got the same error but in that case the libraries were missing in "Settings of the failing Target"/"Build Phases"/"Link Binary With", so I had to add them manually!
I am getting these two error in my project after importing VCFloatingActionButton
1.
Undefined symbols for architecture x86_64:
"OBJC_CLASS$_VCFloatingActionButton", referenced from:
objc-class-ref in CreateServiceWizardViewController.o
ld: symbol(s) not found for architecture x86_64
2.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
If anyone has used this component intheir project, kindly guide me on how to use this component.
Assuming you have used Cocoa pods for VCFloatingButtonAction for intregation, Cocoapods makes a .xcworkspace file after the intregation is complete. If you open you project by normal .xcodeproj file, xcode will not find the framework and give you linker crash.
Open the project with .xcworkspace and not not .xcodeproj file and everything would be fine.
From this link MediaLibDemos3x , I downloaded source code and I am running it in X-Code 6.3.2 but I am getting following two errors . Can any one check it please give me a solution?
Error 1-
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_BroadcastStreamClient", referenced from:
objc-class-ref in ViewController.o
Error 2-
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It seems the included library are not compiled for i386 (or simulators) so you must run code on real device. See author comment here and here
Undefined symbols for architecture i386
You can get this type of error if your class' .m file is not listed under the "Compile Sources" step of the "Build Phases" tab of your target.
To do this:
Target Settings -> Build Phases -> Compile Sources -> add your .m class ->Build and Run
run your app on device.
i'm using cocoapods for the first time and after everything goes well
i get to run my project that was always wor˚ and got those 2 errors in lin˚er
can anyone please tell me what is it
than˚s
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_PECropViewController", referenced from:
objc-class-ref in addProductViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The addProductViewController object is not found and it was referenced within AppDelegate. You do not link addProductViewController into your app. Check if your Compile Sources section within the Build Phases of your project shows addProductViewController.m
than˚s every body for your help
the problem was with arm 64 i just added it in my target and everything work fine
in architectures filed add standard architectures armv7,arm64
So I ran into this wierd issue where I am able to compile and run my iOS project in simulator with out any issues but when I ran it for profiling with instrument (cmd + I) I am getting Apple mach o linker error for one of the library. I tried it reading to project but it did not helped. I also checked my search paths which looks as following
Other Linker Flags: -ObjC -all_load
Always Search User Paths: No
Framework Search Paths:$(SRCROOT) recursive
Library Search Paths:$(SRCROOT) recursive
I am getting following error message:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_TestFlight", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Am I missing anything in my linking phase which causing this thing to happen ?
It's not finding the TestFlight library. Easiest way to fix that is to find libTestFlight.a in the Xcode project browser and make sure your app is checked under "Target Membership" on the far right pane.