9

I use OneSignal for push notification in Flutter. I can build it on devices and simulator but has the errors when archiving.

ld: framework not found Pods_OneSignalNotificationServiceExtension

akifarhan
  • 1,101
  • 10
  • 26
  • 3
    I already found the solution for this problem. I've set my iOS target for my project to iOS 12 and use `platform :ios, '12.0'` in my Podfile. So I changed my OneSignalNotifcationServiceExtension iOS target to iOS12 too instead of iOS 10 as suggested and it works like charm. – akifarhan Sep 10 '20 at 15:51
  • 1
    This!!!! Targeted 10.0 like the tutorial said, changed it to 11.0 to match and it worked a treat. Thanks. – Dunny Sep 16 '21 at 14:57
  • 1
    They really should fix the tutorial so this problem doesn't happen to more people -- also for me this issue only occurred when I attempted to archive my app to submit to apple. – Darrow Hartman Oct 29 '21 at 19:27

2 Answers2

2

I already found the solution for this problem. I've set my iOS target for my project to iOS 12 and use platform :ios, '12.0' in my Podfile. So I changed my OneSignalNotifcationServiceExtension iOS target to iOS12 too instead of iOS 10 as suggested and it works like charm.

akifarhan
  • 1,101
  • 10
  • 26
1

I solved the same issue in another way.

  1. close xcode project
  2. go to Android Studio
  3. flutter clean
  4. flutter pub get
  5. flutter build ios
  6. open Runner.xcoworkspace

done.

A_Rush
  • 368
  • 3
  • 14