Hi everyone,
we’re trying to build our iOS game for Apple Silicon Macs with iOS app support (iPhone and iPad apps on Apple silicon Macs - Apple Developer). This already works when downloading the iOS app on an M1 Mac, but has several issues as the app is running in emulation mode (examples: IAPs not working, keyboard input is very laggy, sub-optimal performance).
We’ve now been trying to build the app (or for that matter, any Unity project) to support macOS deployment natively (for reference, i’m talking about this checkbox:
As soon as I enable that checkbox and try to rebuild any project, I’m getting the following errors:
.../Unity-iPhone.xcodeproj Building for Mac Catalyst, but the linked library 'libil2cpp.a' was built for iOS. You may need to restrict the platforms for which this library should be linked in the target editor, or replace it with an XCFramework that supports both platforms.
.../Unity-iPhone.xcodeproj Building for Mac Catalyst, but the linked library 'libiPhone-lib.a' was built for iOS. You may need to restrict the platforms for which this library should be linked in the target editor, or replace it with an XCFramework that supports both platforms.
.../Unity-iPhone.xcodeproj Building for Mac Catalyst, but the linked library 'baselib.a' was built for iOS. You may need to restrict the platforms for which this library should be linked in the target editor, or replace it with an XCFramework that supports both platforms.
The errors and screenshots above are from an out-of-the-box new project using the Mobile 3D template on the Apple Silicon 2021.2.0b16, and I’ve tried lots of other editor versions, all with the same issue.
I couldn’t really find much on the forums related to this, or any instructions on how to make that work (partly because Catalyst, Apple Silicon, M1 Mac all seem to be used interchangeably to mean either a native M1 build of the editor, a native M1 build of the macOS standalone build, or native macOS iOS build support).
So, my key questions are:
(1) Is this currently working at all?
(2) If it is, how can I make it work?
(3) If it is not, are there any plans to add this?
Thanks,
Volker