Undefined symbols for architecture x86_64: "_sqlite3_close", referenced - ios

I'm new to objective-c and am getting this error when I add from sqlite3 calls in xcode. Any one know what I can do to fix this error?
Undefined symbols for architecture x86_64:
"_sqlite3_close", referenced from:
-[InAppUtils get:] in libInAppUtils.a(InAppUtils.o)
"_sqlite3_exec", referenced from:
-[InAppUtils get:] in libInAppUtils.a(InAppUtils.o)
"_sqlite3_open", referenced from:
-[InAppUtils get:] in libInAppUtils.a(InAppUtils.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 tried adding the libsqlite3.dylib library but I can't find it on my system. Is it required? If so, how do I find it?

It looks like libsqlite3.tbd is the new libsqlite3.dylib. I added it and everything worked.
Go to the Build Phases tab. Expand the "Link Binary with Libraries" section. Click on the + icon. Search for "sqlite". Add the library

Related

Undefined symbols for architecture armv7: "_OBJC_CLASS_$_MPMusicPlayerController"

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

Podfile error: Undefined Symbols for Architecture arm64

I updated my cocoapods version to 1.0 and am now getting a slew of errors regarding architecture. This is what my errors look like:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_Reachability", referenced from:
objc-class-ref in ReachabilityManager.o
(maybe you meant: _OBJC_CLASS_$_ReachabilityManager)
"_OBJC_CLASS_$_PBJVision", referenced from:
objc-class-ref in NewSpinViewController.o
"_PBJVisionPhotoImageKey", referenced from:
-[NewSpinViewController vision:capturedPhoto:error:] in NewSpinViewController.o
"_kReachabilityChangedNotification", referenced from:
-[NoInternetViewController viewDidLoad] in NoInternetViewController.o
"_PBJVisionPhotoThumbnailKey", referenced from:
-[NewSpinViewController vision:capturedPhoto:error:] in NewSpinViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've spent hours trying to fix this by toggling settlings under build settings but nothing is working for me.
This is what I currently have for my Architectures
Anyone have any ideas?
Try this: delete derived data and compile again. Sometimes the pod libraries simply don't get compiled even you cleaned the project, this happened to me when I updated to cocoapods 1.0.1.

Undefined symbols for architecture armv7 for _NTP_Logging

First of all there is a lot of question Asked how to solve that compilation Error that seems happening when importing lib/files. Can anyone explain what does it mean by "Undefined symbols for architecture armv7" first of all. I imported files for ntp client for iso (http://code.google.com/p/ios-ntp/source/checkout) which worked in its own Xcode project but when i moved to my project and it failed with the following Error and warnings . Any idea ?
Undefined symbols for architecture armv7:
"_NTP_Logging", referenced from:
-[NetAssociation evaluatePacket] in NetAssociation-586077E517B5DC42.o
-[NetworkClock associationTrue:] in NetworkClock-496336397AA5FC44.o
-[NetworkClock associationFake:] in NetworkClock-496336397AA5FC44.o
"_DEFINE_SHARED_INSTANCE_USING_BLOCK", referenced from:
+[NetworkClock sharedInstance] in NetworkClock-496336397AA5FC44.o
"_LogInProduction", referenced from:
-[NetAssociation enable] in NetAssociation-586077E517B5DC42.o
-[NetAssociation finish] in NetAssociation-586077E517B5DC42.o
-[NetAssociation onUdpSocketDidClose:] in NetAssociation-586077E517B5DC42.o
-[NetworkClock createAssociations] in NetworkClock-496336397AA5FC44.o
-[NetworkClock applicationBack:] in NetworkClock-496336397AA5FC44.o
-[NetworkClock applicationFore:] in NetworkClock-496336397AA5FC44.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Warning: no rule to process file '$(PROJECT_DIR)/SwapViews_3/NetAssociation.h' of type
sourcecode.c.h for architecture armv7
You shouldn't have .h files among .c files to be compiled.
Go to "Build Phases" tab of your target. Then check the "Compile Sources" section and remove the .h files.

GData iPhone Archive Error

Following the instructions here: http://hoishing.wordpress.com/2011/08/23/gdata-objective-c-client-setup-in-xcode-4/
I added GData to my iOS 5 project. When it's time to archive the project I get the following error:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_GDataServiceGoogleYouTube", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_GDataEntryYouTubeVideo", referenced from:
objc-class-ref in DataManager.o
objc-class-ref in ListController.o
objc-class-ref in ShareController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've checked the build settings for the GData.xcodeproj -> GDataTouchStaticLib, and this is what I set them to as seen by this pic: )
Any help is appreciated, to help get my project archived.
You haven't linked the libraries properly. Make sure you follow the directions carefully when it comes to adding the library paths. See Undefined symbols for architecture armv7 for more information.

undefined symbols for architecture i386:Apple Mach-O Linke(id)error

I have an error like this
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_ViewController", 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)
How can you solve this problem? Please help me.
Find the file ViewController.m in your project and select it.
Use the properties inspector (Apple-Option-1) to ensure that it's added to your target membership whatever that target may be. It will need have a tick next to the target.

Resources