简体   繁体   English

您从哪里添加iphone框架

[英]Where do you add iphone frameworks from

I want to add the MessageUI Framework to my project. 我想将MessageUI框架添加到我的项目中。

The first time I did it, I selected 我第一次这样做,我选择了

 /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1sdk/System/Library/Frameworks/MessageUI.framework

After I did that my project would no longer build - lots of syntax errors, and wouldn't build even after I told Xcode to delete the framework - still had syntax errors, just not quite as many. 在我这样做之后,我的项目将不再构建-许多语法错误,即使我告诉Xcode删除框架后也不会构建-仍然有语法错误,只是没有那么多。

So I went back to a back up of the project I'd made just before doing the add - thank goodness I had one - and tried again. 因此,我返回了在进行添加之前所做的项目的备份(谢天谢地,我有一个项目),然后再次尝试。 This time I selected the MessageUI framework from 这次,我从中选择了MessageUI框架

 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneOS3.1sdk/System/Library/Frameworks

Now the project builds fine. 现在该项目构建良好。

I also noticed there was a MessageUI framework in the folder 我还注意到文件夹中有一个MessageUI框架

 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneOS3.0sdk/System/Library/Frameworks

Why would I choose one over the other? 为什么我要选择一个?

3.1 one is the latest development kit for iPhone OS 3.1 that has to be supported for a submission to the App Store. 3.1是iPhone OS 3.1的最新开发套件,必须提交到App Store才能支持。 Anything built using the 3.0 framework may possibly not (but more than likely will) be compatible with iPhone OS 3.1. 使用3.0框架构建的任何内容都可能(但可能会更多)与iPhone OS 3.1兼容。

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

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