google-ar / arcore-ios-sdk

ARCore SDK for iOS
https://developers.google.com/ar/
Apache License 2.0
283 stars 84 forks source link

Stuck at First Run #82

Closed ghus86 closed 1 year ago

ghus86 commented 1 year ago

Hi

I am developing an app with the GeoSpatial Api it works well in android but in iOS in the first time I run the app it get stuck only displaying Initializing AR if I close the app and run it again the app works well.

Already tried to give permission for location and camera before launching the scene with the geo spatial API

Using unity 2021.3.14 ar foundation 4.2.7 arcore for iOS 1.36 added via swift package manager only works with this configuration set to the unity framework https://developers.google.com/ar/develop/ios/enable-arcore/#use_swift_package_manager

Xcode 14.3 iOS 16.5

@jrullman any tip how to fix this issue ?

ghus86 commented 1 year ago

It stops because its not sure if the GeoSpatialMode is supported

var featureSupport = EarthManager.IsGeospatialModeSupported(GeospatialMode.Enabled); switch (featureSupport) { case FeatureSupported.Unknown:

jrullman commented 1 year ago

Swift Package Manager is currently only supported when using the native iOS SDK. If using the ARCore Extensions for AR Foundation in Unity, you need to use CocoaPods.

Please follower the developer guide for either Unity ARF or iOS native.

ghus86 commented 1 year ago

Ok thanks for the quick feedback John @jrullman.

I used the swift package manager because the CoCoaPods was giving some errors

Do you know what version of CocoaPods I need to have Arcore geospatial 1.36 support?

jrullman commented 1 year ago

Are you using a very old version? The latest should be good. What error were you getting with CocoaPods?

ghus86 commented 1 year ago

I was using 1.10 but updating to the latest helped with the CocoaPods issue

Regarding the first issue I mentioned if the GeoSpatial is Unknow reloading the scene helps.

Thanks for thhe help