PostHog / posthog-flutter

PostHog Flutter SDK
https://posthog.com/docs/libraries/flutter
MIT License
55 stars 37 forks source link

ARC Semantic Issue (Xcode): No visible @interface for 'PosthogFlutterPlugin' declares the selector 'reloadFeatureFlags:result:' #33

Closed coder-Aayush closed 1 year ago

coder-Aayush commented 1 year ago

I have followed getting started guide and added configuration code for iOS. But facing issue while compiling. Flutter version: 3.7.5

posthog_flutter: 3.0.4

Configuration ```plist com.posthog.posthog.API_KEY **** com.posthog.posthog.POSTHOG_HOST https://app.posthog.com com.posthog.posthog.TRACK_APPLICATION_LIFECYCLE_EVENTS ```
Flutter Doctor ```dart Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.7.5, on macOS 13.1 22C65 darwin-arm64, locale en-NP) [✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) [✓] Xcode - develop for iOS and macOS (Xcode 14.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.2) [✓] VS Code (version 1.76.1) [✓] Connected device (3 available) [✓] HTTP Host Availability • No issues found! ```
Error Log ```dart Launching lib/main_development.dart on iPhone 14 in debug mode... main_development.dart:1 Xcode build done. 6.0s Failed to build iOS app ARC Semantic Issue (Xcode): No visible @interface for 'PosthogFlutterPlugin' declares the selector 'reloadFeatureFlags:result:' /Users/.pub-cache/hosted/pub.dev/posthog_flutter-3.0.4/ios/Classes/PosthogFlutterPlugin.m:119:10 Could not build the application for the simulator. Error launching application on iPhone 14. Exited ```
ajsharp commented 1 year ago

Seeing same thing here.

ajsharp commented 1 year ago

From posthog community support:

hi there! please roll back to pre 3.0.0 since that includes the breaking changes for feature flags.

dio-ralali commented 1 year ago

Facing the same issue here.

flutter doctor -v result :

CleanShot 2023-04-05 at 13 47 33@2x
FantaMagier commented 1 year ago

I need the feature flag functions so please fix the error. Thank You!

dio-ralali commented 1 year ago

Any updates on this issue? I really need the feature flag functions in my Flutter App.

mgesmundo commented 1 year ago

+1

harshmittal2810 commented 1 year ago

@fuziontech Anyone from your team, can please check this ? We have been waiting for this from long time.

benjackwhite commented 1 year ago

Sorry for the delay here. Looks like I can see where the issue might be and will prioritise getting a fix out