CleverTap / CTNotificationService

A simple Notification Service Extension class to add media attachments to iOS 10 rich push notifications
MIT License
18 stars 15 forks source link

Library not found for -lCTNotificationService #25

Open rabindrachhachan opened 2 years ago

rabindrachhachan commented 2 years ago

ld: library not found for -lCTNotificationService clang: error: linker command failed with exit code 1 (use -v to see invocation)

I followed the installation guideline.

Platform: React Native OS: iOS

Pod file.

require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '11.0'

target 'SampleApp' do config = use_native_modules! use_react_native!( :path => config[:reactNativePath],

to enable hermes on iOS, change false to true and then install pods

:hermes_enabled => true

)

pod 'react-native-splash-screen', :path => '../node_modules/react-native-splash-screen' pod 'GoogleTagManager'

target 'SampleAppTests' do inherit! :complete

Pods for testing

end

post_install do |installer| react_native_post_install(installer) __apply_Xcode_12_5_M1_post_install_workaround(installer) end end

target 'NotificationService' do pod "CTNotificationService" end

I tried adding libCTNotificationService.a in buildPhase->Link binary with libraries. I hope Xcode not able to find the Path to CTNotificationService.

Can someone help me here?

girish-sol commented 1 year ago

I'm still facing this issue. Any idea how can we fix this?

@Aditi3