如何解决“Apple 目前不接受使用此版本的 SDK 构建的应用程序。”分发 iOS SDK 4.2 应用程序时出错
这与 stackoverflow 上的其他几个问题非常相似,但它们似乎都是去年的问题,并且涉及较低的版本号。
我有:
- xcode 版本 3.2.5
- 使用 Base SDK = 最新 iOS 的发行版本(当前设置为 iOS 4.2),iOS 部署目标 = iOS 3.2
我尝试了以下操作,但运气不佳:
- 部署到设备(不是模拟器)
- 将 iOS 部署目标设置为 3.0、3.2、4.0、4.1 和 4.2
- 清理了我的 xcode 缓存
- 通过应用程序加载器和管理器部署
- 进行了干净的构建
- 重新安装了 xcode <-- 原来这就是问题所在 -需要检查它是否是最终版本(即 xcode_3.2.5_and_ios_sdk_4.2_final.dmg)而不是 beta 版本
- 尝试查找 SDK 的版本 < 4.2 可以安装,但苹果似乎从他们的开发者网站上删除了所有旧版本,
我确信iOS 4.2 现在应该已经不再是测试版了,所以我认为这也不是问题。 还有其他想法吗?有什么方法可以获取更多有关苹果想要的 SDK 版本的信息吗?
确实非常令人沮丧!
This is very similar to a couple of other questions on stackoverflow, but they all seem to be from last year and referring to lower version numbers.
I have:
- xcode version 3.2.5
- A distribution build with Base SDK = Latest iOS (currently set to iOS 4.2), iOS Deployment Target = iOS 3.2
I've tried the following without much luck:
- Deployed to a device (not the simulator)
- Setting the iOS Deployment target to 3.0, 3.2, 4.0, 4.1 and 4.2
- Cleaned my xcode cache
- Deployed through Application Loader and Organizer
- Did a clean build
- Reinstalled xcode <-- turns out this was the problem - need to check that it's the final version (ie, xcode_3.2.5_and_ios_sdk_4.2_final.dmg) and not the beta version
- Tried finding a version of the SDK < 4.2 to install, but apple seems to remove all old versions from their developer site
I'm sure iOS 4.2 should be out of beta now, so I don't think this is the issue either.
Any other ideas? Is there any way of getting more information about the versions of the SDK that apple want?
Very frustrating indeed!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我昨天遇到了这个问题,通过从开发者中心重新下载XCode并重新安装解决了它。由于某种原因,我磁盘上的 dmg 文件是 11 月 19 日的(不,这不是测试版),而 SDK 在 iOS 开发中心的发布日期是 22 日。检查您的本地副本是否在此之前下载。重新安装后它就自动工作了。我针对 SDK 4.2 构建了二进制文件,并将部署目标设置为 3.1(如果有帮助的话)。
我目前不确定,苹果是否在某个时候重新发布了 SDK 4.2 和 XCode 3.2.5 而不更改版本?无论如何,希望有帮助,它对我有用。
I had this problem yesterday and solved it by redownloading XCode from the developer center and reinstalling it. For some reason, the dmg file on my disk was from 19th of November (no, it was not a beta), and the release date of the SDK is 22nd on the iOS Dev center. Check if your local copy was downloaded before that. It just automagically worked after a reinstall. I built the binaries against SDK 4.2 and set the deployment target to 3.1 if that helps.
I am not sure at the moment, did apple rerelease SDK 4.2 with XCode 3.2.5 at some point without changing the version? Anyway, hope that helps, it worked for me.