I am using Xcode 13 on a Macbook Pro (Intel/2019) with macOS Big Sur 11.6
I am building and launching the app on a connecting iPhone X running iOS 15.0, I am also running a UI test suite based on XCUITest while I do that.
The app takes extremely long to launch (2+ minutes), then it sits on the splash screen for another 2-3 minutes. Meanwhile, Xcode shows the alert attached:
I have 2 questions:
- Is this a widespread Xcode 13 / iOS 15 issue?
- What does the message in the alert mean: "LLDB is likely reading from device memory to resolve symbols"? Is there anything I can do to reduce or avoid this wait?
2
Answers
Once your debug session is running, pause your app (or hit a breakpoint) and in the Debugger Console window, and do
image list
. This will list every binary / dylib / framework in the process, there will be as many as five hundred these days.After the filename, if you see a hex address, then lldb has had to read all of the libraries out of memory on device startup. Xcode expands a local copy of all your device libraries on the Mac so lldb can find them there, instead of reading them from memory.
If you look in
~/Libraries/Developer/Xcode
, there’s aiOS DeviceSupport
directory. You can remove it, re-launch Xcode and it will re-expand the libraries for your iOS etc devices as they’re plugged in.For those that are not familiar with the command line, go into your terminal and you can do this command.
This will recursively delete everything in the file tree in the ‘iOS DeviceSupport’ folder.
The steps are
The first time that you run the app will take a while as your computer re-obtains the information that you deleted, but subsequent runs of the app should work much faster.
That is what worked for me.