0

I'm trying to add OneSignal to my flutter project and I followed this tutorial

https://documentation.onesignal.com/v5.0/docs/flutter-sdk-setup

but when I run

pod install

it shows error message like below

!] Invalid `Podfile` file: undefined local variable or method `s' for #<Pod::Podfile:0x00007f86880b7fa0>.

# from /Users/macmini1/Projects/flutter/my_project/ios/Podfile:58
# -------------------------------------------
# target 'OneSignalNotificationServiceExtension' do
> s.dependency 'OneSignalDynamic', '>= 2.8.8', '< 3.0'
# end
# -------------------------------------------

Anybody helps?

esthrim
  • 1,790
  • 8
  • 28
  • 42
  • BTW That documentation doesn't appear to be up to date, the latest version is onesignal: ^1.0.2 – F-1 Oct 01 '18 at 12:38
  • yeah it very disappointing that OneSignal not updating its documentation for flutter. – esthrim Oct 02 '18 at 01:11

1 Answers1

0

i suggest you first off all update your pod using terminal from this url Updating to latest version of CocoaPods?, i am adding same pod "OneSignal" in my project and it's perfectly adding done.

Mayank Palotra
  • 127
  • 1
  • 8