Tuesday 24 October 2017

iOS 11/12 Debugging with Xcode 8/9 without upgrading to Xcode 9/10

Note: Download  iOS 12 support file from here and follow the same steps to achieve iOS 12 Debugging on Xcode 9.

Hello Everyone, as we all know new version of iOS (iOS 11) and Xcode (Xcode 9) launched by apple. To run on iOS 11, we need to upgrade our code with Xcode 9, but many of us do not want to upgrade our code to new Xcode 9 due to reasons like:

# Working on swift version below 3.0 and Xcode 9 will work only above 3.0
# Due to some compile time errors while running on Xcode 9.
# Need more time to fix build issue and conversion issue to run our code on Xcode 9.

Don't worry, there is another way to debug iOS 11 without upgrading to Xcode 9. You can use older Xcode 8 to debug iOS 11 device. You just need to follow the below steps:

Step 1: Download Xcode 9 (https://developer.apple.com/download/) & Install it. Do not replace the Xcode 8 while install, chose keep both rather than replacing the previous one.


Step 2: Find the installed Xcode 9.app file in application folder, and right click to icon and click Show Package Content.






Step 3: Go to Contents > Developer > Platforms > iPhoneOS.platform > DeviceSupport
or use the finder goto folder with path /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
Here you will see iOS 11 Support file folder, copy it.







 Or you can download the support files from here iOS 11 Device support file

Step 4: Now, In Application folder, Right click on  Xcode 8 and click on show content packages.



Step 5: Go to Contents > Developer > Platforms > iPhoneOS.platform > DeviceSupport
or use the finder goto folder with path /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
Paste the Copied iOS 11 Support files folder here.




Once you paste it , confirm you have the iOS 11 files in device support of XCode 8.






Step 6: Restart the Xcode 8 and quite the Xcode 9,  now you can run your code on iOS 11 with Xcode 8.