I have an objective-c custom view, I marked it as IB_DESIGNABLE and I got error in the storyboard:
MainStoryboard_iPhone.storyboard: error: IB Designables: Failed to update auto layout status: dlopen(example.app, 1): no suitable image found. Did find: example.app: mach-o, but wrong architecture
and another one:
MainStoryboard_iPhone.storyboard: error: IB Designables: Failed to render instance of CustomView: dlopen(example.app, 1): no suitable image found. Did find: example.app: mach-o, but wrong architecture
I am working on Xcode 6.1 beta. I tried to make a framework as described in the WWDC session 411, but I got same error.
any idea, what's missing?
Open the storyboard. Drag and drop a Custom View onto the view controller scene. Under the identity inspect, set the class name to TestView.
Choose File > New > File to open the template selector again. In the User Interface section, select “SwiftUI View” and click Next. Name the file CircleImage.swift and click Create. You're ready to insert the image and modify its display to match the desired design.
NIBs and XIBs are files that describe user interfaces, and are built using Interface Builder. In fact, the acronym "NIB" comes from "NeXTSTEP Interface Builder", and "XIB" from "Xcode Interface Builder".
Valid Architectures: arm64
you should add arm64 to Valid Architectures. Designables need it!
Adding arm64 to to Build settings->Architectures, cleaning and deleting derived data worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With