chabokpush / chabok-client-ios

Chabok Push iOS Client
7 stars 3 forks source link

No such module 'AdpPushClient' #12

Closed aminjalalian closed 6 years ago

aminjalalian commented 6 years ago

In all pages works except NotificationService.swift

screen shot 1397-05-25 at 16 20 55
Husseinhj commented 6 years ago

Did you added the Chabok framework pod to your target (NotificationExtentionService)?

Note :For each target, You should add your targets in pod. So your NotificationExtentionService need to added in pod to have access the Chabok framework.

target 'YourTarget' do
  use_frameworks!

  pod 'ChabokPush'

end
aminjalalian commented 6 years ago

yes I use it in AppDelegate.swift and it works except this page

Husseinhj commented 6 years ago

In your pod file you should add your pods also for your other targets. It’s work on your AppDelegate because of you by default add your app target in pod file, For use Pod libraries in your other target such as watch service or notification service you should add POD Target block config for your other target. An example for simple project with notification service your pod file should contain these values:

platform :ios, '9.0'

target 'YOUR_APP_TARGET' do
    use_frameworks!

    pod 'ChabokPush'

end

target 'NotificationExtentionServiceTarget' do
    use_frameworks!

    pod 'ChabokPush'

end

This pod config will linking your pods for each target of your project.

aminjalalian commented 6 years ago

It worked Thanks