라벨이 flutter인 게시물 표시

1 duplicate symbol for architecture arm64

이미지
  ## fix error (1 duplicate symbol for architecture arm64) xcode - targets(runner) - build settings    enable testibilty -> no   no common blocks -> no

[!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/CocoaPods-version.yml Response: URL using bad/illegal format or missing URL

 ## fix error (base) sungmin@sungminyunui-MacBookPro ios % pod install Analyzing dependencies firebase_analytics: Using Firebase SDK version '8.11.0' defined in 'firebase_core' firebase_auth: Using Firebase SDK version '8.11.0' defined in 'firebase_core' firebase_core: Using Firebase SDK version '8.11.0' defined in 'firebase_core' firebase_messaging: Using Firebase SDK version '8.11.0' defined in 'firebase_core' firebase_remote_config: Using Firebase SDK version '8.11.0' defined in 'firebase_core' [!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/CocoaPods-version.yml Response: URL using bad/illegal format or missing URL (base) sungmin@sungminyunui-MacBookPro ios % pod repo remove trunk     Removing spec repo `trunk` (base) sungmin@sungminyunui-MacBookPro ios % pod install --repo-update Updating local specs repositories   $ /usr/local/bin/git -C /Users/sungmin/.cocoapods/repos/cocoapo

ffi-1.15.5/lib/ffi/library.rb:275: [BUG] Bus Error at

 ## fix error (base) sungmin@sungminyunui-MacBookPro ios % gem install --user-install ffi -- --enable-libffi-alloc WARNING:  You don't have /Users/sungmin/.gem/ruby/2.6.0/bin in your PATH,           gem executables will not run. Building native extensions with: '--enable-libffi-alloc' This could take a while... Successfully installed ffi-1.15.5 Parsing documentation for ffi-1.15.5 Done installing documentation for ffi after 3 seconds 1 gem installed (base) sungmin@sungminyunui-MacBookPro ios % flutter build ios Changing current working directory to: /Users/sungmin/Downloads/Android/gabang2022/gabang The plugins `apple_sign_in, flutter_webview_plugin, system_alert_window` use a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs. If you are plugin author, ta

What is Difference between async and async* in Dart?

## What is Difference between async and async* in Dart? async async keyword to a function that does some work that might take a long time. It returns the result wrapped in the Future. Future<int> doSomeLongTask() async { await Future.delayed(const Duration(seconds: 1)); return 42; } You can get that result by awaiting the Future:</int> main() async { int result = await doSomeLongTask(); print(result); // prints '42' after waiting 1 second } async* async* keyword to make a function that returns a bunch of future values one at a time. The results are wrapped in a Stream. Stream<int> countForOneMinute() async* { for (int i = 1; i <= 60; i++) { await Future.delayed(const Duration(seconds: 1)); yield i; } } You can use await to wait for each value emitted by the Stream.</int> main() async { await for (int i in countForOneMinute()) { print(i); // prints 1 to 60, one integer per second } }

'Flutter/Flutter.h' file not found

## prepare  flutter clean rm ios/Podfile.lock pubspec.lock rm -rf ios/Pods ios/Runner.xcworkspace   ## Edit iOS/Podfile (Add Red) post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) target.build_configurations.each do |config| config.build_settings['ENABLE_BITCODE'] = 'NO' end end end   ## Install Pod  (base) sungmin@sungminyunui-MacBookPro bang1126 % flutter pub get Running "flutter pub get" in gabang1126... 6.6s (base) sungmin@sungminyunui-MacBookPro bang1126 % cd ios (base) sungmin@sungminyunui-MacBookPro ios % pod install Analyzing dependencies firebase_analytics: Using Firebase SDK version '6.33.0' defined in 'firebase_core' firebase_auth: Using Firebase SDK version '6.33.0' defined in 'firebase_core' firebase_core: Using Firebase SDK version '6.33.0' defined in 'firebase_core' firebase_messa