-
Notifications
You must be signed in to change notification settings - Fork 11
How to fix issue after updating the version of Xcode (Module compiled with Swift x.x.x cannot be imported by the Swift y.y.y)
Alexander Boldyrev edited this page Nov 8, 2022
·
1 revision
Error can look like this (when you've updated Xcode from 12.x to 13.x version):
/platforms/ios/NotificationExtension/NotificationService.swift:4:8: Module compiled with Swift 5.3.2 cannot be imported by the Swift 5.5.1
compiler: Build/Products/Debug-iphoneos/MobileMessaging.framework/Modules/MobileMessaging.swiftmodule/armv7-apple-ios.swiftmodule
To solve it either reinstall the MobileMessaging plugin or rebuild MobileMessaging.xcframework using new Xcode version:
- Check that new Xcode Command Line Tools (
Xcode->Preferences->Command Line Tools) have the same version. - Check from command line that Xcode path is set to new Xcode (
xcode-select -p) - Delete folder
YourApp/plugins/com-infobip-plugins-mobilemessaging/libs/ios/Carthage - run script
YourApp/plugins/com-infobip-plugins-mobilemessaging/scripts/build_mobile_messaging_framework.shfrom your application folder (YourApp) - Replace
YourApp/platforms/ios/<Your App Name>/Plugins/com-infobip-plugins-mobilemessaging/MobileMessaging.xcframeworkwith one from folderYourApp/plugins/com-infobip-plugins-mobilemessaging/libs/ios/Carthage/Build
If you have any questions or suggestions, feel free to send an email to support@infobip.com or create an issue.
- Library events
- Server errors
- Users and installations
- Messages and notifications management
- Inbox
GeofencingDEPRECATED- Privacy settings
- In-app chat
- Migration guides
- Migration guide to version 8.3.x
- Migration guide to version 8.1.x
- Migration guide to version 7.9.x
- Migration guide to version 7.x.x
- Migration guide to version 6.2.x
- Migration guide to version 6.1.x
- Migration guide to version 6.x.x
- Migration guide to version 1.x.x
- Migration guide to version 2.2.x
- Migration guide to version 3.x.x
- Migration guide to version 4.x.x
- Migration guide to version 4.1.x
- Troubleshooting
- JSON Web Token (JWT) structure and generation example
- Trusted Domains Security