No Such Module "Sinch" Xcode 9.1 Swift 4

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:

Sample Image

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 :

  1. Install the MORichNotification pod in your Notification Service Extension. And please make sure that you are using version 1.1.1.
  2. Add Bridging Header to your Notification Service Extension
    Sample Image
  3. Import MORichNotification in Bridging Header as shown in the image below:

Sample Image


  1. Use MORichNotification in your Notification Service Extension as shown below :
    Sample Image
    Let me know if still you are facing any issue.


Related Topics



Leave a reply



Submit