简体   繁体   English

使用Objective C在Xcode中进行解析

[英]Parse in Xcode using Objective C

I am trying to implement Parse in my Xcode project. 我正在尝试在Xcode项目中实现Parse。 However, when I add the frameworks, I cannot run my app because I have 9 different Mach-O Linker errors. 但是,当我添加框架时,由于存在9个不同的Mach-O Linker错误,因此无法运行我的应用程序。

I know that I can just remove the frameworks to get rid of the errors, but I still want to use Parse. 我知道我可以删除框架以消除错误,但是我仍然想使用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! 编辑:我添加了libstdc ++ 6.0.9.dylib,几乎所有错误都已修复,但是我仍然得到图片中所示的九个错误!

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)? 您确定已添加了所有必需的库(不仅包括Parse SDK中的库,还包括SDK本身所需的库)?

Please check against the following list: 请对照以下列表进行检查:

• AudioToolbox.framework •AudioToolbox.framework

• CFNetwork.framework •CFNetwork.framework

• CoreGraphics.framework •CoreGraphics.framework

• CoreLocation.framework •CoreLocation.framework

• QuartzCore.framework •QuartzCore.framework

• Security.framework •安全框架

• StoreKit.framework •StoreKit.framework

• SystemConfiguration.framework •SystemConfiguration.framework

• libz.dylib •libz.dylib

• libsqlite3.dylib •libsqlite3.dylib

If you're using the -ObjC linker flag required by some third-party libraries, add these as well: 如果您使用某些第三方库所需的-ObjC链接器标志,请同时添加以下标志:

• Accounts.framework •Accounts.framework

• Social.framework •社会框架

Also, see this quickstart guide from Parse (for detailed information) and check this answer 另外,请参阅Parse的此快速入门指南 (有关详细信息)并检查此答案

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. 特别是,请确保您已添加上述列表所需的所有lib.libraries ,好像您已经忘记了其中的一些。

I think There might be some problem in your SDK ie - 我认为您的SDK中可能存在一些问题,即-

Reason 1 - You might have imported .m file somewhere . 原因1-您可能在某处导入了.m文件。

Reason 2 - The dependencies & configuration are not correctly configured . 原因2-依存关系和配置未正确配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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