No suitable image found.

Hello,

Please help me solve this error:

IB Designables: Failed to render and update auto layout status for ViewController (BYZ-38-t0r): dlopen(Demo.app, 1): no suitable image found. Did find: Demo.app: mach-o, but not built for platform iOS-sim

I create new simple application. Then I create custom view with IB Designables and this broke Storyboard. I have a lot of projects in which I use Storyboard and now I cannot edit them.

Thanks.

  • Xcode: 12.5.1 (12E507)
  • MacOS: 11.5.1 (20G80)
  • Chip: Apple M1

If you remove the IBDesignable statements in code, does it work ? Or is the problem more general of not being able to open storyboards ?

Have a look here, seems a similar problem.

https://stackoverflow.com/questions/53114398/xcode-simulator-cymemdef-dylib-mach-o-but-not-built-for-ios-simulator/53235872

Custom view has this code and if I remove @IBDesignable error disappears.

@IBDesignable

class cCustomView: UIView {

    @IBInspectable var demoString: String?;

    override func prepareForInterfaceBuilder() {
        super.prepareForInterfaceBuilder();
    }

}

Screen shot with error:

Apple engineers, how can I fix this error and get Interface Builder to work?

I don’t think you released a non-working product.

No suitable image found.
 
 
Q