Search Unity

Question My project runs on Mac but not iOS

Discussion in 'Entity Component System' started by dynamicbutter, Jun 16, 2022.

  1. dynamicbutter

    dynamicbutter

    Joined:
    Jun 11, 2021
    Posts:
    63
    I'm developing this package. The moment I add the package into a brand new Unity project the project can still run in editor or standalone on Mac but no longer runs on iOS (though it formerly could run on iOS).

    After the splash screen I get the following error in the Xcode console. Note, the package depends on "com.unity.entities": "0.50.1-preview.2".

    2022-06-16 09:33:10.698489-0500 Muse[590:37081] Built from '2020.3/release' branch, Version '2020.3.34f1 (9a4c9c70452b)', Build type 'Release', Scripting Backend 'il2cpp'

    2022-06-16 09:33:10.698926-0500 Muse[590:37081] MemoryManager: Using 'Default' Allocator.

    -> applicationDidFinishLaunching()


    Setting UIViewControllerBasedStatusBarAppearance to NO is no longer supported.

    Apple actively discourages that, and all application-wide methods of changing status bar appearance are deprecated


    -> applicationDidBecomeActive()

    GfxDevice: creating device client; threaded=1

    Initializing Metal device caps: Apple A14 GPU

    Initialize engine version: 2020.3.34f1 (9a4c9c70452b)

    Unable to find internal function `UnityEngine.Jobs.TransformAccess::GetWorldToLocalMatrix`

    Unity.Burst.BurstCompilerHelper:IsCompiledByBurst(Delegate)

    Unity.Burst.BurstCompilerHelper:.cctor()

    Unity.Burst.BurstCompiler:Compile(Object, MethodInfo, Boolean, Object)

    Unity.Burst.BurstCompiler:CompileILPPMethod(RuntimeMethodHandle, RuntimeMethodHandle, RuntimeTypeHandle)

    Unity.Collections.Hash64Long_00000019$BurstDirectCall:Constructor()

    $BurstDirectCallInitializer:Initialize()


    [ line 1865255656]


    UnloadTime: 2.288583 ms

    Steps to reproduce.
    1. Create a project based on 2020.3.34f1
    2. Run brand new project on Mac and iOS successfully
    3. Open package manager and add package from git url:
      git@github.com:imagibee/com.imagibee.parallel.git
    4. Restart Unity
    5. Editor and standalone build for Mac still runs fine
    6. Build for iOS using Release build with all default settings and it causes the error when launched
    Observations:
    Rather than fighting with preview packages, should I make my package dependent on something else? It don't think it actually needs entities. I'm pretty sure it needs burst, jobs, and mathematics.
     
    Last edited: Jun 16, 2022
  2. dynamicbutter

    dynamicbutter

    Joined:
    Jun 11, 2021
    Posts:
    63
    Resolved it. For anyone who happens to run across this thread here is what I did...
    • Switch from 2020.3.34f1 to 2021.3.2f1
    • Remove dependency on "com.unity.entities": "0.50.1-preview.2"
    • Add dependencies for ...
      • "com.unity.burst": "1.6.6"
      • "com.unity.jobs": "0.51.0-preview.32"
      • "com.unity.mathematics": "1.2.6"
      • "com.unity.collections": "1.3.1"