Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firebase_analytics: No known class method for selector 'sessionIDWithCompletion:' #12694

Open
1 task done
abdessalem-aghrib opened this issue Apr 24, 2024 · 6 comments
Open
1 task done
Labels
Needs Attention This issue needs maintainer attention. platform: ios Issues / PRs which are specifically for iOS. plugin: analytics type: bug Something isn't working

Comments

@abdessalem-aghrib
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

Analytics

Which platforms are affected?

iOS

Description

Launching lib/main.dart on iPhone 15 Pro Max in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 67.5s
Failed to build iOS app
ARC Semantic Issue (Xcode): No known class method for selector 'sessionIDWithCompletion:'
/Users/apple/.pub-cache/hosted/pub.dev/firebase_analytics-10.10.3/ios/Classes/FLTFirebaseAnalyticsPlugin.m:90:16

Semantic Issue (Xcode): Use of undeclared identifier 'FIRConsentTypeAdPersonalization'
/Users/apple/.pub-cache/hosted/pub.dev/firebase_analytics-10.10.3/ios/Classes/FLTFirebaseAnalyticsPlugin.m:159:15

Semantic Issue (Xcode): Use of undeclared identifier 'FIRConsentTypeAdUserData'; did you mean 'FIRConsentTypeAdStorage'?
/Users/apple/.pub-cache/hosted/pub.dev/firebase_analytics-10.10.3/ios/Classes/FLTFirebaseAnalyticsPlugin.m:165:15

ARC Semantic Issue (Xcode): No known class method for selector 'initiateOnDeviceConversionMeasurementWithEmailAddress:'
/Users/apple/.pub-cache/hosted/pub.dev/firebase_analytics-10.10.3/ios/Classes/FLTFirebaseAnalyticsPlugin.m:190:18

ARC Semantic Issue (Xcode): No known class method for selector 'initiateOnDeviceConversionMeasurementWithPhoneNumber:'
/Users/apple/.pub-cache/hosted/pub.dev/firebase_analytics-10.10.3/ios/Classes/FLTFirebaseAnalyticsPlugin.m:193:18

Could not build the application for the simulator.
Error launching application on iPhone 15 Pro Max.

Reproducing the issue

Launching lib/main.dart on iPhone 15 Pro Max in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 67.5s
Failed to build iOS app
ARC Semantic Issue (Xcode): No known class method for selector 'sessionIDWithCompletion:'
/Users/apple/.pub-cache/hosted/pub.dev/firebase_analytics-10.10.3/ios/Classes/FLTFirebaseAnalyticsPlugin.m:90:16

Semantic Issue (Xcode): Use of undeclared identifier 'FIRConsentTypeAdPersonalization'
/Users/apple/.pub-cache/hosted/pub.dev/firebase_analytics-10.10.3/ios/Classes/FLTFirebaseAnalyticsPlugin.m:159:15

Semantic Issue (Xcode): Use of undeclared identifier 'FIRConsentTypeAdUserData'; did you mean 'FIRConsentTypeAdStorage'?
/Users/apple/.pub-cache/hosted/pub.dev/firebase_analytics-10.10.3/ios/Classes/FLTFirebaseAnalyticsPlugin.m:165:15

ARC Semantic Issue (Xcode): No known class method for selector 'initiateOnDeviceConversionMeasurementWithEmailAddress:'
/Users/apple/.pub-cache/hosted/pub.dev/firebase_analytics-10.10.3/ios/Classes/FLTFirebaseAnalyticsPlugin.m:190:18

ARC Semantic Issue (Xcode): No known class method for selector 'initiateOnDeviceConversionMeasurementWithPhoneNumber:'
/Users/apple/.pub-cache/hosted/pub.dev/firebase_analytics-10.10.3/ios/Classes/FLTFirebaseAnalyticsPlugin.m:193:18

Could not build the application for the simulator.
Error launching application on iPhone 15 Pro Max.

=================================
firebase_core: ^2.30.1
firebase_messaging: ^14.9.0
firebase_core_web: ^2.16.0
firebase_crashlytics: ^3.5.3
firebase_analytics: ^10.10.3

Firebase Core version

2.30.1

Flutter Version

3.19.6

Relevant Log Output

No response

Flutter dependencies

Expand Flutter dependencies snippet
Replace this line with the contents of your `flutter pub deps -- --style=compact`.

Additional context and comments

Dart 3.3.4 • DevTools 2.31.1

@abdessalem-aghrib abdessalem-aghrib added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Apr 24, 2024
@russellwheatley
Copy link
Member

Hi @abdessalem-aghrib, run:

flutter clean
flutter pub get 
flutter run

Something has gone wrong with your build.

@russellwheatley russellwheatley added blocked: customer-response Waiting for customer response, e.g. more information was requested. plugin: analytics platform: ios Issues / PRs which are specifically for iOS. and removed Needs Attention This issue needs maintainer attention. labels Apr 25, 2024
@abdessalem-aghrib
Copy link
Author

abdessalem-aghrib commented Apr 25, 2024 via email

@google-oss-bot google-oss-bot added Needs Attention This issue needs maintainer attention. and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. labels Apr 25, 2024
@russellwheatley
Copy link
Member

Try deleting Pods & Podfile.lock. If still not working, try creating a fresh, Flutter project with those dependencies. If you can reproduce, post it here and I will take a look.

@russellwheatley russellwheatley added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels Apr 26, 2024
@dev-kasibhatla
Copy link

This issue was affecting our builds.

Semantic Issue (Xcode): Use of undeclared identifier 'FIRConsentTypeAdPersonalization'
/Users/username/.pub-cache/hosted/pub.dev/firebase_analytics-10.9.0/ios/Classes/FLTFirebaseAnalyticsPlugin.m:159:15

Semantic Issue (Xcode): Use of undeclared identifier 'FIRConsentTypeAdUserData'; did you mean 'FIRConsentTypeAdStorage'?
/Users/username/.pub-cache/hosted/pub.dev/firebase_analytics-10.9.0/ios/Classes/FLTFirebaseAnalyticsPlugin.m:165:15

Environment:

  • Flutter version 3.19.0 on channel stable
  • Dart version 3.3.0
  • DevTools version 2.31.1
  • Xcode 15.3
  • iOS 17.4 (SDK)

Temporary solution
Reverting flutter package firebase_analytics to 10.8.10 fixes it for now. None of the versions >=10.9.0 are working with iOS. Seems to be a problem with consent mode v2.

This means that we cannot implement the changes required for consent mode v2. Hoping for a fix soon.

@abdessalem-aghrib
Copy link
Author

abdessalem-aghrib commented Apr 26, 2024 via email

@google-oss-bot google-oss-bot added Needs Attention This issue needs maintainer attention. and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. labels Apr 26, 2024
@abdessalem-aghrib
Copy link
Author

abdessalem-aghrib commented Apr 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Attention This issue needs maintainer attention. platform: ios Issues / PRs which are specifically for iOS. plugin: analytics type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants