简体   繁体   中英

Parse in Xcode using Objective C

I am trying to implement Parse in my Xcode project. However, when I add the frameworks, I cannot run my app because I have 9 different Mach-O Linker errors.

I know that I can just remove the frameworks to get rid of the errors, but I still want to use Parse.

Did I do something wrong when adding the frameworks? I just dragged them over and tried once not "copying if needed" and the other time I did. I still get the same errors. Here is a snapshot of what the errors look like:

在此处输入图片说明

EDIT: I added libstdc++6.0.9.dylib and almost all my errors were fixed, but I still get the nine errors shown in the picture!

Are you sure you have added all the required libraries (not only the ones from the Parse SDK, but also those required for the SDK itself)?

Please check against the following list:

• AudioToolbox.framework

• CFNetwork.framework

• CoreGraphics.framework

• CoreLocation.framework

• QuartzCore.framework

• Security.framework

• StoreKit.framework

• SystemConfiguration.framework

• libz.dylib

• libsqlite3.dylib

If you're using the -ObjC linker flag required by some third-party libraries, add these as well:

• Accounts.framework

• Social.framework

Also, see this quickstart guide from Parse (for detailed information) and check this answer

Especially, make sure you have added all the lib.libraries that are required by the above list, seems like you have forgotten some of them.

I think There might be some problem in your SDK ie -

Reason 1 - You might have imported .m file somewhere .

Reason 2 - The dependencies & configuration are not correctly configured .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM