Closed sam598 closed 3 years ago
The error is telling you what the problem is here.
There is a sample that uses location services, so to build the samples for iOS, you must provide a location usage description. You do not need a location usage description in your own app unless, of course, you are using location services.
Project will build if the folder Assets/Scenes/ARKit/ARKitGeoAnchors
is deleted. Is this documented?
Ah just saw the comment by @tdmowrer. It sort of is.
Actually it looks like there is more to it.
In Assets/Scripts/UX/CheckAvailableFeatures.cs
lines 445-457:
if (sessionDescriptors.Count > 0 && IsiOS14OrLater())
{
m_ARKitGeoAnchors.interactable = true;
}
and lines 492-497:
#if UNITY_IOS && !UNITY_EDITOR
[DllImport("__Internal", EntryPoint = "ARFoundationSamples_IsiOS14OrLater")]
static extern bool IsiOS14OrLater();
#else
static bool IsiOS14OrLater() => false;
#endif
need to be commented out in order for the xcode project to build.
Describe the bug iOS app does not build when "Location Usage Description" is blank.
To Reproduce Steps to reproduce the behavior:
Expected behavior Build iOS application without location services.
Actual behavior iOS application does not build.
Smartphone (please complete the following information):