Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Crashes when running via xcode simulator — Gideros Forum

Crashes when running via xcode simulator

This bug appears in 2021.9

It works without issues in 2020.5

Here is the error dump

2021-10-10 16:56:07.143789+0100 jumpRage iOS[12958:383943] Metal GPU Frame Capture Enabled
2021-10-10 16:56:07.144186+0100 jumpRage iOS[12958:383943] Metal API Validation Enabled
2021-10-10 16:56:07.810940+0100 jumpRage iOS[12958:383943] [plugin] AddInstanceForFactory: No factory registered for id F8BB1C28-BAE8-11D6-9C31-00039315CD46
2021-10-10 16:56:07.946548+0100 jumpRage iOS[12958:384794] [ddagg] AggregateDevice.mm:790 couldn't get default input device, ID = 0, err = 0!
METAL:Apple iOS simulator GPU

/Users/john/Library/Developer/CoreSimulator/Devices/02DD06A0-5668-40BF-8D72-5910B37CFEF2/data/Containers/Data/Application/FC739429-7096-4BD9-820F-E7AA50F1CE22/Documents
/Users/john/Library/Developer/CoreSimulator/Devices/02DD06A0-5668-40BF-8D72-5910B37CFEF2/data/Containers/Data/Application/FC739429-7096-4BD9-820F-E7AA50F1CE22/tmp/
/Users/john/Library/Developer/CoreSimulator/Devices/02DD06A0-5668-40BF-8D72-5910B37CFEF2/data/Containers/Bundle/Application/B35C1195-9228-479C-B297-57A0ABA757F0/jumpRage iOS.app
/Users/john/Library/Developer/CoreSimulator/Devices/02DD06A0-5668-40BF-8D72-5910B37CFEF2/data/Containers/Data/Application/FC739429-7096-4BD9-820F-E7AA50F1CE22/Library/Caches
2021-10-10 16:56:09.355198+0100 jumpRage iOS[12958:383943] Compiler failed to build request
2021-10-10 16:56:09.355773+0100 jumpRage iOS[12958:383943] Error creating render pipeline state: Error Domain=CompilerError Code=1 "Target OS is incompatible: library was not compiled for the simulator" UserInfo={NSLocalizedDescription=Target OS is incompatible: library was not compiled for the simulator}
-[MTLDebugRenderCommandEncoder validateCommonDrawErrors:instanceCount:baseInstance:maxVertexID:]:3889: failed assertion `renderPipelineState must be set.

Comments

  • hgy29hgy29 Maintainer
    Accepted Answer
    This is a known problem, simulator is t supported out of the box now we switched to metal. You can overcome the problem by replacing the default.mtllib file by the simulator version

    Likes: MoKaLux

    +1 -1 (+1 / -0 )Share on Facebook
  • Can you explain exactly how to do that? I'm having trouble getting anything to run in the Simulator exported by any version of Gideros since I updated XCode and MacOS. Projects I exported before the updates still work, but any newer exports crash aFter the splash screen whenThread 1 hits SIGABRT trying to call GraphicsBase::draw(), in metalShaderProgream::drawElements(). Perhaps my issue is different.
  • I see what you mean now. I've found the metallib files in the export, and made the replacement. That gets past the issue I was having. I assume to build a version to publish or run on a device I'll need to use the original metal library.
    +1 -1 (+2 / -0 )Share on Facebook
Sign In or Register to comment.