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

Swift Compiler Error (Xcode): Var 'statusBarStyle' is not concurrency-safe because it is nonisolated global shared mutable state #163

Open
chathuranga1992 opened this issue Sep 26, 2024 · 0 comments

Comments

@chathuranga1992
Copy link

chathuranga1992 commented Sep 26, 2024

**After updating to IOS 18 & 16 simulators when I'm trying to flutter run following issue throwing,

_Already tried pubspec lock & podlock delete , flutter pub update, flutter clean && flutter pub get && cd ios && pod install --repo-update && cd .. && flutter run scenarios._**

Swift Compiler Error (Xcode): Var 'statusBarStyle' is not concurrency-safe because it is nonisolated global shared mutable state
/Users/buddikabandara/.pub-cache/hosted/pub.dev/add_2_calendar-3.0.1/ios/Classes/Add2CalendarPlugin.swift:12:4

Swift Compiler Error (Xcode): Main actor-isolated default value in a nonisolated context
/Users/buddikabandara/.pub-cache/hosted/pub.dev/add_2_calendar-3.0.1/ios/Classes/Add2CalendarPlugin.swift:12:4

Uncategorized (Xcode): Command SwiftEmitModule failed with a nonzero exit code

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

Screenshot 2024-09-26 at 10 27 53

My pubspec:-

name: powerroom_mobile_app
description: A new Flutter project.

publish_to: 'none'

#version: 1.2.33+1

environment:
sdk: '>=3.2.6 <4.0.0'

dependencies:
flutter:
sdk: flutter

flutter_page_view_indicator: ^0.0.5
cupertino_icons: ^1.0.2
dio: ^5.3.3
flutter_secure_storage: ^9.2.2
google_fonts: ^6.1.0
flutter_screenutil: ^5.6.0
cached_network_image: ^3.2.0
flutter_riverpod: ^2.0.2
hive_flutter: ^1.1.0
go_router: ^11.1.2
chewie: ^1.3.5
jiffy: ^6.3.0
file_picker: ^5.2.4
modal_bottom_sheet: ^3.0.0-pre
equatable: ^2.0.0
riverpod_infinite_scroll: ^1.0.9
google_maps_flutter: ^2.2.3
dashed_circular_progress_bar: ^0.0.4
upi_payment_qrcode_generator: ^1.2.0
intl: ^0.19.0
get_storage: ^2.1.1
timezone: ^0.9.1
flutter_html: ^3.0.0-alpha.6
titled_navigation_bar: 5.0.0-nullsafety.0
pull_to_refresh: ^2.0.0
add_2_calendar: ^3.0.1
path_provider: ^2.0.2
permission_handler: ^11.3.1
flutter_svg: ^2.0.7
flutter_dash: ^1.0.0
image_picker: ^0.8.7+5
image_cropper: ^1.4.0
dotted_line: ^3.1.0
fluttertoast: ^8.2.1
flutter_multi_formatter: ^2.11.0
webview_flutter: ^4.9.0
moment_dart: ^1.0.1
flutter_linkify: ^6.0.0
connectivity: ^3.0.6
csslib: ^0.17.3
carousel_slider: ^4.0.0
photo_view: ^0.14.0
video_thumbnail: ^0.5.3
fl_chart: ^0.63.0
syncfusion_flutter_barcodes: ^23.1.38
sleek_circular_slider: ^2.0.1
mask_text_input_formatter: ^2.4.0
eva_icons_flutter: ^3.1.0
flutter_typeahead: ^4.8.0
pod_player: ^0.2.2
info_popup: ^4.3.1
open_filex: ^4.5.0

flutter_local_notifications: ^15.1.1
firebase_messaging: ^14.7.10
firebase_core: ^2.4.1
fitted_gridview: ^1.0.1
flutter_staggered_grid_view: ^0.7.0
url_launcher: ^6.3.0
firebase_crashlytics: ^3.4.8

dependency_overrides:
url_launcher_ios: ^6.3.1
dev_dependencies:
flutter_test:
sdk: flutter

flutter_lints: ^2.0.0
pretty_dio_logger: ^1.1.1

flutter:

uses-material-design: true

assets:
- assets/data/
- assets/images/

fonts:
- family: FuturaPT
fonts:
- asset: assets/fonts/futura/FuturaPT-Bold.ttf
weight: 700
- asset: assets/fonts/futura/FuturaPT-ExtraBold.ttf
weight: 800
- asset: assets/fonts/futura/FuturaPT-Light.ttf
weight: 300
- asset: assets/fonts/futura/FuturaPT-Medium.ttf
weight: 400

my Flutter doctor output

Screenshot 2024-09-26 at 10 31 47

### my Flutter doctor -v output
[✓] Flutter (Channel stable, 3.24.3, on macOS 14.6.1 23G93 darwin-arm64, locale en-LK)
• Flutter version 3.24.3 on channel stable at /Users/buddikabandara/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 2663184aa7 (2 weeks ago), 2024-09-11 16:27:48 -0500
• Engine revision 36335019a8
• Dart version 3.5.3
• DevTools version 2.37.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
• Android SDK at /Users/buddikabandara/Library/Android/sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16A242d
• CocoaPods version 1.15.2

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)

[✓] VS Code (version 1.70.2)
• VS Code at /Users/buddikabandara/Downloads/Visual Studio Code.app/Contents
• Flutter extension version 3.60.0

[✓] Connected device (4 available)
• iPhone 16 Pro (mobile) • 2F20605C-8114-437F-9FDE-19BAB7A4A15A • ios • com.apple.CoreSimulator.SimRuntime.iOS-18-0 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 14.6.1 23G93 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.6.1 23G93 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 129.0.6668.60

[✓] Network resources
• All expected network resources are available.

• No issues found!

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

No branches or pull requests

1 participant