I am making an attempt to run my iOS app on Mac through the “Designed for iPad” vacation spot. It crashes on launch with this:
Didn't search for symbolic reference at 0x1006ac9bd - offset 162835 - image symbolic _____y_____GSg 11ActivityKit0A0C 19MyAppPlayerAttributesV in /personal/var/folders/4d/wbdrh95d1pz_f5y659dt22gr0000gn/X/6723F443-F2B3-5BE2-99A0-82DA9EF5CB24/d/Wrapper/MyApp.app/MyApphere
It is because ActivityKit is not obtainable on Mac. Nonetheless, even when I attempt to selectively exclude importing ActivityKit I nonetheless get the identical crash.
//#if os(iOS) || os(watchOS)
#if canImport(ActivityKit)
import ActivityKit
#endif
It is prefer it’s working the iPad model of the app, so it would not suppose it is working on a Mac, however it’s, so it could actually’t entry ActivityKit.
There should be a work-around? In any other case any app with a widget would not be obtainable on Mac.
Any assist appreciated!