I have a Swift Package that includes XCFrameworks which are exported as binary targets. If I include any of the product in Frameworks and Libraries
section of a notification service extension target, build succeeds while the extension crashes with dynamic linker error:
Library not loaded: @rpath/MoEngageRichNotification.framework/MoEngageRichNotification
My workaround is to include the same product in app target's Frameworks and Libraries
section and add @executable_path/../../Frameworks
to LD_RUNPATH_SEARCH_PATHS
settings for extension target.
Is this a known limitation of XCode when using SPM?