user1406716
user1406716

Reputation: 9705

Apple Mach-O Linker Error when using CocoaPods with Xcode

I am trying to add PFAnalytics (instructions here). Below is my PodFile. I just hit pod install and tried to compile and run, and I see the errors below:

pod file:

# Uncomment this line to define a global platform for your project
platform :ios, ‘8.0’

target 'ShitTalk' do
pod ‘Parse’
end

target 'ShitTalkTests' do

end

I tried to add Google Analytics too and I see the same error so I think if I try with ANY library with Cocoapods, it's going to do this.

Error: enter image description here

Upvotes: 0

Views: 1201

Answers (2)

Haroldo Gondim
Haroldo Gondim

Reputation: 7995

You must use the .xcworkspace file after pod install instead of .xcodeproj file.

The xcworkspace contains your project and your pods.

After that you should be able to run normally.

Upvotes: 4

Shamsudheen TK
Shamsudheen TK

Reputation: 31339

Try these two solutions

  1. Remove the library .a file from the ProjectTarget->Build Phase

  2. Open the workspace .xcworkspace instead of opening the .xcodeproj

Upvotes: 0

Related Questions