You can use this to compile the code only for real devices. You need to put the if statement around the whole ObjectCapture code.
#if arch(arm64) || arch(x86_64)
// Code that should not be compiled for simulator devices
#endif
The issue persists in Xcode Version 15.0 beta 6 (15A5219j) and iOS 17 beta 5. The whole Object Capture experience got worse. Everything feels very laggy.
I could get it to work on a real device by running the extension. Then Xcode says: Waiting to attach. Then bring up the add new widget UI on your device and search for your widget there. Stop when you see your previews and select in Xcode -> Debug -> Attach to process -> Your Process should be in Likely Targets. Click that and you should be able to debug.
You can use this to compile the code only for real devices. You need to put the if statement around the whole ObjectCapture code.
#if arch(arm64) || arch(x86_64)
// Code that should not be compiled for simulator devices
#endif
The issue persists in Xcode Version 15.0 beta 6 (15A5219j) and iOS 17 beta 5. The whole Object Capture experience got worse. Everything feels very laggy.
I could get it to work on a real device by running the extension. Then Xcode says: Waiting to attach. Then bring up the add new widget UI on your device and search for your widget there. Stop when you see your previews and select in Xcode -> Debug -> Attach to process -> Your Process should be in Likely Targets. Click that and you should be able to debug.