AppCode targeted device families not valid (iPad iOS 8.1)

落爺英雄遲暮 提交于 2019-12-21 13:00:11

问题


I keep getting this error in AppCode, but usually it runs just fine with 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.

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)

I have the problem with both an iPad Mini with iOS 8.1 and a iPad 4 with iOS 7.1.

Any idea why it will not work from AppCode?


回答1:


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.




回答2:


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!

https://youtrack.jetbrains.com/issue/OC-11204




回答3:


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.




回答4:


You need to check Development info like development target, Device and match with the simulator device.




回答5:


Go To Build Settings -> in search bar, search "targeted"

change in Universal



来源:https://stackoverflow.com/questions/26860353/appcode-targeted-device-families-not-valid-ipad-ios-8-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!