Xcode14.3.1 How to debug iOS17 on a real machine (without iOS17 DeviceSupport)

Since iOS17 requires Xcode15 to debug, and Xcode15 is currently in beta and the official version has not yet been released, there are generally two ways to debug iOS17 on a real machine:

method one:

One is to download the new Xcode15 beta version (but Xcode packages are generally relatively large, several G, or even 10 G, the download speed is too slow, and the installation will also occupy a large amount of memory, which is not practical for computers with small memory)

Method Two:

The second is to put the Device Support package of iOS17 into Xcode14 for real-machine debugging. However, the Device Support package of iOS17 needs to be downloaded online. To obtain it, first download Xcode17 and obtain it from its package before putting it in Xcode14.

Method three:

Another new way is provided below :

Use the following command in the terminal:

defaults write com.apple.dt.Xcode DVTEnableCoreDevice enabled

After execution, restart Xcode to debug.

After debugging, remember to restore if you no longer need to use it. The restore command is as follows:

defaults delete com.apple.dt.Xcode DVTEnableCoreDevice

Guess you like

Origin blog.csdn.net/qq_37269542/article/details/132900781