firescript / nativescript-messenger

Access the phones native messaging utilities inside your app, without leaving your app.
MIT License
8 stars 6 forks source link

Importing nativescript messenger crashes iOS 12.5 #4

Closed ryan-peters closed 3 years ago

ryan-peters commented 3 years ago

After upgrading to iOS 12.5, and Xcode to 14.5, the app crashes on this line: var messenger = require("nativescript-messenger")

The error I receive is:

file: node_modules/nativescript-messenger/index.ios.js:3:67 JS ERROR Error: Class "MFMessageComposeViewController" referenced by type encoding not found at runtime.

Any thoughts on how to resolve?

ryan-peters commented 3 years ago

This can be solved by manually adding the MessageUI framework to the project. Add OTHER_LDFLAGS = $(inherited) -framework MessageUI to build.xcconfig, or manually link the framework in XCode.