Apple Mach-O Linker Error Parse

被刻印的时光 ゝ 提交于 2019-12-18 08:58:44

问题


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/


回答1:


According to Parse iOS quick start doc :

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




回答2:


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.

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.




回答3:


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




回答4:


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.




回答5:


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.




回答6:


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.



来源:https://stackoverflow.com/questions/22509290/apple-mach-o-linker-error-parse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!