I have an iPad app using AR Foundation 2.1.4, ARKit Face Tracking 1.0.2, and ARkit XR Plugin 2.1.2. Apple rejected the app because it includes the TrueDepth APIs but isn’t using them. Apple recommends upgrading the ARKit plugin and linked to an old forum post from 2017. The forum post says to uncheck “ARKit Uses Face Tracking”, but that is not an available option in the settings, all I can do is make ARKit required or optional.
I have tried removing the ARKit Face Tracking package, but that causes build errors in Unity. I’ve searched the package documentation and couldn’t find any information how to remove the TrueDepth APIs.
With the current version of the AR Foundation and AR Kit packages, how do I disable the TrueDepth APIs?
There’s nothing for AR in Unity preferences. The project settings only lets you select if AR Kit is required or optional. You’re probably thinking of the deprecated AR Kit plugin.
I think I’ve solved it but I won’t know for sure until it goes through Apple’s review process, which is taking longer than normal right now. The key (I think!) was disabling assembly stripping in the project settings, along with removing the face tracking package and sample scripts. Since I had already made an Xcode project I had to delete the face tracking library in the Xcode project too.
I used AR Foundation just for ground plane detection and 3D model placement. Our app was rejected, and this is what Apple says: “During review, we found that your app includes TrueDepth APIs. However, we were not able to locate any features in your app that use TrueDepth APIs”. Any solutions to this? Maybe, somewhere in the AR Foundation code, they are referencing this API. Thanks.
dyuldashev: That’s exactly the same problem I had, my app is only using plane detection. Try the solution I posted above, no guarantees but it worked for me. Remove the face tracking package, disable assembly stripping, delete any sample scripts that give you build errors, and make sure face tracking library is removed from the Xcode project.
@SynSeia I received the same rejection. I was able to get the project to compile by removing ARKit Face Tracking, and removing ARKitBlendShapeVisualizer.cs from the ARFoundationSampes/Scripts, which was the only class that was complaining. Haven’t submitted the new build yet, but I hope it solves the issue that caused the rejection.
@SynSeia@poshaughnessey forgive the rookie question, but how does one go about removing these? Is all the removing done in Xcode? I can’t find ARKitBlendShapeVisualizer.cs in Xcode? I’ve tried removing references from build settings, but now I have this error:
ld: library not found for -lUnityARKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Make sure you remove anything that uses TrueDepth features. This may include the ARKit Face Tracking package and any samples in your project that use TrueDepth.
My first version got accepted by apple store. but then I did some changes in UI sections, and then tried to submit new version and it got rejected due to same reason as above.
Now I dont understand why I am facing this, I have face tracking disabled already and obviously dont have ARkit Face Tracking package installed at all, and I can not find anything related to true depth API, not to mention I didnt change anything in my Unity Project except for UI changes. I am attaching screenshot.