Failed to render instance of IB Designables

前端 未结 15 684
情深已故
情深已故 2020-12-07 12:09

I have an Objective-C and Swift mixed dynamic framework. And the mixed framework was linked with two pure Objective-C dynamic frameworks.

When I tried to mark any cl

15条回答
  •  情歌与酒
    2020-12-07 12:53

    I also experienced this on a Mac project and Xcode 7.3.1. In my case, the framework referenced in the Failed to Render error message was not related to drawing at all.

    Simply going to the target's General/Linked Frameworks and Libraries tab and changing the offending framework's Status from Required to Optional allowed the IBDesignables to update and draw properly in IB.

    optional status

提交回复
热议问题