Search Unity

ImageTargets work in Play mode, but not in build (iOS)

Discussion in 'Vuforia' started by korp, Jul 3, 2018.

  1. korp

    korp

    Joined:
    Apr 26, 2018
    Posts:
    7
    I have a scene with some database-loaded image targets. When any image target is detected, a green capsule model appears. This works in Unity Play mode using my webcam, but once I have built to Xcode and then to my iPad device, the model does not appear. I've tried this with all my image targets, using the webcam, all of them will cause the model to appear. But on my iPad, none of the images cause the model to appear.. what are the possible reasons for this? I have no idea how to fix it.
     
  2. Vuforia-Strasza

    Vuforia-Strasza

    Official Vuforia Employee Vuforia

    Joined:
    Jun 13, 2017
    Posts:
    548
    Are there any errors in the log when this happens on your device? Which versions of Unity, Vuforia, and iOS are you using? Which specific iPad model are you testing on? Can you reproduce this in our samples (available on the Unity Asset Store)?
     
  3. korp

    korp

    Joined:
    Apr 26, 2018
    Posts:
    7
    How do I check the log...?
    I'm using Unity 2018.1.0f2, Vuforia 7.1.35, iOS 11.2.6. I'm testing on 12.9 inch iPad Pro.
    I tried building the sample project and it runs fine; the ImageTarget models appear.
     
  4. korp

    korp

    Joined:
    Apr 26, 2018
    Posts:
    7
    Hi, I tried building it from Xcode again and looked out for any log, is this what I should be looking at?

    2018-07-05 19:48:40.224940+0800 test[490:107639] NSURLConnection finished with error - code -1009

    2018-07-05 19:48:43.290615+0800 test[490:107632] TIC TCP Conn Failed [15:0x1c0171f40]: 1:50 Err(50)

    2018-07-05 19:48:43.293173+0800 test[490:107632] Task <467D57F5-16CB-41C9-A279-03D25497CB1D>.<0> HTTP load failed (error code: -1009 [1:50])

    2018-07-05 19:48:43.293347+0800 test[490:107632] NSURLConnection finished with error - code -1009

    It sounds like it is trying to connect to internet but my Vuforia app should not need to...
     
  5. Vuforia-Strasza

    Vuforia-Strasza

    Official Vuforia Employee Vuforia

    Joined:
    Jun 13, 2017
    Posts:
    548
    Look for any messages related to datasets failing. It would also be worth adding log lines in for your detection code in order to see if Vuforia is detecting your targets. This way you can isolate the issue.
     
  6. unity_ZmViROIfATParg

    unity_ZmViROIfATParg

    Joined:
    Mar 15, 2019
    Posts:
    2
    Hi, I'm having the same problem. When I preview my model animations using my webcam and print-out image targets, they seem to show up. But when I build and run through Xcode into my iPhone, using the same print-out image targets, nothing shows up...

    Please help!! I'm new to Unity and I have a deadline to meet next week :( ..getting desperate

    I'm using Vuforia version 8.1.10
    Unity version 2019.1.1f1
    Xcode 10.2 beta 4
    iPhone 7 with iOS 12.1.4