Reputation: 333
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:
Upvotes: 20
Views: 16744
Reputation: 15395
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 ~/Library/Developer/Xcode
, there's a iOS 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.
Upvotes: 18
Reputation: 736
For those that are not familiar with the command line, go into your terminal and you can do this command.
rm -r ~/Library/Developer/Xcode/iOS\ DeviceSupport
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.
Upvotes: 38