No Such Module Sinch Xcode 9.1 Swift 4
I have done same thing with cocoapod and Bridge-Header and what I found is you don't need to import Sinch
in your header.
You can directly use it without importing. Check below screenshot:
Pod File:
target 'test' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'Alamofire', '~> 4.0'
pod 'SinchRTC'
# Pods for test
end
Bridge-Header File:
#import <Sinch/Sinch.h>
Check Example Project for more info.
Sinch Integration in swift project
The problem that was that I didn't add the Bridging-Header.h
#import <Sinch/Sinch.h>
Getting 'Include of non-modular header' while try to import Sinch in framework target
SinchRTC cocoapod 3.12.5 has recently been released, and the Sinch Framework is now packaged as a module framework inside the pod. Please give a try for 3.12.5 (and later versions), and see if the problem is solved. Thanks.
Unable to use pod in Notification service extension
First of all MORichNotification is meant only for the Notification Service Extension, I can see from your podfile that you are including it in your app's target too.
And also you can use MORichNotifications, only if you are using MoEngage-iOS-SDK in your app, as it will process only the notifications sent via MoEngage.
Now, follow the below steps to use MORichNotifications :
- Install the MORichNotification pod in your Notification Service Extension. And please make sure that you are using version 1.1.1.
- Add Bridging Header to your Notification Service Extension
- Import MORichNotification in Bridging Header as shown in the image below:
- Use MORichNotification in your Notification Service Extension as shown below :
Let me know if still you are facing any issue.
Related Topics
Storing a Variable When the App Is First Installed
Turn Swift Object into a JSON String
Swift:'(Nsobject, Anyobject)' Does Not Have a Member Named 'Subscript'
How to Add the Same Background Image to All Views in My iOS App Using Swift
Change Push Notifications Programmatically in Swift
Create Alert Function in All View Controllers - Swift
Retrieving Uiimage from Uiimageview in Swift
Clipping Sound with Opus on Android, Sent from iOS
Swift: Triggering Tableviewcell to Lead to a Link in a Uiwebview in Another Viewcontroller
Google Signin Cocoapods Deprecated
iOS Swift Avplayer Inside Uiview How to Make It Work
Allow Users to Send Messages to Multiple Users Simultaneously in a Messaging App
How to Change Pin Color in Mapkit Under the Same Annotationview (Swift3)
How to Properly Handle a Nil Uiapplication.Sharedapplication().Keywindow
Using Simple Ping in Swift (Ios)
Automatically Increase/Decrease Uilabelview Height in Uitableviewcell