iOS 7 不再使用 XCode 4.6.3

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19139215/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 03:59:15  来源:igfitidea点击:

iOS 7 no longer working with XCode 4.6.3

iosxcodeios7xcode4.6

提问by PaulG

I have XCode version 4.6.3 and have just recently upgraded the OS on my iPhone 4 to iOS 7. When I try to run my code on my device I get the following error:

我有 XCode 版本 4.6.3,最近刚刚将我的 iPhone 4 上的操作系统升级到 iOS 7。当我尝试在我的设备上运行我的代码时,我收到以下错误:

Xcode cannot run using the selected device.

No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.

Xcode 无法使用所选设备运行。

没有配备兼容 iOS 版本的已配置 iOS 设备可用。将 iOS 设备与最新版本的 iOS 连接以运行您的应用程序或选择 iOS 模拟器作为目标。

In OrganizerI'm seeing the following message:

Organizer我看到以下消息:

The version of iOS on "My Phone's Name" is not supported by this installation of the iOS SDK. Please restore the device to a version of the OS listed below, or update to the latest version of the iOS SDK; which is available here.

本次安装的 iOS SDK 不支持“我的手机的名字”上的 iOS 版本。请将设备恢复到下面列出的操作系统版本,或更新到最新版本的iOS SDK;这是可用的here。

The here link just prompts me to login to Member Center and doesn't drop me off anywhere about the latest SDK.

这里的链接只是提示我登录会员中心,并没有让我了解最新的 SDK。

My deployment target is iOS 6.1, I don't want to raise that to 7.0 as the majority of our users are on pre iOS 7. I am running OS X version 10.8.3, can I upgrade my SDK? Do I have to? How can I make it so my SDK is compatible with iOS 7 and pre iOS 7 devices?

我的部署目标是 iOS 6.1,我不想将其提高到 7.0,因为我们的大多数用户都使用 iOS 7 之前的版本。我运行的是 OS X 版本 10.8.3,我可以升级我的 SDK 吗?我一定要吗?如何使我的 SDK 与 iOS 7 和 iOS 7 之前的设备兼容?

回答by JuJoDi

Developing with iOS7 requires that you upgrade to Xcode 5, which you can find free in the Mac App Store.

使用 iOS7 进行开发需要您升级到 Xcode 5,您可以在 Mac App Store 中免费找到它。

You'll still be able to keep your deployment target below 7.0 with Xcode 5.

您仍然可以使用 Xcode 5 将部署目标保持在 7.0 以下。

If you don't have a dev iPhone with iOS 6.x you can go into Xcode > Preferences > Downloads to install the iOS6 simulator, command line tools, and any additional documentation.

如果您没有 iOS 6.x 的开发 iPhone,您可以进入 Xcode > Preferences > Downloads 以安装 iOS6 模拟器、命令行工具和任何其他文档。

Update 1

更新 1

If you update your phone to iOS 7.1, you will also be required to update your version of Xcode to 5.1

如果您将手机更新至 iOS 7.1,则还需要将您的 Xcode 版本更新至 5.1

回答by Carl Prehn

My iPad mini running iOS 7.04 would occasionally stop working with Xcode 4.6.3 as well. I found that starting up my app in Xcode 5 then closing down and re-opening in Xcode 4 would consistently fix this. I am not sure exactly why that works, I can only speculate that it resets some flags somewhere. But this does the trick.

我的 iPad mini 运行 iOS 7.04 有时也会停止使用 Xcode 4.6.3。我发现在 Xcode 5 中启动我的应用程序然后在 Xcode 4 中关闭并重新打开可以始终解决这个问题。我不确定为什么会这样,我只能推测它会在某处重置一些标志。但这确实有效。

回答by Utkarsh Goel

Its preferable to use Xcode 5 as its an update by apple, but compiling with xcode 5 make UI Changes to the application. So, for that case if you dont want to change, I have the solution following solution to run your app with xcode 4.6.3 on iphone 4 with ios 7 update.

最好使用 Xcode 5 作为 Apple 的更新,但使用 xcode 5 编译会使应用程序的 UI 发生变化。因此,对于这种情况,如果您不想更改,我有以下解决方案可以在 iphone 4 上使用 xcode 4.6.3 运行您的应用程序,并使用 ios 7 更新。

I was also facing this same problem but able to get it resolved by quit Xcode and iphone simulator once and then restart my xcode 4.6.3 and then connecting my ios device, made this problem resolved and now able to run my application on iphone 4 with ios 7 via xcode 4.6.3.

我也面临同样的问题,但能够通过退出 Xcode 和 iphone 模拟器一次,然后重新启动我的 xcode 4.6.3 然后连接我的 ios 设备来解决它,解决了这个问题,现在可以在 iphone 4 上运行我的应用程序ios 7 通过 xcode 4.6.3。