OneSignal-Flutter-SDK icon indicating copy to clipboard operation
OneSignal-Flutter-SDK copied to clipboard

[Bug]: Problem to build App in iOS

Open 70r63x opened this issue 4 months ago • 1 comments
trafficstars

What happened?

In iOS i have some errors when I build my app in Xcode. I use Flutter 3.29.0, onesignal_flutter 5.3.4 and Xcode 16.4. the error is:

  • /Users/userlaptop/.pub-cache/hosted/pub.dev/onesignal_flutter-5.3.4/ios/Classes/OSFlutterInAppMessages.m:104:47: Incompatible pointer types sending 'OSFlutterInAppMessages *' to parameter of type 'NSObject<OSInAppMessageClickListener> * _Nullable'
  • /Users/userlaptop/.pub-cache/hosted/pub.dev/onesignal_flutter-5.3.4/ios/Classes/OSFlutterLiveActivities.m:120:17: Comparison of distinct pointer types ('NSDictionary *' and 'NSNull * _Nonnull')

Steps to reproduce?

1. in pubspect.yaml be sure to have onesignal_flutter in 5.3.4
2. run flutter clean and then flutter pub get
3. run pod install
4. in Xcode run build

What did you expect to happen?

El Pod install work fine and de init configuration are well, but i expecta that when I do de build the app dont show this errors

OneSignal Flutter SDK version

5.3.4

Which platform(s) are affected?

  • [x] iOS
  • [ ] Android

Relevant log output


Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

70r63x avatar Jul 09 '25 17:07 70r63x