Xcode 14 beta - iOS 16 Beta (14A5228q) - build issues

I am having issues when building any app with my iPhone 11 Pro or iPad Pro as the destination. A new instance of a template app with Hello World takes moments to build and install on the phone, but then the app freezes on a black screen. Console reports the following.

warning: libobjc.A.dylib is being read from process memory. This indicates that LLDB could not find the on-disk shared cache for this device. This will likely reduce debugging performance.

Interestingly, if I stop the build in Xcode, which quits the app on the device, then manually launch the app on the device, everything works as expected but no logging of course.

Reverting back to Xcode 13.4, the same issue occurs suggesting its an iOS 16 beta issue?

Any thoughts? Thanks.

Answered by sydneytdc in 717068022

Further testing overnight suggests this is an issue with the debugger. If I allow Xcode to build and run an app to one of my devices, it will launch and then freeze on a black screen. After a few minutes the app progresses to its main ContentView and the console appears to then function as normal.

I am quite new at this so am a little lost for where to go to look for solutions. Cheers.

Accepted Answer

Further testing overnight suggests this is an issue with the debugger. If I allow Xcode to build and run an app to one of my devices, it will launch and then freeze on a black screen. After a few minutes the app progresses to its main ContentView and the console appears to then function as normal.

I am quite new at this so am a little lost for where to go to look for solutions. Cheers.

I'm also facing the same issue in the same Xcode 14.0 beta (14A5228q)

Thanks Vyacheslav, sorry to hear you are also having this issue, but its good to know I am not alone. I have logged a Feedback case and also a Technical Support request. Shall post here if I manage to resolve it.

As a follow-up. The Apple Devs via the Feedback Assistant program have resolved this for me by getting me to run the following command in the terminal which deletes my Device details for debugging, to force Xcode to recreate them from scratch.

 rm -r ~/Library/Developer/Xcode/iOS\ DeviceSupport

For me that didn't work but was resolved once I also removed the DeviceSupport folder from the Xcode package contents.

The path:

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

You should only remove this folder if the other fix was not enough for you though.

I was using the iOS 16 beta program and was encountering the same problem. I thought this beta might be suspicious, so I deleted the beta profile and re-installed iOS 16 from Software Update. This resolved the issue.

I'm also facing the same issue in the same Xcode 14.0 beta(14A309)

I had the same issue with Xcode 14.2. After I did this

rm -r ~/Library/Developer/Xcode/iOS\ DeviceSupport

and remove everything from folder

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

Everything starts work normally.

Xcode 14 beta - iOS 16 Beta (14A5228q) - build issues
 
 
Q