简体   繁体   English

有没有办法使用Xcode 8 beta将应用程序安装到iPhone 4?

[英]Any way to install app to iPhone 4 with Xcode 8 beta?

When trying to run app on my iPhone 4, Xcode 8 beta shows me this message: 当我试图在我的iPhone 4上运行应用程序时,Xcode 8 beta会向我显示以下消息:

This iPhone 4 is running iOS 7.1.2 (11D257), which may not be supported by this version of Xcode.

My app must support iOS 7. I read many answers they say that app build with Xcode 8 beta still can run on iOS 7 devices. 我的应用程序必须支持iOS 7.我读了许多答案,他们说使用Xcode 8 beta构建的应用程序仍然可以在iOS 7设备上运行。 So is there a way to install app to iPhone 4 with Xcode 8 beta? 那么有没有办法使用Xcode 8 beta将应用程序安装到iPhone 4? Like building the app first, then use a command line to install .app file to the iPhone? 就像首先构建应用程序一样,然后使用命令行将.app文件安装到iPhone?

Actually, there is a way. 实际上,有一种方法。 You just need to copy DeviceSupport folder for iOS 7.1 from Xcode 7 to the new one. 您只需将iOS 7.1的DeviceSupport文件夹从Xcode 7复制到新的。 It's located in: 它位于:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/7.1

I've tried it and it works. 我试过了,它的确有效。

EDIT: If you don't have the 7.1 files anymore, you can find them here . 编辑:如果您不再拥有7.1文件,可以在此处找到它们。

If you do not need to debug but only build and put the app on device then you could also use product -> archive to create .ipa file with an adhoc version and then put in on iphone 4 using window -> devices. 如果您不需要调试但只需构建并将应用程序放在设备上,那么您也可以使用product - > archive创建带有adhoc版本的.ipa文件,然后使用window - > devices将其放入iphone 4。 This works on xcode 8 without any additional files. 这适用于xcode 8,没有任何其他文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM