Upload Certification error

Hi!
I am publishing my first app on the windows store and ran into some errors.
The .appxupload file I send to the store fails the Supported API test. The installed WACK passed when launched after creating these packages:

I did run in to some trouble with my initial attempts to run the test leading me to force uninstall visual studio and the WACK and then reinstall and update to the latest versions. The local tests then ran successfully and passed. Another issue I had to solve was the setting for “Compile with .NET Native tool chain.” which was required for the app to pass. I am following the Guidelines from Packaging MSIX apps - MSIX | Microsoft Learn

I have spent 5 days debugging the certification and publishing process and thought I was done when the tests passed. I am not sure how to proceed, any tips are very welcome.

My visual studio version is 14.0.25432.01 Update 3

WACK version: 10.0.14393.33

.net framework is 4.6.01586

The store test:

API test
FAILED
Supported APIs

  • Error Found: The supported APIs test detected the following errors:

  • API cameraDeviceDeinitCamera in __internal.dll is not supported for this application type. Vuforia.UnityExtensions.dll calls this API.

  • API cameraDeviceGetCameraDirection in __internal.dll is not supported for this application type. Vuforia.UnityExtensions.dll calls this API.

  • API cameraDeviceGetCameraField in __internal.dll is not supported for this application type. Vuforia.UnityExtensions.dll calls this API.

  • API cameraDeviceGetCameraFieldOfViewRads in __internal.dll is not supported for this application type. Vuforia.UnityExtensions.dll calls this API.

  • API cameraDeviceGetFieldBool in __internal.dll is not supported for this application type. Vuforia.UnityExtensions.dll calls this API.

…

  • API SetDisplayAutoRotationPreferences in user32.dll is not supported for this application type. Assembly-CSharp.dll calls this API.
  • API initQCARiOS in __internal.dll is not supported for this application type. Assembly-CSharp.dll calls this API.
  • API setPlatFormNative in __internal.dll is not supported for this application type. Assembly-CSharp.dll calls this API.
  • API setSurfaceOrientationiOS in __internal.dll is not supported for this application type. Assembly-CSharp.dll calls this API.

the Local test

1.1.1.0
App Architecture:
x64
Kit Version:
10.0.14393.33
OS Version:
Microsoft Windows 10 Pro (10.0.14393.0)
OS Architecture:
x64
Report time:
2016-12-22 09:38:53

Overall result: PASSED

It’s weird the the local test passed. Essentially what “API setSurfaceOrientationiOS in __internal.dll is not supported for this application type. Assembly-CSharp.dll calls this API.” means is that you have the following code somewhere:

[DllImport("__Internal")]
static extern void setSurfaceOrientationiOS(...)

Microsoft unfortunately doesn’t allow you have such PInvokes present in your code even if you don’t call them. This also is only an issue on .NET scripting backend, because they cannot detect it if you’re using IL2CPP. The solution here is to #ifdef them out (#if !UNITY_WSA … #endif)

Furthermore, it looks like Vuforia.UnityExtensions.dll has some of that code inside of it too… which I assume you don’t have source code for. Are you even using that DLL on this platform?

Thank you for pointing me in the right direction! I finaly managed to publish!

I did have a call to a unalowed API but most problems were due to a bug in how the WACK handled __internal.DLL and Vuforia.UnityExtensions.DLL
I submitted a bugreport and Vuforia Provided a workaround here:
https://developer.vuforia.com/forum/issues-and-bugs/publishing-windows-store-unity-vuforia-app-not-supported[](https://developer.vuforia.com/forum/issues-and-bugs/publishing-windows-store-unity-vuforia-app-not-supported)

Hei could you explain a bit further what you did. I am getting the same problem and I tried what is explain on your link but I get error saying it found two assemblies of the same identity.

Could it be possible you provide a longer explanation on how to process?
Cheers