Solve the problem that the lower version of Xcode does not support the real device debugging of the higher version of iOS

Xcode development encountered the following problems when debugging on the real machine

 

用Xcode8想真机编译iOS11,弹出提示框This iPhone ... is running iOS 11.1.2 (11D257), which may not be supported by this version of Xcode...

The main reason is that I upgraded the iOS SDK to version 10.1 before debugging, and my Xcode is version 8.0, which only supports the SDK up to 8.0.

In fact, every time the iOS SDK version is upgraded, the same problem will be encountered. I have found it on the Internet before. In addition to reinstalling Xcode, I just download the new Xcode and copy the SDK inside to the old Xcode.

Since I need to quickly test my program, coupled with the slow network transmission speed, I am not allowed to download a new Xcode.

And the download package is very large, it is very troublesome, so other solutions.

Solution:

Here I only use my development environment as a reference, and the specific modification should also refer to my personal development environment. There are three basic steps

1. Download the IOS image resource package and decompress it. URL: https://download.csdn.net/download/u013007305/10305126

If you don't have points, please join the group!

 
 

2. Modify

Open path: /Developer/Platforms/iPhoneOS.platform/DeviceSupport

To copy the currently downloaded file to this directory, permissions are required, as shown in the figure:

3. Modify the version number in the SDKSettings.plist file

Open path: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/IphoneOS.sdk /SDKSettings.plist

Just add the corresponding version information;

As shown in the picture:

Welcome to leave a message below to discuss, or join the QQ group 769397359 to communicate!

Guess you like

Origin blog.csdn.net/u013007305/article/details/79671152