articles
articles copied to clipboard
Had to update @rpath to make live previews work
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 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.