-
Notifications
You must be signed in to change notification settings - Fork 30
Interface Builder crashes when components are used on Storyboard #8
Comments
I had a second view on the problem and I think the solution is actually add the
After this the application is running as expected (just like before this changes) but the Interface Builder is not crashing and is actually showing the button with the expected MSButton style: I think this solution might work, so I'd be happy to know your opinion and maybe I can open a PR. |
Hi Orlando Thank you for reporting this issue and doing an investigation. Implementing Thanks, |
Hi Vlad. I think I can implement the required Thank you! |
Hi!
I'm adding the OfficeUIFabric pod as described on the README.md and trying to use the components included into this library, but the Xcode's Interface Builder designer crashes if I use a custom class for a button changing it to
MSButton
.The minimal reproduction of the error is contained on this repository https://github.com/OrlSan/officeuifabric-sb-demo
Although the application is actually compiling and running the Interface Builder is displaying a blank canvas just containing the base
UIViewController
frames, but nothing else:Xcode is displaying the Issue message
Main.storyboard: error: IB Designables: Failed to render and update auto layout status for ViewController (BYZ-38-t0r): The agent crashed
The Diagnostic report found on
~/Library/Logs/DiagnosticReports
is pointing the error as the following:The full crash log is here: IBDesignablesAgent-iOS_2019-05-22-161443_d4nger.crash.txt
What I've tried
As fas as I'm understanding the
MSButton
class (subclass ofUIButton
) is crashing the designer because theinit(frame:)
initializer is not implemented. I actually tried to change the source code and added the initializer so theMSButton
implementation will include the following:But again Xcode is displaying an empty canvas and the error is
Main.storyboard: error: IB Designables: Failed to render and update auto layout status for BNInitialViewController (BYZ-38-t0r): Failed to load designables from path (null)
I don't know if the implementation of the initializer is the correct way to address this issue because the IB is not displaying the canvas anyway. Seems like an issue with the Autolayout resolution or something related.
Additional information
Xcode: Version 10.2.1 (10E1001)
macOS version: macOS Mojave Version 10.14.5
Pod version: OfficeUIFabric (~> 0.2.0)
I appeciate your help on this Issue, and if you have any questions please let me know.
Thanks!
The text was updated successfully, but these errors were encountered: