Search Unity

Resolved Launching ECSSamples on iOS, crash immediately

Discussion in 'Entity Component System' started by sugiharam2, Jul 4, 2021.

  1. sugiharam2

    sugiharam2

    Joined:
    Mar 5, 2016
    Posts:
    4
    I would like to run ECSSamples in this sample on iOS device.

    https://github.com/Unity-Technologies/EntityComponentSystemSamples

    However, it crashes immediately after booting.

    It crashes at this part of the screenshot on Xcode.
    UnityFrameworkLoad returns 0x0.



    Not limited to this sample, it happens in all projects that implement ECS.

    I also tried it on an Android build, but it works fine.
    Of course, it's okay on Unity Editor.



    Development environment
    • Unity: 2020.2.1f1, 2021.1.6f1
    • Xcode: 12.5 (12E262)
    • macOS: Big Sur 11.3.1 (20E241)
    • Device: iPhone XS Max (iOS 14.6), iPad mini 2 (iOS 12.5.4)

    Package version
    • com.unity.entities: 0.17.0-preview.41
    • com.unity.jobs: 0.8.0-preview.23
    • com.unity.platforms.android: 0.10.0-preview.10
    • com.unity.platforms.ios: 0.10.0-preview.10
    • com.unity.rendering.hybrid: 0.11.0-preview.42

    Is it missing something?
    Or is it a preview version so it doesn't work?

    Thank you!
     
  2. sugiharam2

    sugiharam2

    Joined:
    Mar 5, 2016
    Posts:
    4
    I contacted support and the answer was that it could be built using an older package, so I solved it that way.

    Development environment
    • Unity: 2020.3.15f2
    • Xcode: 12.5 (12E262)
    • macOS: Big Sur 11.3.1 (20E241)
    • Device: iPhone XS Max (iOS 14.7)

    Changed packages
    • "com.unity.rendering.hybrid": "0.10.0-preview.21",
    • "com.unity.entities": "0.16.0-preview.21",
    • "com.unity.collections": "0.14.0-preview.16",
    • "com.unity.jobs": "0.7.0-preview.17",

    Removed packages
    • "com.unity.platforms.android": "0.10.0-preview.10",
    • "com.unity.platforms.ios": "0.10.0-preview.10",
    • "com.unity.platforms.linux": "0.10.0-preview.10",
    • "com.unity.platforms.macos": "0.10.0-preview.10",
    • "com.unity.platforms.web": "0.10.0-preview.10",
    • "com.unity.platforms.windows": "0.10.0-preview.10",

    Removed folders
    • ECSSamples/Assets/Advanced/BlobAssetSimple
    • ECSSamples/Assets/HelloCube/7. IJobChunkStructBased
    • ECSSamples/Assets/StressTests

    I hope it helps you.
     
    longsl and Krajca like this.
  3. mmonly

    mmonly

    Joined:
    Mar 25, 2015
    Posts:
    8
    thanks you, this help on building Android Il2cpp too
     
    sugiharam2 likes this.
  4. Lance-Huang

    Lance-Huang

    Joined:
    Apr 7, 2013
    Posts:
    9
    @sugiharam2
    I am troubled by the crash of the entities 0.17 anroid package.
    According to the configuration you provided, I downgraded to the 0.16 pre21 version, but there were 2 errors on unity2020.3, as follows:
    Library\PackageCache\com.unity.entities@0.16.0-preview.21\Unity.Scenes\Hybrid\FileUtilityHybrid.cs(33,21): error CS0618:'UnityWebRequest.isNetworkError' is obsolete:'UnityWebRequest.isNetworkError is deprecated . Use (UnityWebRequest.result == UnityWebRequest.Result.ConnectionError) instead.'
    -------------------------------------------------- ---------------------------------------------
    Library\PackageCache\com.unity.entities@0.16.0-preview.21\Unity.Scenes\Hybrid\FileUtilityHybrid.cs(33,48): error CS0618:'UnityWebRequest.isHttpError' is obsolete:'UnityWebRequest.isHttpError is deprecated . Use (UnityWebRequest.result == UnityWebRequest.Result.ProtocolError) instead.'
    How did you deal with it? thanks.
     
  5. Elapotp

    Elapotp

    Joined:
    May 14, 2014
    Posts:
    98
    @sugiharam2, could you please share your manifest? Seems like other packages should be updated as well.

    RESOLVED. In my case I had to downgrade "com.unity.physics" to "0.5.1-preview.2"
     
    Last edited: Jan 10, 2022