infobip / mobile-messaging-react-native-plugin

Mobile Messaging SDK plugin for React Native projects
24 stars 4 forks source link

No such module 'MobileMessaging' in the version 4.0.0 #28

Closed lrusso closed 2 years ago

lrusso commented 2 years ago

Hello, I'm currently using the 3.1.0 version and when trying to update to the latest version, I'm getting a "No such module 'MobileMessaging'".

In the 3.1.0 version I added to the FRAMEWORK_SEARCH_PATHS to following path:

$(SRCROOT)/../node_modules/infobip-mobile-messaging-react-native-plugin/ios/Carthage/Build/iOS/

But in the 4.0.0 version that path does not exist.

Best regards and waiting for your comments, Leonardo

kas-kad commented 2 years ago

Hello, please provide information about your environment as complete as possible.

lrusso commented 2 years ago

In the package.json we have a "postinstall": "cd node_modules/infobip-mobile-messaging-react-native-plugin && npm run mm_build" that it's required in order to the Infobip plugin to work with the iOS App.

In the 3.1.0 version I added to the FRAMEWORK_SEARCH_PATHS to following path:

$(SRCROOT)/../node_modules/infobip-mobile-messaging-react-native-plugin/ios/Carthage/Build/iOS/

Ver310

But in the 4.0.0, the iOS folder is not there.

Ver400

Because of this, I got the "No such module 'MobileMessaging'" error message in the 4.0.0 version.

kas-kad commented 2 years ago

What is your Xcode version?

lrusso commented 2 years ago

12.4

kas-kad commented 2 years ago

Minimun required Xcode version for 4.0.0 is 12.5 (Readme)

lrusso commented 2 years ago

I just updated to xcode 12.5.1 and the issue remains:

error

And the Carthage folder doesn't have the Build/iOS framework folder like the 3.x version:

folder
kas-kad commented 2 years ago

What is your Carthage version?

lrusso commented 2 years ago

0.37.0

kas-kad commented 2 years ago

does it help if you change FRAMEWORK_SEARCH_PATHS to $(SRCROOT)/../node_modules/infobip-mobile-messaging-react-native-plugin/ios/Carthage/Build?

kas-kad commented 2 years ago

I just updated to xcode 12.5.1 and the issue remains:

did you try to reinstall the plugin after updating to newer Xcode?

lrusso commented 2 years ago

I just tried both suggestions and the issue remains.

kas-kad commented 2 years ago

What is your React Native version?

kas-kad commented 2 years ago

Have you followed this guide ?

lrusso commented 2 years ago

Yes, but it didn't work for me. My solution was to use $(SRCROOT)/../node_modules/infobip-mobile-messaging-react-native-plugin/ios/Carthage/Build/MobileMessaging.xcframework and 'Do Not Embed' in the MobileMessaging framework.