This error typically occurs when the Pushwoosh framework is not correctly linked to your Notification Service Extension target in your Podfile.
To resolve this, explicitly include the PushwooshXCFramework pod within the target definition for your Notification Service Extension.
Here's an example structure:
# Podfile
platform :ios, '13.0' # PushwooshXCFramework requires iOS 13.0 or higher
use_frameworks! # Use this if you are using Swift or dynamic frameworks
# Pods for your main application target
target 'YourAppTargetName' do
pod 'PushwooshXCFramework'
# ... other pods for your main target
end
# Pods for your Notification Service Extension target
target 'YourNotificationServiceExtensionTargetName' do
use_frameworks! # Ensure this is present if needed
pod 'PushwooshXCFramework' # Add this line specifically for the extension
end
Important:
- Replace
'YourAppTargetName'and'YourNotificationServiceExtensionTargetName'with the actual names of your targets. - Your
platform :iosvalue must be 13.0 or higher. The currentPushwooshXCFrameworkpodspec (7.2.0) declares an iOS deployment target of 13.0, so a lower value such as11.0will makepod installfail or leave the extension target unlinked. - After modifying your
Podfile, runpod install(orpod update) in your project directory. - Clean your build folder (Product > Clean Build Folder in Xcode) and try archiving again.
This ensures the Pushwoosh framework is linked to both your main app target and your notification service extension target.
Comments
0 comments
Please sign in to leave a comment.