Azure / azure-spatial-anchors-samples

Azure Spatial Anchors sample code
Other
293 stars 137 forks source link

iOS: Unable to compile in Xcode simulator. Provide ASA simulator support to check the other application functionalities. #351

Open external-bharath opened 2 years ago

external-bharath commented 2 years ago

I am using azure spatial anchors with iOS and Swift programming.

After adding the azure spatial anchors to the iOS code base using the cocoapods, The app builds properly in the real device but it does not work with the simulators.

Please provide the simulator support so that I can test and validate other existing application UX flows in different simulators.

Steps to reproduce the issue I'm able to reproduce the same issue with the ASA sample app as well with the following errors

Undefined symbol: _OBJCCLASS$_ASANearAnchorCriteria Undefined symbol: _OBJCCLASS$_ASACloudSpatialAnchor Undefined symbol: _OBJCCLASS$_ASACloudSpatialAnchorSession Undefined symbol: _OBJCCLASS$_ASACloudSpatialAnchorWatcher Undefined symbol: _OBJCCLASS$_ASAAnchorLocateCriteria

Screenshots

Screen Shot 2022-05-11 at 5 02 38 PM

Development information

darax commented 2 years ago

Hi @external-bharath, could you point me to the Apple Developer documentation that indicates the iOS simulator is compatible with ARKit? My understanding is that it is not compatible, and therefore we could not support Azure Spatial Anchors on the iOS Simulator.

external-bharath commented 2 years ago

Hi @darax, You are RIght. ARKit and Azure spatial anchors do not support simulators. But my expectation is that I should compile my Xcode project in the simulator to check other UI behavior like login, profile, etc…. My app contains a lot of functionality aside from ASA that would be good to test in the simulator. Need x86_64-simulator support in the pods, so that I can validate other app functionalities in the simulator.

Thanks.

darax commented 2 years ago

@external-bharath That makes sense, and I can look into this. I did do some brief checking into some other AR plugins, like Vuforia, and seem to be struggling with enabling simulator support in a clean way. Do you know of an ARKit SDK that is doing this well?

external-bharath commented 2 years ago

@darax XCode is having the default support for the ARKit. Because of this reason, it works fine with the ARkit SDK.  you can have a look at the jitsi meet app, they have provided the simulator support. It does not support ARkit but it's a video conferencing app. Jitsi meet app link: https://github.com/jitsi/jitsi-meet-ios-sdk-releases

Bharath-atheer commented 1 year ago

@darax is there any update?.

Bharath-atheer commented 4 months ago

@darax is there any update available to fix the issue?