Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

CameraCapture.mm error/bug using ARFoundation

Discussion in 'AR/VR (XR) Discussion' started by Pixygon, Oct 11, 2018.

  1. Pixygon

    Pixygon

    Joined:
    May 9, 2013
    Posts:
    26
    I encounter a bug when building my app out to XCode, "Use of undeclared identifier 'STATIC_ARRAY_COUNT'" in line 478 of CameraCapture.mm, and I can't figure it out. It seems to be related to ARFoundation, but only appeared when I upgraded to 2018.3.0b5, and LWRP/Shadergraph. No errors in the unity-editor.
    I've tried several builds, restarted XCode completely etc, but to no avail.
    Any help would be appreciated! :D
     
  2. skymeson

    skymeson

    Joined:
    Sep 30, 2016
    Posts:
    15
    Same issue for me. Started with 2018.0.3b. Will try rolling back and see if that fixes anything.
     
  3. VilasKumbhare

    VilasKumbhare

    Joined:
    Sep 30, 2016
    Posts:
    3
    Using unity 2018.3.0f2 / xcode 8.0 in unity cloud
    I am getting following error :

    54667: [xcode] /BUILD_PATH/learning-yogi.atlasmission_master_development.development_ios_2018-3-0f2/TrainerAppWithWorldAndGame/temp.XXXXXX20181227-6584-m8ye4f/Classes/Unity/CameraCapture.mm:523:29: error: no member named 'numeric_limits' in namespace 'std'
    54668: [xcode] double bestMatch = std::numeric_limits<double>::max();
    54669: [xcode] ~~~~~^
    54670: [xcode] /BUILD_PATH/learning-yogi.atlasmission_master_development.development_ios_2018-3-0f2/TrainerAppWithWorldAndGame/temp.XXXXXX20181227-6584-m8ye4f/Classes/Unity/CameraCapture.mm:523:50: error: expected '(' for function-style cast or type construction
    54671: [xcode] double bestMatch = std::numeric_limits<double>::max();
    54672: [xcode] ~~~~~~^
    54673: [xcode] /BUILD_PATH/learning-yogi.atlasmission_master_development.development_ios_2018-3-0f2/TrainerAppWithWorldAndGame/temp.XXXXXX20181227-6584-m8ye4f/Classes/Unity/CameraCapture.mm:523:53: error: no member named 'max' in the global namespace
    54674: [xcode] double bestMatch = std::numeric_limits<double>::max();
    54675: [xcode] ~~^

    I am stuck on above error in unity cloud .

    Any help would be appreciated!
    Thanks