Failed to render instance of IB Designables
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.
for me it works to close xcode and reopen it again. No errors after.Thanks.