Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

iOS build error: warning: implicit conversion from 'long long' to 'NSInteger' (aka 'int') #41

Open
christianarduino opened this issue Jan 10, 2020 · 2 comments

Comments

@christianarduino
Copy link

christianarduino commented Jan 10, 2020

/Users/christian/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_statusbarcolor-0.2.3/ios/Classes/FlutterStatusbarcolorPlugin.m:15:37: warning: implicit conversion from 'long long' to 'NSInteger' (aka 'int') changes value from 38482458385 to -172247279 [-Wconstant-conversion] static NSInteger statusBarViewTag = 38482458385;

How I use plugin in my code:
FlutterStatusbarcolor.setStatusBarColor(Theme.of(context).accentColor);


flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15.2 19C57, locale it-IT)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
[✓] Android Studio (version 3.5)
[!] VS Code (version 1.41.1)
✗ Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (1 available)

@basnetjiten
Copy link

basnetjiten commented Jan 15, 2020

cast it to int insided FlutterStatusbarcolorPlugin.m
static NSInteger statusBarViewTag = (int)38482458385;

@codegrue
Copy link

codegrue commented May 6, 2020

ETA on this as it generates an XCode warning?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants