This error typically occurs when the Pushwoosh framework is not correctly linked to your Notification Service Extension target in your Podfile
.
To resolve this, ensure you explicitly include the PushwooshXCFramework
pod within the target definition for your Notification Service Extension in your Podfile
.
Here's an example structure:
# Podfile
platform :ios, '11.0' # Specify your platform and version
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. - After modifying your
Podfile
, runpod install
orpod update
in your project directory via the terminal. - Clean your build folder (Product > Clean Build Folder in Xcode) and try archiving again.
This ensures that the Pushwoosh framework is correctly linked to both your main app target and your notification service extension target.
Comments
0 comments
Please sign in to leave a comment.