对于运行 3.1.3 和 XCode 4 的 iPod Touch,“运行目标 iOS 设备无效”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7501484/
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
"Run destination iOS Device is not valid" for iPod Touch running 3.1.3 with XCode 4
提问by oliland
I'm trying to test my application against a friend's old iPod touch running iOS 3.1.3.
我正在尝试针对朋友的运行 iOS 3.1.3 的旧 iPod touch 测试我的应用程序。
I have XCode 4 and receive this error message when trying to run the application:
我有 XCode 4 并在尝试运行应用程序时收到此错误消息:
The run destination iOS Device is not valid for Running the scheme 'MyApp'.
The scheme 'MyApp' contains no buildables that can be built for the architectures supported by the run destination iOS Device. Make sure your targets build for architectures compatible with the run destination iOS Device.
运行目标 iOS 设备对于运行方案“MyApp”无效。
方案“MyApp”不包含可以为运行目标 iOS 设备支持的架构构建的可构建对象。确保您的目标构建为与运行目标 iOS 设备兼容的架构。
I have set the deployment target to iOS 3.1.3. What else do I need to do in XCode 4 to build and test the app on this old iPod touch?
我已将部署目标设置为 iOS 3.1.3。我还需要在 XCode 4 中做什么才能在这个旧的 iPod touch 上构建和测试应用程序?
I am using the "standard" build architecture, not optimised.
我正在使用“标准”构建架构,而不是优化。
回答by oliland
I solved this by Autocreating schemes (Scheme > Manage schemes > Autocreate schemes) and then selecting the iPod Touch instead of "iOS Device" which had appeared in the schemes. D'oh!
我通过自动创建方案(方案 > 管理方案 > 自动创建方案)然后选择 iPod Touch 而不是方案中出现的“iOS 设备”解决了这个问题。哦!
回答by zinnuree
In my Target->General, I selected Device "iPad" and was trying to run in an iPhone simulator. I just changed the Device option to universal (which was alright for me) and then run again. It solved my problem.
在我的 Target->General 中,我选择了设备“iPad”并试图在 iPhone 模拟器中运行。我只是将设备选项更改为通用(这对我来说没问题),然后再次运行。它解决了我的问题。