3

I recently added the iOS Parse Framework to my Xcode 5 project. I am getting 10 errors now... None from code. They are all Apple Mach-O Linker Errors. I took the framework out and the errors went away. I am using the latest Parse.framework, so I do not know why I am getting these errors.

I also have another question, now that I updated to Xcode 5.1, when ever I use the UITabBarController or just want to add a tab bar to a ViewController... I gets all weird. The entire bar turns a solid grey...

Parse Mach-O Linker Error Picture http://postimg.org/image/s0y7b6a23/

UITabController Problem Picture http://postimg.org/image/osp4kdyej/

BenMorel
  • 34,448
  • 50
  • 182
  • 322
user3438084
  • 33
  • 1
  • 5

6 Answers6

10

According to Parse iOS quick start doc :

You need to have all these frameworks added to your build Target

enter image description here

Shubhank
  • 21,721
  • 8
  • 65
  • 83
3

I had similar linker errors using v1.6.2 of the Parse SDK. except I got around 30 errors.

I ended up fixing the issue by removing the -ObjC linker flag from other linker flags under MyTarget > Build Settings > Linking.

Other linker flags

This is what the sample Parse project found in the Quick Start section of the Parse docs does, so let's assume that it's correct.

Bogdan Vitoc
  • 139
  • 12
  • For **Cocoapods** : it took me forever to figure out how to use Parse with Cocoapods. The steps are these: 1. Remove ObjC linker flag like above __ 2. Install CocoaPods using `pod intstall --no-integrate` __ 3. [Drag the generated pods project into xcode as a subproject](http://www.cocoanetics.com/2011/12/sub-projects-in-xcode). __ 4. Follow steps in link except for creating a new target, linking binary with library, and adding the -ObjC flag __ Tag me in comments if you run into problems, I'll try to help. – Bogdan Vitoc Jan 28 '15 at 20:50
  • But I have a issue when using this with Google Map Kit, because it is necessary to set -ObjC flag for that. Do you have any idea to deal in this case ? – Mrug Jan 29 '15 at 06:34
1

You can try to delete path under target->Build Settings->Library Search Paths for your first question.

birdcage
  • 2,638
  • 4
  • 35
  • 58
1

Solution step by step for fixing this problem (it is useless to modify your Xcode project's configuration, you just have to use the latest versions of all softwares, API(s), tools + clean all XCode builds and everything will be alright):

1 - Use the latest versions of Xcode, Swift/Objective-C and iOS.

2 - Delete all Xcode builds.

rm -rf ~/Library/Developer/Xcode/DerivedData/*

3 - Install/Update Cocoapods (it is important to use the last version) to manage dependencies.

sudo gem install cocoapods

4 - Update your Podfile:

vim Podfile

pod '[Name of the API]', '>= [Any API version]'

5 - Update your local repository:

pod repo update

6 - Update the dependencies of the Xcode project:

pod update

Generally from that point your "Apple Mach-O Linker Error Parse" will disappear.

King-Wizard
  • 15,628
  • 6
  • 82
  • 76
0

To your second question - I had images that were not sized correctly in my tab bar and got the same result you speak of. I deleted them out of the tab bar and it went back to normal. Not sure if this answers your question, but doing this solved the problem for me. Tab bar images should be 50x50.

DevHut
  • 1
  • 1
0

Ok its July 2015 and I tried all the solutions above but finally resolved this by using adding Parse through CocoaPods and removing (or not adding in the first place) the frameworks directly in my project.

James Lin
  • 715
  • 6
  • 18