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.

Bug EXC_BAD_ACCESS (code=1...) in Xcode when building to iPhone

Discussion in 'Unity MARS' started by Jon_Huhn, Jul 25, 2023.

  1. Jon_Huhn

    Jon_Huhn

    Joined:
    May 2, 2020
    Posts:
    11
    And MARS is the issue. With only ARFoundation, ARKit, ARCore, and XR Plugin Management I can build to the iPhone just fine. But *as soon* as I install the MARS package provided by unity and then try to build to my iPhone via Xcode, the app crashes with the above error.

    Using Unity 2022.3.5, ARFoundation 5.0.6, ARKit 5.0.6, ARCore 5.0.6, MARS 1.5.0, and Xcode 15.0 beta 4.

    And yes, I have to use the beta because my iPhone has iOS 16.5.1, but the most recent non-beta Xcode doesn't support that version. Thanks, Crapintosh.
     
  2. Jon_Huhn

    Jon_Huhn

    Joined:
    May 2, 2020
    Posts:
    11
    Turns out that using the beta version of Xcode was the problem. Fortunately, I found a way to force Xcode to support a version of iOS that it wasn't intended to by following the instructions here: https://dilumdesilva.medium.com/so-...-os-version-here-s-how-to-fix-it-c2db7fd58468

    It's super easy, barely an inconvenience. You just download a zip file for the iOS version you want supported, unzip it, and move its contents into a specific folder in your Xcode installation, as per the instructions.
     
  3. CiaranWills

    CiaranWills

    Unity Technologies

    Joined:
    Apr 24, 2020
    Posts:
    195
    Glad you worked this out. Yeah keeping XCode in sync with the iOS version on your devices is a pain.