Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
2.98k stars 1.11k forks source link

libUnityARKit for Simulator #1076

Closed NikKovIos closed 9 months ago

NikKovIos commented 1 year ago

Hi)

I build unity for simulator like this: telegram-cloud-photo-size-2-5269559899212335613-x

And libraries libil2cpp, baselib, libiPhone-lib builded for x86_64 arch. But libUnityARKit.a is still for arm64 arch. And when building to simulator there is an error while linking:

/Libraries/libUnityARKit.a, building for iOS Simulator-x86_64 but attempting to link with file built for iOS-arm64

I've found topic with same theme.

Also found that camera is not supported on simulator https://forum.unity.com/threads/symbol-not-found-_unityarkitxrplugin_pluginload.841729/
It's strange if you make build for simulator and it's not working in simulator.

Question: How to build libUnityARKit for iOS Simulator-x86_64 in order to run it on simulator?

andyb-unity commented 1 year ago

Apple does not support ARKit in the iOS simulator, so we don't support our ARKit plugin in the simulator either. (https://developer.apple.com/forums/thread/92311)

NikKovIos commented 1 year ago

@andyb-unity I just want you to support a mock library when you build to simulator. its methods will do nothing. However it would provide availability to build and run unity projects that supports ar - to simulator without any crunches.

andyb-unity commented 9 months ago

Closing this issue as asked and answered. We do not support this use case.