即使我安装了 4.1.2,如何使用 3.2 进行编译
我在使用新的 iPad 4.1 时遇到问题。我仍然想针对 3.2 进行编译。我是否在项目设置中设置基本版本?如果是这样,为什么它被标记为缺失?我如何获取它以及将它放在哪里?
抱歉,有很多问题,但它们改变了绘图的工作方式,我现在不想改变我的整个应用程序。我的应用程序针对 3.2 编译时可以在 4.1 iPad 上正常运行,但针对 4.2 编译时则不行。这是因为当您针对 iOS 版本进行编译时,它会从该 iOS 版本导入框架吗?
I am having trouble with the new 4.1 for iPad. I want to still compile against 3.2. Do I set the base version in the project settings? If so, why is it marked as missing? How do I get it and where do I put it?
Sorry a lot of questions there but they have changed the way drawing works and I don't want to change my whole app right now. My app when compiled against 3.2 works on 4.1 iPads fine, but not when compiled against 4.2. Is this because when you compile against an iOS version it imports the frameworks from that iOS version?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,不幸的是,苹果正在尽一切努力“取消销售”任何以前版本的 iOS。
使用最新版本更新 XCode 后,通常您会看到“Base SDK 缺失”,您需要更新项目配置才能再次编译。双击项目树中的项目项(或右键单击它并选择获取信息),然后在属性窗口中选择名为“构建”的选项卡(确保在配置选择框中选择了“所有配置”),然后找到“Base SDK”属性 - 这是您要定位的 iOS 版本(苹果通常确保只能在此处选择最新的 iOS 版本),然后找到名为“iOS 部署目标”的属性 - 在这里您选择您将支持的最早的 iOS 版本 - 根据您的情况选择 3.2。
就这样了 :) 只需注意几点:
当您对项目属性进行这些更改时,您可能需要关闭 XCode 并再次运行它并再次打开项目 - 有时它在您更改项目属性后立即起作用
如果您支持 3.2,请确保如果您将 4.x 中的框架添加到您的项目中,您可以软链接它们,这样它就不会在 3.2 下崩溃 bcz 设备上不存在框架
Marin上不存在框架
yeah unfortunately Apple are doing everything to "unmarket" any previous versions of iOS.
After you update your XCode with the latest version usually you see "Base SDK missing" and you need to update your project configuration to get it compiling again. Double click the project item in your project tree (or right click it and choose Get info) and in the properties windows choose the tab called "Build" (make sure you have "All configurations" selected in the Configuration select box), then find the "Base SDK" property - this is the version of iOS which you are targeting (apple usually make sure to be able to select only the latest iOS version here), then find the property called "iOS deployment target" - here you select the earliest version of iOS you will support - choose here 3.2 in your case.
There you go :) Just couple of notes:
when you make those changes to the project properties, you might need to close XCode and run it again and open the project again - sometimes it does work right after you change your project properties
if you support 3.2 make sure that if you add frameworks from 4.x to your project you soft link them, so it doesn't crash under 3.2 bcz the frameworks don't exist on the device
Marin