Search Unity

Question error: unexpected opcode while processing relocation R_ARM_CALL

Discussion in 'Android' started by nn2015, Dec 3, 2022.

  1. nn2015

    nn2015

    Joined:
    Sep 18, 2015
    Posts:
    3
    Hi,

    We're currently experiencing a strange phenomenon with the Android build of our game, which we can't find on the net.

    The problem does not occur when building on Windows, but only on MAC.
    The following error.

    /Applications/Unity/Hub/Editor/2021.3.9f1/Unity.app/Contents/il2cpp/libil2cpp/codegen/il2cpp-codegen-il2cpp.h:257: error: unexpected opcode while processing relocation R_ARM_CALL
    Library/Bee/artifacts/Android/il2cppOutput/cpp/mscorlib17.cpp:23708: error: unexpected opcode while processing relocation R_ARM_CALL
    Library/Bee/artifacts/Android/il2cppOutput/cpp/mscorlib17.cpp:23708: error: unexpected opcode while processing relocation R_ARM_CALL
    Library/Bee/artifacts/Android/il2cppOutput/cpp/mscorlib17.cpp:23708: error: unexpected opcode while processing relocation R_ARM_CALL
    Library/Bee/artifacts/Android/il2cppOutput/cpp/mscorlib17.cpp:23709: error: unexpected opcode while processing relocation R_ARM_CALL
    Library/Bee/artifacts/Android/il2cppOutput/cpp/mscorlib17.cpp:23709: error: unexpected opcode while processing relocation R_ARM_CALL
    Library/Bee/artifacts/Android/il2cppOutput/cpp/mscorlib17.cpp:23709: error: unexpected opcode while processing relocation R_ARM_CALL
    Library/Bee/artifacts/Android/il2cppOutput/cpp/mscorlib17.cpp:23721: error: unexpected opcode while processing relocation R_ARM_CALL
    Library/Bee/artifacts/Android/il2cppOutput/cpp/mscorlib17.cpp:23721: error: unexpected opcode while processing relocation R_ARM_CALL
    :
    :

    Below is the environment.
    Unity 2021.3.9f1
    Mac Monterey 12.5.1
    XCode 13.4.1

    If there is no effective solution to this, I am thinking that the only solution is to erase the disk and reconfigure it.
    In the meantime, I've just asked it here.
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,445
    just for fun checked what AI replies to that, could test that if nothing else comes up.
    "compatibility issue between the Unity build process and the version of the Android NDK (Native Development Kit) that is installed on the Mac."
     
  3. nn2015

    nn2015

    Joined:
    Sep 18, 2015
    Posts:
    3
    I see, I will check.
     
  4. nn2015

    nn2015

    Joined:
    Sep 18, 2015
    Posts:
    3
    Eventually I did ..
    1. OS update.
    2. Re-insalled Unity
    3 Re-installed Android Studio.
    4. Changed External HDD format from ExFAT to APFS.
    now, it works.