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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Launch IOS xcode error

Discussion in 'Editor & General Support' started by unity_A52D589F1B39F49F2EFC, Nov 18, 2022.

  1. unity_A52D589F1B39F49F2EFC

    unity_A52D589F1B39F49F2EFC

    Joined:
    Nov 18, 2022
    Posts:
    1
    Hello!

    I got an error when I try to launch on IOS simulator

    How to fix it?


    [8257:56748] [general] Error loading /Library/Developer/CoreSimulator/Devices/5EE2534E-1B19-48D8-83C7-DDA423068290/data/Containers/Bundle/Application/110AB850-A080-42DE-AF5E-B97A1FCCE6C9/TEST.app/Frameworks/UnityFramework.framework/UnityFramework (226): dlopen(Library/Developer/CoreSimulator/Devices/5EE2534E-1B19-48D8-83C7-DDA423068290/data/Containers/Bundle/Application/110AB850-A080-42DE-AF5E-B97A1FCCE6C9/TEST.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): tried: '/Library/Developer/Xcode/DerivedData/TEST-fbvgngzswnfrlmbpvrdcsvopehpu/Build/Products/Debug-iphonesimulator/UnityFramework.framework/UnityFramework' (errno=2), '/Library/Developer/Xcode/DerivedData/TEST-fbvgngzswnfrlmbpvrdcsvopehpu/Build/Products/Debug-iphoneos/UnityFramework.framework/UnityFramework' (mach-o file (/Library/Developer/Xcode/DerivedData/TEST-fbvgngzswnfrlmbpvrdcsvopehpu/Build/Products/Debug-iphoneos/UnityFramework.framework/UnityFramework), but incompatible platform (have 'iOS', need 'iOS-sim')), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Users/USR/Library/Developer/CoreSimulator/Devices/5EE2534E-1B19-48D8-83C7-DDA423068290/data/Containers/Bundle/Application/110AB850-A080-42DE-AF5E-B97A1FCCE6C9/TEST.app/Frameworks/UnityFramework.framework/UnityFramework' (errno=2), '/Library/Developer/CoreSimulator/Devices/5EE2534E-1B19-48D8-83C7-DDA423068290/data/Containers/Bundle/Application/110AB850-A080-42DE-AF5E-B97A1FCCE6C9/TEST.app/Frameworks/UnityFramework.framework/UnityFramework' (mach-o file (/Library/Developer/CoreSimulator/Devices/5EE2534E-1B19-48D8-83C7-DDA423068290/data/Containers/Bundle/Application/110AB850-A080-42DE-AF5E-B97A1FCCE6C9/TEST.app/Frameworks/UnityFramework.framework/UnityFramework), but incompatible platform (have 'iOS', need 'iOS-sim')), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/UnityFramework.framework/UnityFramework' (errno=2)
     
  2. ethanharlig

    ethanharlig

    Joined:
    Oct 31, 2022
    Posts:
    1
    I was able to workaround this by running my Unity app on a physical device - i.e. running on my plugged in iPhone. I haven't messed around with it to try to get the simulator working, but hopefully this workaround can unblock you.
     
  3. alikun

    alikun

    Joined:
    Oct 17, 2018
    Posts:
    16
    Hello,

    Unfortunately I don't have an iOS device and I'm trying to test my game in Xcode simulator and ran into the same problem.

    Have you found the solution?