arfoundation-samples icon indicating copy to clipboard operation
arfoundation-samples copied to clipboard

[Bug] Image Tracking fails on iOS when built on Windows

Open Johanna-D opened this issue 2 years ago • 9 comments

Unity bug report case number IN-24429

Describe the bug I used the arfoundation-samples project. I builded the scene ImageTrackingWithMultiplePrefab on Android (works fine) and on IOS, where I am facing an issue : when I look for example at the QRCode or the Rafflesia image, nothing happen ( on Android, I see the prefabs spawning).

To Reproduce Unity version : 2021.3.11f1 IOS version : 16.1.1 (Iphone 12 pro max) ARFoundation version : 4.2

To reproduce, open the scene ImageTrackingWithMultiplePrefab an build it on an IOS device. (Note that I am working on a Windows PC)

Expected behavior When I look at the Rafflesia image, a kind of flower model should appear. When I look at the QRCode, a helmet should appear.

Actual behavior Actually, when I look at those images, nothing appears. See attached image to see the result. On the left we can see the application working on the android device, and on the right it is not working on the IOS device. android_on_the_left_ios_on_the_right

Smartphone (please complete the following information):

  • Device: Iphone 12 pro max
  • OS: IOS 16.1.1
  • Unity version 2021.3.11f1
  • ARFoundation version 4.2

Thank you very much for your help.

Johanna-D avatar Nov 29 '22 15:11 Johanna-D

Are you seeing this behavior only on iPhone 12 Pro Max or other iOS devices as well?

ankur-unity avatar Nov 29 '22 20:11 ankur-unity

I don't have any other IOS device available at the moment to test, I will try to find one and I'll let you know as soon as I can test it.

Johanna-D avatar Nov 30 '22 13:11 Johanna-D

Same problem here on iPhone 13 Pro (iOS 16) and iPad Pro (iPad OS 16). Tried a lot of workarounds an no one worked. I even try to use an iPhone on iOS 15.

Brotherta avatar Nov 30 '22 13:11 Brotherta

Note that I am working on a Windows PC

This seems relevant. How are you building the ipa? Do you copy the project to a Mac? Cloud build?

tdmowrer avatar Nov 30 '22 16:11 tdmowrer

Here are the steps I follow to build for IOS :

  • On Unity I build for IOS and push the entire folder created on gitlab.
  • I get the folder on the Mac via gitlab
  • I open the .xcodeproj file in Xcode
  • I go to Unity-Iphone > Signing and Capabilities and I check Automatically manage signing. Then, I select my personal team and I build the app.

I hope this can help.

Johanna-D avatar Dec 02 '22 14:12 Johanna-D

Hello, I wanted to give you another feedback, I tried to build the scene directly on a Mac and I did the whole process on the Mac and everything worked perfectly. I'd still like to be able to do the build on my Windows PC, but maybe this gives you an additional clue about where the problem lies.

Johanna-D avatar Dec 14 '22 09:12 Johanna-D

Hi all, the bug that @Johanna-D filed was closed by our incoming QA team as their project did not compile, but we have reproduced this error. We will update this thread when we have more information about a potential fix.

andyb-unity avatar Apr 14 '23 00:04 andyb-unity

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 18 '23 10:06 stale[bot]

Removing the stale label as this issue is still open.

andyb-unity avatar Jun 21 '23 18:06 andyb-unity