So what you are saying …
No, what I’m saying is:
-
Using Xcode 12.5 to debug iOS 14.6 is expected to work.
-
And it actually works for me (as I mentioned above) and for a vast majority of iOS developers (if this problem affected all iOS developers then this thread would be many pages long!).
-
If it’s not working for you then there’s something specific about your environment that’s causing the problem. It’s hard to say what that is, which is why I asked folks to post bug reports.
-
Trying to resolve that problem by unsupported modifications of Xcode is likely to cause more problems that it solves in the long term.
Once you’ve filed your bug report you can then take steps to try to find the real cause of this issue. For example:
-
Restarting your device, to rule out lingering state on the device itself.
-
Re-installing Xcode, to rule out the possibility that Xcode itself is broken.
-
Trying with a new project created from one of the built-in templates, to rule out the possibility that there’s something about your project that’s triggering this.
-
Trying from a fresh user account on your Mac, created using System Preferences > Users & Groups, to rule out any lingering state in your home directory.
-
Trying from a different Mac, to rule out any lingering state on your Mac.
-
Or if you don’t have a different Mac, re-installing macOS itself.
This process is doubly helpful: It’ll help you get around the problem (in a supported fashion) and it’ll make good factoids for your bug report.
Let us know how you get along.
Oh, and let me explain why I’m so against unsupported techniques. Let’s say you do this and it works. Cool, you’ve found a expedient workaround! Now imagine it’s a few months down the track and you install Xcode 13 final. Do you remember to undo this workaround before doing that install? If you don’t then you’ve put the Xcode 13 installer into a very weird place, where it’s trying to update a modified copy of Xcode. Does that work? No one can say for sure but I can guarantee that Apple didn’t test it.
And if you continue applying expedient workarounds then your macOS and Xcode installations will steadily deviate from the well-trodden path, making it more likely that you’ll run into weird problems like this one.
In contrast, the suggestions I’ve posted above should help you get back on the right path, making it less likely you’ll have ongoing issues.
I have no way of investigating it.
That’s not true. Even if you can’t get Xcode working, which I don’t believe is true, you can still debug problems using the same techniques you’d use for debugging issues that you can’t reproduce locally:
-
Add debug logging to your app.
-
Build it using Xcode.
-
Export it as .ipa
.
-
Install that using the Finder.
-
Run it and capture the logs.
-
Analyse the logs.
-
Repeat if necessary.
This is a lot slower than the usual debug cycle — which is why I recommend that you try to resolve the issue using the various steps described above — but it will work.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"