skip to Main Content

I am having trouble getting an Xcode project exported from Unity to build correctly. When I attempt to create an adhoc IPA file I get this error (apparently something to do with ArcGIS):

ld: unknown file type in '/Users/me/myproject/Frameworks/ARM64/Assets/Plugins/ArcGIS/Binaries/iOS/arm64/Runtimecore.framework/Runtimecore'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I’m not getting this on my other mac that’s using Xcode 14.3. Does anybody have any idea what’s going on here?

Here is my system info:

Mac Mini M1 (Apple silicon)
MacOS Ventura 13.5.1
Unity 2022.3.10f1
Xcode 15 (15A240d)

2

Answers


  1. Chosen as BEST ANSWER

    This turned out to be an issue with the version of Xcode I was using. Apparently this version of the ArcGIS plugin does not work well with Xcode 15. Downgrading to 14.3 fixed it.


  2. The error message suggests there’s a linker problem related to the ArcGIS plugin, specifically with the Runtimecore.framework file. The file type is unknown to the linker, which might suggest a file corruption or an incompatibility issue, especially considering the different behaviors between two different Xcode versions.

    Here’s a few steps you might consider to troubleshoot and resolve the issue:

    1. Check File Integrity:

    • Ensure the Runtimecore.framework file is not corrupted. You might redownload or reinstall the ArcGIS plugin.

    2. Architecture Mismatch:

    • Ensure that the Runtimecore.framework is compiled for ARM64 architecture, considering you’re using an M1 Mac.

    3. Update ArcGIS:

    • Check whether there is an updated version of the ArcGIS plugin that might have better support for ARM64 and the versions of Unity and Xcode you are using.

    4. Xcode Version Differences:

    • It’s noteworthy that the error doesn’t occur on Xcode 14.3. There might be a compatibility issue or a bug in Xcode 15 (15A240d). Ensure that your Xcode 15 installation is correct and consider:
      • Updating Xcode 15 to a newer version if available.
      • Trying to build the project using Xcode 14.3 on your M1 Mac to verify the issue is related to the Xcode version.

    5. Build Settings:

    • Verify your build settings in Xcode, ensuring that the linking and frameworks are properly configured. Pay attention to "Framework Search Paths" and "Library Search Paths".
    • Ensure that Runtimecore.framework is properly linked in your Xcode project.

    6. macOS and Unity Compatibility:

    • Validate that macOS Ventura 13.5.1 and Unity 2022.3.10f1 are compatible and don’t have known issues with Xcode 15.

    7. Manual Compilation:

    • Try manually compiling the Runtimecore.framework for ARM64 using Xcode, and then adding it to your project.

    8. Logs and Forums:

    • Check the full build logs in Xcode for any additional warnings or errors that might point towards the problem.
    • Explore forums and communities related to Unity and ArcGIS development for similar issues and potential fixes.

    9. Unity Build Settings:

    • Ensure your Unity project is configured correctly for iOS development and check if any specific settings are recommended by the ArcGIS plugin documentation.

    10. Testing on Different System:

    - If possible, test the build process on a different Mac system to isolate whether the issue is specific to your Mac Mini M1 setup.
    

    By iterating through these steps, you might be able to pinpoint the issue more closely and potentially resolve it. It might be a singular issue or a combination of factors related to the versions of macOS, Unity, and Xcode that you’re using, along with the specific ArcGIS plugin.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search