Reputation: 1368
I have a project which is using some CocoaPods to manage some external libraries. My project was working fine when I was just using two libraries (EstimoteSDK and EstimoteIndoorSDK). But, I modified my podfile to add the Alamofire library. My podfile looks like this:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
pod 'EstimoteSDK'
pod 'EstimoteIndoorSDK'
pod 'Alamofire', '~> 1.1'
After I run 'pod install', I can see the added Alamofire folder... so I assume all went well. I then open my project.xcworkspace file and try to build my app... but I get an Apple Mach-O Librarian Error stating that there is an 'unknown option character 'X' in : -XLinker'. Nothing really changed in my project from before... except for installing the Alamofire pod... and this error is indeed linked to the Pod-Alamofire project but I don't really know what it means. I have seen this post, but it doesn't seem to be the issue as the Architectures of both the Main project and the pods are set to "Standard architectures (armv7, arm64)". Does anyone know why I keep getting this error?
Upvotes: 1
Views: 980
Reputation: 1950
I had the same problem a few days ago. The commands below fixed my problem.
First uninstall the cocoa pods by using the command below:
gem uninstall cocoapods
After, reinstall the cocoaPods library with the following code below
gem install cocoapods --pre
Upvotes: 1