xcode AppCode 目标设备系列无效(iPad iOS 8.1)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26860353/
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
AppCode targeted device families not valid (iPad iOS 8.1)
提问by Morten Holmgaard
I keep getting this error in AppCode, but usually it runs just fine with Xcode:
我在 AppCode 中不断收到此错误,但通常它与 Xcode 一起运行得很好:
Error:xcodebuild: error: The run destination iPad Mini is not valid for Running the scheme 'Appname'.
Error:iPad Mini doesn't match any of Appname.app's targeted device families. You can expand Appname.app's targeted device families to support iPad Mini.
Error:Build failed with 2 errors and 0 warnings in 7 sec
Note:Building for 2 architectures.
Double click to set 'ONLY_ACTIVE_ARCH=YES' to speed up compilation.
错误:xcodebuild:错误:运行目标 iPad Mini 对运行方案“Appname”无效。
错误:iPad Mini 与 Appname.app 的任何目标设备系列都不匹配。您可以扩展 Appname.app 的目标设备系列以支持 iPad Mini。
错误:构建失败,在 7 秒内出现 2 个错误和 0 个警告
注意:为 2 个架构构建。
双击设置'ONLY_ACTIVE_ARCH=YES'以加快编译速度。
Target sdk is 7.1 in AppCode 3.0.6 (Xcode 6.1)
TARGETED_DEVICE_FAMILY = 2 (iPad)
VALID_ARCHS = armv7 armv7s i386 arm64
Architectures = Standard architectures (armv7, arm64)
AppCode 3.0.6 (Xcode 6.1) TARGETED_DEVICE_FAMILY
= 2 (iPad)
VALID_ARCHS = armv7 armv7s i386 arm64
Architectures = Standard architectures (armv7, arm64) 中的目标 sdk 为 7.1
I have the problem with both an iPad Mini with iOS 8.1 and a iPad 4 with iOS 7.1.
我对装有 iOS 8.1 的 iPad Mini 和装有 iOS 7.1 的 iPad 4 都有问题。
Any idea why it will not work from AppCode?
知道为什么它不能从 AppCode 工作吗?
采纳答案by brainray
I had that as well: Xcode builds fine, Appcode does not. There is no evident reason for that - the target etc looks fine. It seems to be a bug in AppCode 3.0.6 that seems to be fixed in the 3.1 EAP version. With 3.1 the project builds fine here.
我也有:Xcode 构建良好,Appcode 没有。没有明显的原因 - 目标等看起来不错。这似乎是 AppCode 3.0.6 中的一个错误,似乎在 3.1 EAP 版本中已修复。使用 3.1,项目在这里构建得很好。
回答by Hodson
According to JetBrains, it's a problem with the xcodebuild
tool in Xcode 6 rather than being an issue with AppCode. Hopefully something Apple will fix soon!
根据 JetBrains 的说法,这是xcodebuild
Xcode 6 中的工具的问题,而不是 AppCode 的问题。希望苹果能尽快解决问题!
回答by Rudolf J
Just had this problem as well in Appcode. If you set "Targeted Device Family" in Appcode's target to "1,2" (iPhone and iPad), it worked here.
在 Appcode 中也有这个问题。如果您在 Appcode 的目标中将“目标设备系列”设置为“1,2”(iPhone 和 iPad),它就可以在这里工作。
回答by Sunny Shingala
You need to check Development info like development target, Device and match with the simulator device.
您需要检查开发信息,如开发目标、设备并与模拟器设备匹配。