قالب وردپرس درنا توس
Home / IOS Development / Flutter taste for iOS gives SharedPreference errors when running

Flutter taste for iOS gives SharedPreference errors when running



Issue encountered while trying to run flavors for iOS using Build Schemas

   /Labs/Workspace/Flutter/camp-flutter/ios/Runner/GeneratedPluginRegistrant.m:6:9: fatal error:
& # 39; shared_preferences / SharedPreferencesPlugin.h & # 39; file not found
#import 
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Flutter Doctor output

  Summary of physicians (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.7.8 + hotfix.4, on Mac OS X 10.14.5 18F132, local en-IN)

[✓] Android Tool Chain - Develop for Android Devices (Android SDK Version 28.0.3)
[✓] Xcode - Develop for iOS and macOS (Xcode 1
0.3) [✓] iOS Tools - Develop for iOS devices [✓] Android Studio (version 3.4) [✓] US Code (Version 1.36.1) [✓] Connected device (1 available) • No problems found!

Additional Information

We use flavors and schemes for iOS build and use the command below to run applications

  fluttering race - flavor abcd - target lib / main / abcd_main.dart


Source link