Flutterfire: [firebase_remote_config] isDeveloperModeEnabled is deprecated

Created on 4 Apr 2020  Â·  10Comments  Â·  Source: FirebaseExtended/flutterfire

Seeing this compiler warning:

    /Users/anthony/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.3.0+3/ios/Classes/FirebaseRemoteConfigPlugin.m:52:
    65: warning: 'isDeveloperModeEnabled' is deprecated: This no longer needs to be set during development. Refer to documentation for
    additional details. [-Wdeprecated-declarations]
            [[NSNumber alloc] initWithBool:[firRemoteConfigSettings isDeveloperModeEnabled]];
                                                                    ^
    In module 'FirebaseRemoteConfig' imported from /Users/anthony/github/org/app/ios/Pods/Headers/Public/Firebase/Firebase.h:146:
    /Users/anthony/github/org/app/ios/Pods/FirebaseRemoteConfig/FirebaseRemoteConfig/Sources/Public/FIRRemoteConfig.h:141:37:
    note: property 'isDeveloperModeEnabled' is declared deprecated here
    @property(nonatomic, readonly) BOOL isDeveloperModeEnabled DEPRECATED_MSG_ATTRIBUTE(
                                        ^
    /Users/anthony/github/org/app/ios/Pods/FirebaseRemoteConfig/FirebaseRemoteConfig/Sources/Public/FIRRemoteConfig.h:141:60:
    note: 'isDeveloperModeEnabled' has been explicitly marked deprecated here
    @property(nonatomic, readonly) BOOL isDeveloperModeEnabled DEPRECATED_MSG_ATTRIBUTE(
                                                               ^

I am using firebase_remote_config: 0.3.0+3.

remote_config bug

Most helpful comment

I am successfully using Remote Config 0.3.1 and Flutter 1.17.4 -- I only have warnings. If you are having errors, then I'd start with steps like:

flutter clean
flutter pub get
flutter pub upgrade
flutter pub outdated

Then try your build again. Sometimes a pod update helps:

pushd ios
pod update
popd

All 10 comments

hii i have solved this issue use this one firebase_admob: ^0.5.5

Hi @awhitford
I'm glad you solved the issue
Thank you for letting me know

@iapicca I'm not using firebase_admob -- I'm unclear what @devlimba is referring to. This is still an issue.

Hi @awhitford
my bad, I misread and thought it was your answer.

Could you please provide your flutter doctor -v ,
your flutter run --verbose
and your pubspec.yaml
Thank you

I got same warnings from

  • firebaseRemoteConfigInfo.getConfigSettings().isDeveloperModeEnabled
  • FirebaseRemoteConfigSettings.Builder().setDeveloperModeEnabled
  • firebaseRemoteConfig.setConfigSettings
  • FirebaseRemoteConfig.getInstance().setDefault

Env:

$ flutter doctor -v
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.14.6 18G103, locale ja-JP)
    • Flutter version 1.12.13+hotfix.5 at /develop/flutter
    • Framework revision 27321ebbad (5 months ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0


[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /develop/android_sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /develop/android_sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2, Build version 10E125
    • CocoaPods version 1.8.4

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 44.0.2
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] Connected device (1 available)
    • AOSP on IA Emulator • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

• No issues found!

and the pubspec.yaml.

version: 1.0.4+7

environment:
  sdk: ">=2.3.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2

  # Provider
  provider: ^4.0.0

  tuple: ^1.0.3
  intl: ^0.16.0
  get_it: ^4.0.1
  jiffy: ^3.0.1
  # DB
  hive: ^1.4.1+1
  hive_flutter: ^0.3.0+2
  path_provider: ^1.6.7

  # Firebase
  firebase_core: ^0.4.4+3
  firebase_analytics: ^5.0.11
  firebase_remote_config: ^0.3.0+3

  package_info: '>=0.4.0+17 <2.0.0'
  url_launcher: ^5.4.5

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_driver:
    sdk: flutter

  # matcher
  matcher: ^0.12.6
  # mock
  mockito: ^3.0.0

  # network image test
  image_test_utils: ^1.0.0

  # for hive
  hive_generator: 0.7.0+2
  build_runner: ^1.9.0

  # icon generate
  flutter_launcher_icons: ^0.7.5

  # splash
  flutter_native_splash: ^0.1.9

# icon generate sources
flutter_icons:
  ios: true
  android: true
  image_path_ios: "assets/icon/icon1024.png"
  image_path_android: "assets/icon/icon.png"
  adaptive_icon_background: "assets/icon/ic_background.png"
  adaptive_icon_foreground: "assets/icon/ic_foreground.png"

# splash generate sources
flutter_native_splash:
  image: "assets/splash/splash.png"
  color: "97d4d9"

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  # assets:
  #  - images/a_dot_burr.jpeg
  #  - images/a_dot_ham.jpeg
  assets:
    - assets/

I atattched verbose log text file. If you need.
verbose.txt

I have the same problem, any solution?

I am using firebase_remote_config 0.3.0+3 and Flutter 1.17.1 and see 4 warnings generated:

    /Users/anthony/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.3.0+3/ios/Classes/FirebaseRemoteConfigPlugin.m:61:42:
    warning: 'initWithDeveloperModeEnabled:' is deprecated: This no longer needs to be set during development. Refer to documentation for
    additional details. [-Wdeprecated-declarations]
            [[FIRRemoteConfigSettings alloc] initWithDeveloperModeEnabled:debugMode];
                                             ^
    In module 'FirebaseRemoteConfig' imported from /Users/anthony/github/kozzet/kozzeted/ios/Pods/Headers/Public/Firebase/Firebase.h:146:
    /Users/anthony/github/kozzet/kozzeted/ios/Pods/FirebaseRemoteConfig/FirebaseRemoteConfig/Sources/Public/FIRRemoteConfig.h:148:5: note:
    'initWithDeveloperModeEnabled:' has been explicitly marked deprecated here
        DEPRECATED_MSG_ATTRIBUTE("This no longer needs to be set during development. Refer to "
        ^
    In module 'UIKit' imported from /Users/anthony/github/kozzet/kozzeted/ios/Pods/Target Support
    Files/firebase_remote_config/firebase_remote_config-prefix.pch:2:
    In module 'Foundation' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/System/Library/Frameworks/UIKit.f
    ramework/Headers/UIKit.h:8:
    In module 'CoreFoundation' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/System/Library/Frameworks/Foundat
    ion.framework/Headers/Foundation.h:6:
    In module 'Darwin' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/System/Library/Frameworks/CoreFou
    ndation.framework/Headers/CoreFoundation.h:16:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/AvailabilityMacros.h:
    182:64: note: expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'
                #define DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
                                                                   ^
    /Users/anthony/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.3.0+3/ios/Classes/FirebaseRemoteConfigPlugin.m:108:54
    : warning: 'activateFetched' is deprecated: Use -[FIRRemoteConfig activate] instead. [-Wdeprecated-declarations]
        BOOL newConfig = [[FIRRemoteConfig remoteConfig] activateFetched];
                                                         ^
    In module 'FirebaseRemoteConfig' imported from /Users/anthony/github/kozzet/kozzeted/ios/Pods/Headers/Public/Firebase/Firebase.h:146:
    /Users/anthony/github/kozzet/kozzeted/ios/Pods/FirebaseRemoteConfig/FirebaseRemoteConfig/Sources/Public/FIRRemoteConfig.h:245:25: note:
    'activateFetched' has been explicitly marked deprecated here
    - (BOOL)activateFetched DEPRECATED_MSG_ATTRIBUTE("Use -[FIRRemoteConfig activate] "
                            ^
    In module 'UIKit' imported from /Users/anthony/github/kozzet/kozzeted/ios/Pods/Target Support
    Files/firebase_remote_config/firebase_remote_config-prefix.pch:2:
    In module 'Foundation' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/System/Library/Frameworks/UIKit.f
    ramework/Headers/UIKit.h:8:
    In module 'CoreFoundation' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/System/Library/Frameworks/Foundat
    ion.framework/Headers/Foundation.h:6:
    In module 'Darwin' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/System/Library/Frameworks/CoreFou
    ndation.framework/Headers/CoreFoundation.h:16:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/AvailabilityMacros.h:
    182:64: note: expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'
                #define DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
                                                                   ^
    /Users/anthony/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.3.0+3/ios/Classes/FirebaseRemoteConfigPlugin.m:139:40
    : warning: 'allKeysFromSource:namespace:' is deprecated: Use -[FIRRemoteConfig allKeysFromSource:] instead. [-Wdeprecated-declarations]
      NSArray *defaultKeys = [remoteConfig allKeysFromSource:FIRRemoteConfigSourceDefault
                                           ^
    In module 'FirebaseRemoteConfig' imported from /Users/anthony/github/kozzet/kozzeted/ios/Pods/Headers/Public/Firebase/Firebase.h:146:
    /Users/anthony/github/kozzet/kozzeted/ios/Pods/FirebaseRemoteConfig/FirebaseRemoteConfig/Sources/Public/FIRRemoteConfig.h:300:5: note:
    'allKeysFromSource:namespace:' has been explicitly marked deprecated here
        DEPRECATED_MSG_ATTRIBUTE("Use -[FIRRemoteConfig allKeysFromSource:] instead.");
        ^
    In module 'UIKit' imported from /Users/anthony/github/kozzet/kozzeted/ios/Pods/Target Support
    Files/firebase_remote_config/firebase_remote_config-prefix.pch:2:
    In module 'Foundation' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/System/Library/Frameworks/UIKit.f
    ramework/Headers/UIKit.h:8:
    In module 'CoreFoundation' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/System/Library/Frameworks/Foundat
    ion.framework/Headers/Foundation.h:6:
    In module 'Darwin' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/System/Library/Frameworks/CoreFou
    ndation.framework/Headers/CoreFoundation.h:16:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/AvailabilityMacros.h:
    182:64: note: expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'
                #define DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
                                                                   ^
    4 warnings generated.

Same here, I am using firebase_remote_config 0.3.1 and Flutter 1.17.3 and see errors generated:

Xcode's output:
↳
/Users/inblinfotech/Documents/FlutterSdk/flutterSDK1/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.3.1/ios/Classes/FirebaseRemoteConfigPlugin.m:51:65: warning: 'isDeveloperModeEnabled' is deprecated: This no longer needs to be set during development. Refer to documentation for additional details. [-Wdeprecated-declarations]
[[NSNumber alloc] initWithBool:[firRemoteConfigSettings isDeveloperModeEnabled]];
^
In module 'FirebaseRemoteConfig' imported from /Volumes/Storage Drive/backup/My Books App/my-books-app---radu-trandafir/ios/Pods/Headers/Public/Firebase/Firebase.h:142:
/Volumes/Storage Drive/backup/My Books App/my-books-app---radu-trandafir/ios/Pods/FirebaseRemoteConfig/FirebaseRemoteConfig/Sources/Public/FIRRemoteConfig.h:141:37: note: property 'isDeveloperModeEnabled' is declared deprecated here
@property(nonatomic, readonly) BOOL isDeveloperModeEnabled DEPRECATED_MSG_ATTRIBUTE(
^
/Volumes/Storage Drive/backup/My Books App/my-books-app---radu-trandafir/ios/Pods/FirebaseRemoteConfig/FirebaseRemoteConfig/Sources/Public/FIRRemoteConfig.h:141:60: note: 'isDeveloperModeEnabled' has been explicitly marked deprecated here
@property(nonatomic, readonly) BOOL isDeveloperModeEnabled DEPRECATED_MSG_ATTRIBUTE(
^
In module 'UIKit' imported from /Volumes/Storage Drive/backup/My Books App/my-books-app---radu-trandafir/ios/Pods/Target Support Files/firebase_remote_config/firebase_remote_config-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/usr/include/AvailabilityMacros.h:182:64: note: expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'
#define DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
^
/Users/inblinfotech/Documents/FlutterSdk/flutterSDK1/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.3.1/ios/Classes/FirebaseRemoteConfigPlugin.m:60:42: warning: 'initWithDeveloperModeEnabled:' is deprecated: This no longer needs to be set during development. Refer to documentation for additional details. [-Wdeprecated-declarations]
[[FIRRemoteConfigSettings alloc] initWithDeveloperModeEnabled:debugMode];
^
In module 'FirebaseRemoteConfig' imported from /Volumes/Storage Drive/backup/My Books App/my-books-app---radu-trandafir/ios/Pods/Headers/Public/Firebase/Firebase.h:142:
/Volumes/Storage Drive/backup/My Books App/my-books-app---radu-trandafir/ios/Pods/FirebaseRemoteConfig/FirebaseRemoteConfig/Sources/Public/FIRRemoteConfig.h:148:5: note: 'initWithDeveloperModeEnabled:' has been explicitly marked deprecated here
DEPRECATED_MSG_ATTRIBUTE("This no longer needs to be set during development. Refer to "
^
In module 'UIKit' imported from /Volumes/Storage Drive/backup/My Books App/my-books-app---radu-trandafir/ios/Pods/Target Support Files/firebase_remote_config/firebase_remote_config-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/usr/include/AvailabilityMacros.h:182:64: note: expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'
#define DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
^
/Users/inblinfotech/Documents/FlutterSdk/flutterSDK1/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.3.1/ios/Classes/FirebaseRemoteConfigPlugin.m:107:54: warning: 'activateFetched' is deprecated: Use -[FIRRemoteConfig activate] instead. [-Wdeprecated-declarations]
BOOL newConfig = [[FIRRemoteConfig remoteConfig] activateFetched];
^
In module 'FirebaseRemoteConfig' imported from /Volumes/Storage Drive/backup/My Books App/my-books-app---radu-trandafir/ios/Pods/Headers/Public/Firebase/Firebase.h:142:
/Volumes/Storage Drive/backup/My Books App/my-books-app---radu-trandafir/ios/Pods/FirebaseRemoteConfig/FirebaseRemoteConfig/Sources/Public/FIRRemoteConfig.h:245:25: note: 'activateFetched' has been explicitly marked deprecated here
- (BOOL)activateFetched DEPRECATED_MSG_ATTRIBUTE("Use -[FIRRemoteConfig activate] "
^
In module 'UIKit' imported from /Volumes/Storage Drive/backup/My Books App/my-books-app---radu-trandafir/ios/Pods/Target Support Files/firebase_remote_config/firebase_remote_config-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/usr/include/AvailabilityMacros.h:182:64: note: expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'
#define DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
^
/Users/inblinfotech/Documents/FlutterSdk/flutterSDK1/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.3.1/ios/Classes/FirebaseRemoteConfigPlugin.m:138:40: warning: 'allKeysFromSource:namespace:' is deprecated: Use -[FIRRemoteConfig allKeysFromSource:] instead. [-Wdeprecated-declarations]
NSArray *defaultKeys = [remoteConfig allKeysFromSource:FIRRemoteConfigSourceDefault
^
In module 'FirebaseRemoteConfig' imported from /Volumes/Storage Drive/backup/My Books App/my-books-app---radu-trandafir/ios/Pods/Headers/Public/Firebase/Firebase.h:142:
/Volumes/Storage Drive/backup/My Books App/my-books-app---radu-trandafir/ios/Pods/FirebaseRemoteConfig/FirebaseRemoteConfig/Sources/Public/FIRRemoteConfig.h:300:5: note: 'allKeysFromSource:namespace:' has been explicitly marked deprecated here
DEPRECATED_MSG_ATTRIBUTE("Use -[FIRRemoteConfig allKeysFromSource:] instead.");
^
In module 'UIKit' imported from /Volumes/Storage Drive/backup/My Books App/my-books-app---radu-trandafir/ios/Pods/Target Support Files/firebase_remote_config/firebase_remote_config-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/usr/include/AvailabilityMacros.h:182:64: note: expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'
#define DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
^
4 warnings generated.
/Volumes/Storage Drive/backup/My Books App/my-books-app---radu-trandafir/ios/Runner/AppDelegate.swift:100:10: error: overriding declaration requires an 'override' keyword
func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
^
override
Flutter.FlutterAppDelegate:109:15: note: overridden declaration is here
open func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void)
^
/Volumes/Storage Drive/backup/My Books App/my-books-app---radu-trandafir/ios/Runner/AppDelegate.swift:10:46: error: redundant conformance of 'AppDelegate' to protocol 'UNUserNotificationCenterDelegate'
@objc class AppDelegate: FlutterAppDelegate, UNUserNotificationCenterDelegate {
^
/Volumes/Storage Drive/backup/My Books App/my-books-app---radu-trandafir/ios/Runner/AppDelegate.swift:10:13: note: 'AppDelegate' inherits conformance to protocol 'UNUserNotificationCenterDelegate' from superclass here
@objc class AppDelegate: FlutterAppDelegate, UNUserNotificationCenterDelegate {
^
note: Using new build system
note: Planning build
note: Constructing build description

Could not build the precompiled application for the device.

I am successfully using Remote Config 0.3.1 and Flutter 1.17.4 -- I only have warnings. If you are having errors, then I'd start with steps like:

flutter clean
flutter pub get
flutter pub upgrade
flutter pub outdated

Then try your build again. Sometimes a pod update helps:

pushd ios
pod update
popd

@awhitford Yes, you're right the steps you mentioned above it helps me. Thank You.

Was this page helpful?
0 / 5 - 0 ratings