简体   繁体   English

v4.0的Base-SDK意味着它不会安装在4.1或4.2设备上?

[英]Base-SDK of v4.0 means it won't install on 4.1 or 4.2 devices?

I was using xCode v3.2.3 and SDK 4.0 to write iPhone apps that worked on my iOS v3.1.3 device... as well as v4.0. 我正在使用xCode v3.2.3和SDK 4.0编写可在我的iOS v3.1.3设备上运行的iPhone应用程序......以及v4.0。 (Deployment target set to 3.1.3. Base SDK set to v4.0) (部署目标设置为3.1.3。基本SDK设置为v4.0)

Does that mean everyone that uses my app will need a minimum of iOS 3.1.3 and a maximum of v4.0? 这是否意味着使用我的应用程序的每个人都需要至少iOS 3.1.3和最高v4.0? Or will they also run on v4.1 and v4.2? 还是它们还会在v4.1和v4.2上运行?

Second part of my question: 我的问题的第二部分:

I now upgrade my iOS v3.1.3 to v4.2.1. 我现在将我的iOS v3.1.3升级到v4.2.1。

Xcode now says my v4.2.1 device is now no longer provisioned. Xcode现在说我的v4.2.1设备现在不再配置了。

Doesn't a Base-SDK setting of v4.0 mean apps will also run (or at least install) on v4.x? v4.0的Base-SDK设置是否意味着应用程序也将在v4.x上运行(或至少安装)?

No. Base SDK just means that your app will be built against the iOS 4.0 libraries. 不,Base SDK只是意味着您的应用程序将针对iOS 4.0库构建。 Any 4.x device will be able to run a release build of your app, but for debugging, Base SDK and the iOS version on your device must match. 任何4.x设备都可以运行您应用的发布版本,但要进行调试,您设备上的Base SDK和iOS版本必须匹配。 In the end, you need to build your app with the newest available Base SDK anyway, because Apple won't accept apps built for older SDKs into the App Store. 最后,无论如何,您都需要使用可用的最新Base SDK来构建您的应用程序,因为Apple不会在App Store中接受为较早的SDK构建的应用程序。

No, they will. 不,他们会的。 iOS has Backward compatibility. iOS具有向后兼容性。

I agree with Irene. 我同意艾琳的观点。 I found the solution: 我找到了解决方案:

  • The hint came from here: Can't make Xcode 4 run a barely empty project using SDK 4.2 (runs fine in 4.3) 提示来自这里: 不能让Xcode 4使用SDK 4.2运行一个几乎空的项目(在4.3中运行正常)

  • And this is how i resolve: my xcode 4.0 my SDK 4.3 and my Ipod touch device is 4.2.1 - You see it is backward compatible. 这就是我的解决方法:我的xcode 4.0我的SDK 4.3和我的Ipod触摸设备是4.2.1 - 你看它是向后兼容的。 There are 2 things you must do in order to resolve. 要解决问题,您必须做两件事。 1) In your xcode 4.0, You click on your project name under Target to ensure you change the target not the Project setting. 1)在xcode 4.0中,单击Target下的项目名称以确保更改目标而不是Project设置。 Find the row >IOS deployment target to the version of your device in my case it was back to 4.2.1 ipodtouch so i set 4.2 (do not worry about basesdk it is for your application not the same as your application's target. 4.3 basesdk requires you provide codesign so you have to select code sign if do not have one apply for one looking up in Apple website or google) 在我的情况下,找到该设备版本的“ IOS部署目标”行,因为它回到了4.2.1 ipodtouch,所以我设置了4.2(不用担心basesdk是因为您的应用程序与应用程序的目标不同。4.3 basesdk需要你提供代码签名,所以你必须选择代码签名,如果没有申请一个申请查找在Apple网站或谷歌)

  • After setting your target to compatible version with your device you now can go to "set the active scheme" that is where you select which device to install and run on including the simulator. 将目标设置为与设备兼容的版本后,您现在可以转到“设置活动方案”,即选择要安装和运行的设备(包括模拟器)。 So you will find you device there select it and you are good to go. 所以你会发现你的设备选择了它,你很高兴。

And if you still can not get it going. 如果您仍然无法解决问题。 You can try to select your project under Project this time adn set the ios deployment target to your version mine was 4.2 ipodtouch ios. 这次您可以尝试在“项目”下选择您的项目,并将ios部署目标设置为您的版本为4.2 ipodtouch ios。 Then go select "set the active scheme" that is where you select which device to install and run on including the simulator. 然后选择“设置活动方案”,您可以在其中选择要安装和运行的设备,包括模拟器。 So you will find you device there select it and you are good to go. 所以你会发现你的设备选择了它,你很高兴。

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

相关问题 Facebook App邀请iOS SDK v4.0配置和状态 - Facebook App Invites iOS SDK v4.0 configuration and states 我是否需要卸载当前版本的iPhone SDK(v3.2)才能安装最新的GM(v4.0)? - Do i need to uninstall my current version of the iPhone SDK (v3.2) in order to install the latest GM (v4.0)? Singleton类适用于4.0 iOS和更早版本,但不适用于4.1和4.2 SDK - Singleton class working on 4.0 iOS and earlier version but not on 4.1 and 4.2 SDK 5.0基础SDK应用程序不会安装在带有5.1操作系统的iPad上 - 5.0 Base SDK app won't install on iPad with 5.1 OS 升级到SDK 4.1,并且不再可以在装有OS 4.0的设备上安装 - Upgraded to SDK 4.1 and can no longer install on device with OS 4.0 基本的SDK 4.0丢失了,但是我刚刚安装了4.1,如何测试4.0? - Base SDK 4.0 missing but i just installed the 4.1, how can i test for 4.0? 无法将旧的iOS“ iOS 4.0-4.1设备调试支持”安装到Xcode 4.2 - Cannot install old iOS “iOS 4.0 - 4.1 Device Debugging Support” to Xcode 4.2 “基本SDK缺失”,如何在sdk 4.2中将最低要求的操作系统设置为ex 4.0? - “Base SDK Missing”, how do i set the minimum required OS to ex 4.0 in sdk 4.2? iOS App无法安装在较旧的设备上 - iOS App won't install on older devices 基于SDK 3.0到SDK 4.0 - Base SDK 3.0 to SDK 4.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM