I have a strange warning in Xcode associated with ARKit. It isn't a big issue because there is a work around, but I am curious why this is happening and how I can avoid it in the future.
I opened up an old AR project in Xcode, and the editor gave a strange error message on the "import ARKit" line saying
Cannot load underlying module for 'ARKit'
Despite the error message, the code continues to build and run.
I've quit & restarted Xcode, rebooted the Mac, and even deleted and and redownloaded Xcode, but the error/warning was still there.
Upon some additional testing, I discovered that I only get this message when targeting "iOS 16.2" but not when targeting 16.0, 16.1, 16.3, or 16.4. (I did not try pre-iOS 16)
Any idea why my Xcode no longer likes ARKit on iOS 16.2 on my Mac?
Development platform:
- Xcode: Version 14.3.1 (14E300c)
- macOS: 13.4 (22F66)
- Mac: Mac Studio 2022
- iOS on iPhone 14 Pro Max: 16.5 (20F66)
Screenshot: