How to solve liker error:can't link directly with lib system_configuration.dylib - ios

I am adding Google Analytics a bit older version by directly downloading the libraries for a reason.
Followed this tutorial https://www.raywenderlich.com/53459/google-analytics-ios
but after adding all the files and trying to build basic analytics code I am stuck at a linker error
ld: cannot link directly with /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/lib/system/libsystem_configuration.dylib. Link against the umbrella framework 'System.framework' instead. for architecture x86_64
I am not sure what exactly is happening , my Xcode is at 7.2 and trying to run this code on iPhone 6 simulator.
**** EDIT ***
Also above error has occurred after adding Google Analytics specific libs and headers

Related

iOS firebase Mach-O Linker Error without cocapods

I'm trying to import Firebase into my iOS app. I followed this tutorial for doing this manually with Objective-C (as opposed to using CocoaPods).
http://www.mokacoding.com/blog/setting-up-firebase-without-cocoapods/
When I try to build my project, I get the following errors:
"Apple Mach-O Linker Error"
"Linker command failed with exit code 1 (use -v to see invocation)"
I'm familiar with the Linux CLI (less so with Macs), but I don't understand how to apply the -v flag to XCode's build process to get more info.
I've been Googling this for the last 3 hours, but every answer I find seems to be directed at users who weren't using an XCode workspace with CocoaPods.
I don't have CocoaPods installed, so I don't think this is my issue. Despite that I have converted my project and properly imported it into an XCode workspace, this still didn't solve my problem.
My app is a Swift project, and I have imported the modulemap, firebase.h, and googleServices.plist files.
I've also made my Header and Library search paths recursive for the entire project folder in an attempt to fix this.
Here's my project navigation. Although at this point I suspect it's some kind of build setting that isn't correct.
Some selected answers I've tried to apply without success:
Apple Mach -O Linker command failed
In Xcode how do I create a new workspace and add 1 project to it so that I can see the project and its files?
Framework not found GoogleToolboxForMac
Adding system header search path to Xcode
https://github.com/firebase/firebase-ios-sdk/issues/258
Apple Mach-O Linker & Ditto Error - Xcode 8
https://github.com/invertase/react-native-firebase/issues/198
https://forum.ionicframework.com/t/ios-xcode-8-apple-mach-o-linker-ld-error-group-in-xcode/89903
Upgrading to xcode 9.2 fixes this. It appears to be an issue with earlier versions not properly handling linking.
Which is misleading b/c the firebase documentation indicates it's compatible with xcode 8. But I think that's assuming you use cocoapods. If you don't, and instead try to link the obj-c frameworks you need xcode 9+
Once I knew how to examine the more verbose linking error, googling for x86_64 led me to some helpful answers.
This and other answers helped me investigate upgrading.
ld: framework not found Stripe for architecture x86_64

ld: framework not found Fabric for architecture x86_64

I want to remove fabric sdk & implementation which i have used in my project but i getting ld: framework not found Fabric for architecture x86_64issue.
I really does not understand why i am getting this issue even after i am following bellow steps,
Removed all code related to fabric from my project
Removed framework from project navigator
Deleted run script from target build phase
Deleted derived data
Cleaned project
Restart xcode
Impact i have crosschecked framework search path also that weather any fabric reference is present but i have not found any reference there.
Can anybody help me to fix this?
Got irony,
Fabric removed Twitter kit from latest version of fabric, Still i was using twitter kit frameworks which was generated & added manually in my project from fabric. So i removed it. And re-install TwitterKit through pod. Now everything working fine.

Framework is not found. Linker command failed with exit code -1

I want to add Appsflyer framework in my project. Added by two ways
Downloaded the framework and imported it to project. Added in Linked Frameworks and Libraries. When i Compile it shows the error of "ld: framework not found AppsFlyer. Linker Command failed with exit code -1".
Tried with Cocoa pods. Created podfile and installed Appsflyer framework.
Here also i get the same error."ld: framework not found AppsFlyer. Linker Command failed with exit code -1".
Tried with all options from stackoverflow. By using Header search paths, Library search paths and framework search paths.Enabling Bitcode, Build Active Architecture only etc. Even though i get the same result.
Iam using Xcode 6.3 and tried with xcode 7.3 also.
Suggest me how to resolve the problem? Thanks in advance.

GCM Library errors: Integration GCM in iOS Swift

What I have done after 2 days of reading stack overflow:
Keywords to problem: "Apple-Mach-O Linker Error", "libGcmLib.a(GCMRmqManager.o)", sqlite3", "GCMRmq2PersistentStore"
Installed latest pod.
Tested 'Other Linker Flags' -ObJC and empty as well.
Cleaned the project and rebuilt. Deleted project and recreated, no help. Header is in the right path and properly configured.
Manually copied dependencies but it didn't help.
Manually copied new source code from Google's Github as well as their recently updated 'GCM Playground', nothing worked.
Integrated CoreData.framework to no avail.
Tried these solutions:
Apple Mach-O Linker Error when compiling for device,
CocoaPods adds incorrect Other Linker Flags, Google Cloud Messaging Bridging Header import fails, Xcode - symbol(s) not found for architecture x86_64 (iOS Lib), Undefined symbols for architecture arm64, Apple Mach-O-Linker Error CocoaPods, Swift iOS don't recognize GCM library imports?
So I am stuck. How do I solve the problem(s) displayed in the image below: "sqlite3.... ", referenced from: "GCMRmq2PersistentStore in libGcmLib.a(GCMRmqManager.o)?
IMAGE
GCM seems to be using sqlite3 in the library. You should link your app against it to build it. You tried integrating CoreData but it should rather have been sqlite3.
You should also check CocoaPod's generated xcconfig file i.e. Pods/Target Support Files/Pods/Pods.debug.xcconfig file and the OTHER_LDFLAGS option should have -l"sqlite3" in it. That should have linked it for you.

Apple LLVM Error after trying to add google sign in

I tried following this example to the tee:
Swift iOS Google Sign-In
And even tried the pod try Google demo app but that doesn't even go past the splash screen before a SIGABRT.
I'm sure I am still doing something wrong but I can't figure out what it would be. I have added the bridging-header file as it suggested and when I command click on any GID referenced file it links me back to the source. I haven't fully connected up the UI components but I am assuming it should still be able to Build Succeed and launch the app empty nonetheless.
I have isolated it down to just the cocoa pod installation of Google related items. Even after adding the generated file GoogleService-Info.plist from the instructions to all targets and at the root of my XCode project I still get the same error:
clang: error: cannot specify -o when generating multiple output files
When I remove Google items from the Podfile it seems to run fine. I still have Alamofire, SwiftyJSON there so the pods are installing and being referenced just fine. I also have Facebook login working perfectly also! Just can't seem to figure out what's going wrong here...
The full error is again:
Apple LLVM 6.1 Error: clang: error: cannot specify -o when generating multiple output files

Resources