Auto-Linking framework not found Realm - ios

I have an app, and suddenly i got following errors. I have those frameworks imported by carthage directly in project.
In my ViewController class i just paste:
import Alamofire
print(AlamofireVersionNumber)
ld: warning: Auto-Linking framework not found Realm
ld: warning: Auto-Linking framework not found Alamofire
Undefined symbols for architecture armv7:
"_AlamofireVersionNumber", referenced from:
ChpuDemo.ViewController.viewDidLoad() -> () in ViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I did try to clean, delete derived data etc. What does that errors mean?

I solve issue by adding the same framework via CocoaPods for main project, that duplicate the same framework that was in my custom library.

Related

Trying to import GoogleMobileAds causes compilation (link) error

I downloaded the latest GoogleMobileAds SDK, put it in the directory where my other Frameworks are located, and then imported the framework (Build Phases, Link Binary With Libraries)
But even without referring this SDK it in the code, the compilation fails:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_GLKView", referenced from:
objc-class-ref in GoogleMobileAds(flat-arm64)
"_GLKMatrix4Identity", referenced from:
l13228 in GoogleMobileAds(flat-arm64)
l13240 in GoogleMobileAds(flat-arm64)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Any help or hint you provide is much appreciated

custom framework giving error when included file was built for x86_64 which is not the architecture being linked

I have a custom framework that I created named CCServices. When I try to implement it into my project, Setec, I get the following warnings.
ld: warning: ignoring file /Users/lindsey.vastola/Desktop/Setec/iOS/Setec/Setec/Frameworks/CCServices.framework/CCServices, file was built for x86_64 which is not the architecture being linked (arm64): /Users/lindsey.vastola/Desktop/Setec/iOS/Setec/Setec/Frameworks/CCServices.framework/CCServices
ld: warning: ignoring file /Users/lindsey.vastola/Desktop/Setec/iOS/Setec/Setec/Frameworks/CCSocket.framework/CCSocket, missing required architecture arm64 in file /Users/lindsey.vastola/Desktop/Setec/iOS/Setec/Setec/Frameworks/CCSocket.framework/CCSocket (2 slices)
Then I get the following errors when I reference some controllers in the framework.
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_Conversation", referenced from:
type metadata accessor for __ObjC.Conversation in CaptionsViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How do I get rid of these? I have tried different solutions but nothing worked. Please note that CCSocket is written in Objective C and Setec is in Swift.
the framework was missing in the link binary with libraries list.

ParseFacebookUtil: Apple Mach-O Linker, undefined symbol for architecture x86_64 PFDateFormatter

Error occurs after adding the ParseFacebookUtil
ERROR MESSAGE
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_PFDateFormatter", referenced from:
objc-class-ref in ParseFacebookUtils(PFFacebookAuthenticationProvider.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
FRAMEWORKS
I am using XCode 6.2
Thanks
edit:
I've added the frameworks social, and accounts. Same error still occurs.
I ended up fixing this issue by deleting the Parse and Bolts framework, and re adding it back into the project.
Edit:
The best solution to this issue is by using cocoapods. It handles the dependencies better than manually dragging in the framework files.

ld cannot find some of my symbols

I am using Xcode 6.1 with iOS 8.1 SDK to develop an iOS application.
SailracerEngine class imports SmoothSpeedTimeSeries and SmoothCourseTimeSeries classes to implement some of its functionality. Both are subclasses of SmoothTimeSeries. When I try to build my project, linker fails with the following error:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_SmoothCourseTimeSeries", referenced from:
objc-class-ref in SailracerEngine.o
"_OBJC_CLASS_$_SmoothSpeedTimeSeries", referenced from:
objc-class-ref in SailracerEngine.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Other module in my code is using SmoothSpeedTimeSeries and SmoothCourseTimeSeries without any linker errors. How can this issue be solved?
The implementation file for class SmoothCourseTimeSeries has not been added to the Xcode Target.
If you click on the implementation file you should be able to see which Xcode targets it belongs to using the file inspector on the right.

Architecture issue in iOS

I'm using Reachability on my project to get the type of connection used, but an error has ocurred.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_Reachability", referenced from:
objc-class-ref in ContributionViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I don't know what to do... my project is for iOS 4.3 and I've never had this kind of problem before.
Thx
Did you include the reachability framework in your projects linked libraries ? You can confirm by clicking on your project file on the file list and checking the build phases tab. It should be listed in the linked library section,

Resources