isurujn, 4 months ago I was under the impression things inside Preview Assets and Previews in code are not compiled when generating release builds in #Xcode. Why am I getting build time errors when archiving a project saying certain Preview Assets are missing 🫤 #SwiftUI #iOSDev
I was under the impression things inside Preview Assets and Previews in code are not compiled when generating release builds in #Xcode.
Why am I getting build time errors when archiving a project saying certain Preview Assets are missing 🫤
#SwiftUI #iOSDev
luckkerr, 4 months ago @isurujn previews are compiled (might be stripped from final binary with optimizations enabled). You have to explicitly wrap them in #if DEBUG to avoid compilation errors.
@isurujn previews are compiled (might be stripped from final binary with optimizations enabled). You have to explicitly wrap them in #if DEBUG to avoid compilation errors.
Add comment