此 iPhone 6 运行的是 iOS 12.4.1 (16G102),此版本的 Xcode 可能不支持
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/58075427/
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
This iPhone 6 is running iOS 12.4.1 (16G102), which may not be supported by this version of Xcode
提问by Mayank Bhaisora
Getting the error
得到错误
This iPhone 6 is running iOS 12.4.1 (16G102), which may not be supported by this version of Xcode.
此 iPhone 6 运行的是 iOS 12.4.1 (16G102),此版本的 Xcode 可能不支持。
while trying to run the app on iPhone after updating the iPhone.
在更新 iPhone 后尝试在 iPhone 上运行该应用程序时。
I know that I can update the Xcode and System both and the issue will be resolved but I want to be able to install the apps on iPhone without updating the Xcode and MacOS.
我知道我可以同时更新 Xcode 和系统,问题将得到解决,但我希望能够在不更新 Xcode 和 MacOS 的情况下在 iPhone 上安装应用程序。
Please help.
请帮忙。
Tried nothing yet.
还没试过。
Can not share the code. No code to show here.
不能分享代码。没有代码可在此处显示。
回答by Akash Sharma
Issue:This iPhone 6 is running iOS 12.4.1 (16G102), which may not be supported by this version of Xcode.
问题:此 iPhone 6 运行的是 iOS 12.4.1 (16G102),此版本的 Xcode 可能不支持。
Resolution:
解析度:
a). If the issue is not replicated on your another device with latest Xcode version
一种)。如果问题未在您的另一台装有最新 Xcode 版本的设备上重现
We need to add the support files in the Xcode. The files can be found on a system with latest Xcode on the path -
我们需要在 Xcode 中添加支持文件。可以在路径上具有最新 Xcode 的系统上找到这些文件 -
- Go to Applications.
- Right click on Xcode, click on "Show Package Contents".
- Go to Contents -> Developer -> Platforms -> iPhoneOS.platforms -> DeviceSupport
- Copy support files for the iPhone version.
- 转到应用程序。
- 右键单击 Xcode,单击“显示包内容”。
- 转到目录 -> 开发人员 -> 平台 -> iPhoneOS.platforms -> DeviceSupport
- 复制 iPhone 版本的支持文件。
Paste the file into the system in which you are facing the issue in same path as of above. Close the Xcode and run the code again to refresh the files.
将文件粘贴到您遇到问题的系统中,路径与上述相同。关闭 Xcode 并再次运行代码以刷新文件。
b). If you don't have a system with latest Xcode.
b)。如果您的系统没有最新的 Xcode。
Download the file "iOS 12.4 Developer Disk Image" from the https://github.com/xushuduo/Xcode-iOS-Developer-Disk-Image/releasesand unzip the file. Rename the folder to "12.4.1 (16G102)" and paste the file into the system in which you are facing the issue in below path:
从https://github.com/xushuduo/Xcode-iOS-Developer-Disk-Image/releases下载“iOS 12.4 Developer Disk Image”文件并解压。将文件夹重命名为“12.4.1 (16G102)”并将文件粘贴到您在以下路径中遇到问题的系统中:
- Go to Applications.
- Right click on Xcode, click on "Show Package Contents".
- Go to Contents -> Developer -> Platforms -> iPhoneOS.platforms -> DeviceSupport
- 转到应用程序。
- 右键单击 Xcode,单击“显示包内容”。
- 转到目录 -> 开发人员 -> 平台 -> iPhoneOS.platforms -> DeviceSupport
Close the Xcode and run the code again to refresh the files.
关闭 Xcode 并再次运行代码以刷新文件。
回答by Rahul Phate
You need to add device support files from this link
Follow these steps to add device support files
按照以下步骤添加设备支持文件
Go into Application and right click on Xcode.app then click on show package contents
Go into this path Contents/Developer/Platforms/iPhoneOS.platform/DeviceS??upport/
Get device support file 12.4 from attached link. Unzip it and rename to 12.4.1(16G102) and paste renamed file to above path under device support.
Restart Xcode and then run application on device.
进入应用程序并右键单击 Xcode.app 然后单击显示包内容
进入这个路径 Contents/Developer/Platforms/iPhoneOS.platform/DeviceS??upport/
从附加链接获取设备支持文件 12.4。解压并重命名为 12.4.1(16G102) 并将重命名的文件粘贴到设备支持下的上述路径。
重新启动 Xcode,然后在设备上运行应用程序。
Happy Coding..
快乐编码..