Failed to render instance of IB Designables
I hit this error on a framework containing IBDesignables.
I had to add $(FRAMEWORK_SEARCH_PATHS)
to the LD_RUNPATH_SEARCH_PATHS
setting on my framework target.
After updating the runpath setting, building, and refreshing the view in the storyboard, the error went away. Didn't even have to clean the build folder.
for me it works to close xcode and reopen it again. No errors after. Thanks.
Finally, I solved this issue by adding $(CONFIGURATION_BUILD_DIR)
in the target's build settings' Runpath Search Paths
field.
Plus, there are some additional steps you might need to do with your Xcode.
- Clear Xcode derived data for the project. They are in
~/Library/Developer/Xcode/DerivedData
- Clean your current build by pressing ⌘⇧K
- Build your project
- In storyboard go to
Editor
menu and doRefresh All Views
; wait for build to be completed and errors should be gone
Credit to @Mojtaba
If you have the same issue building a Mac App, adding @loader_path/../Frameworks
to Runpath Search Paths
solved this for me.