articles icon indicating copy to clipboard operation
articles copied to clipboard

Had to update @rpath to make live previews work

Open simme opened this issue 5 years ago • 1 comments

Just a note on the article on previews, that might be specific to my project, but thought it might be worth sharing.

If you're trying to preview a view that's in a custom framework A, and A depends on another framework B it seems as though the linker in the preview can't find B, without some help.

I added @loader_path/.. to the @rpath of A and it started working.


Thanks for a life changing post! :D

simme avatar Oct 14 '19 12:10 simme

@simme Thank you for this insight. It helped me get the previews working in my project, at least for a while. It worked fine in one file, but when I started adding previews to another file, Xcode started acting up, claiming it can't find the 'MyViewA_Previews' type even though that did work previously. Anyway, thanks again.

ole avatar Oct 18 '19 23:10 ole