搭建Flutter Engine源码编译环境

文章目录

  • 资料
  • 编译环境
  • 一些命令
  • 查看项目中用到的flutter环境
  • 出现的问题
    • GOMA usage was specified but can't be found, falling back to local builds. Set the GOMA_DIR environment variable to fix GOMA.
    • src/third_party/dart/third_party/pkg/stagehand (ERROR)
  • ninja -C ios_debug_sim_unopt
  • ninja -C out/host_profile -j 6
  • 构建编译产物
    • 编译Android产物
    • 编译IOS产物
  • 使用自定义的Flutter Engine环境
    • IOS部分
    • 设置断点

资料

搭建Flutter Engine源码编译环境
2021-11-01 Flutter Engine编译与调试
Mac OS编译V8引擎源码

编译环境

编译环境真的很重要
Mac OS X (MacOs Big Sur 11.4)
Xcode (Version 11.7 (11E801a))
Android Studio (Android Studio Arctic Fox | 2020.3.1)

Flutter 2.0.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 1d9032c7e1 (9 months ago) • 2021-04-29 17:37:58 -0700
Engine • revision 05e680e202
Tools • Dart 2.12.3

一些命令

flutter --version
flutter channel stable
flutter-engine

# 构建IOS设备使用的引擎
# 真机debug版本
./gn --ios --unoptimized
# 真机release版本(日常开发使用,如果我们要自定义引擎)
./gn --ios --unoptimized --runtime-momde=release
# 模拟器版本
./gn --ios --simulator --unoptimized
# 主机端(Mac)构建
./gn --unoptimized


ninja -C out/host_debug_unopt && ninja -C out/ios_debug_unopt && ninja -C out/ios_release_unopt && ninja -C out/ios_debug_sim_unopt

搭建Flutter Engine源码编译环境_第1张图片

solutions = [
  {
    "managed": False,
    "name": "src/flutter",
    //此处url需改为真实的个人或者公司引擎地址
    "url": "[email protected]:/engine.git[@commit id]",
    "custom_deps": {},
    "deps_file": "DEPS",
    "safesync_url": "",
  },
]

搭建Flutter Engine源码编译环境_第2张图片

ninja -c ios_debug_upot

查看项目中用到的flutter环境

// This is a generated file; do not edit or check into version control.
FLUTTER_ROOT=/Users/flannery/.terra/caches/sdk/2.0.6/flutter
FLUTTER_APPLICATION_PATH=/Users/flannery/Desktop/yy/app-plus
FLUTTER_TARGET=lib/main.dart
FLUTTER_BUILD_DIR=build
SYMROOT=${SOURCE_ROOT}/../build/ios
FLUTTER_BUILD_NAME=1.0.0
FLUTTER_BUILD_NUMBER=1
DART_OBFUSCATION=false
TRACK_WIDGET_CREATION=false
TREE_SHAKE_ICONS=false
PACKAGE_CONFIG=.packages

出现的问题

GOMA usage was specified but can’t be found, falling back to local builds. Set the GOMA_DIR environment variable to fix GOMA.

src/third_party/dart/third_party/pkg/stagehand (ERROR)

注释掉, 或换一个有用的源文件(只要能找到仓库就行)

 flannery@zhaojiandeMacBook-Pro  ~/Library/Android/flutter-engine/engine  gclient sync
90>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "https://dart.googlesource.com/stagehand.git" "/Users/flannery/Library/Android/flutter-engine/engine/src/third_party/dart/third_party/pkg/_gclient_stagehand_9cdku08m"' in /Users/flannery/Library/Android/flutter-engine/engine failed; will retry after a short nap...
90>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "https://dart.googlesource.com/stagehand.git" "/Users/flannery/Library/Android/flutter-engine/engine/src/third_party/dart/third_party/pkg/_gclient_stagehand_9cdku08m"' in /Users/flannery/Library/Android/flutter-engine/engine failed; will retry after a short nap...
90>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "https://dart.googlesource.com/stagehand.git" "/Users/flannery/Library/Android/flutter-engine/engine/src/third_party/dart/third_party/pkg/_gclient_stagehand_9cdku08m"' in /Users/flannery/Library/Android/flutter-engine/engine failed; will retry after a short nap...
90>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "https://dart.googlesource.com/stagehand.git" "/Users/flannery/Library/Android/flutter-engine/engine/src/third_party/dart/third_party/pkg/_gclient_stagehand_9cdku08m"' in /Users/flannery/Library/Android/flutter-engine/engine failed; will retry after a short nap...
Syncing projects: 100% (106/106) src/third_party/dart/third_party/pkg/stagehand
src/third_party/dart/third_party/pkg/stagehand (ERROR)
----------------------------------------
[0:00:04] Started.
[0:00:04]

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://dart.googlesource.com/stagehand.git /Users/flannery/Library/Android/flutter-engine/engine/src/third_party/dart/third_party/pkg/_gclient_stagehand_9cdku08m' in '/Users/flannery/Library/Android/flutter-engine/engine'

[0:00:04] Cloning into '/Users/flannery/Library/Android/flutter-engine/engine/src/third_party/dart/third_party/pkg/_gclient_stagehand_9cdku08m'...
[0:00:05] fatal: remote error: Git repository not found
[0:00:05]
________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://dart.googlesource.com/stagehand.git /Users/flannery/Library/Android/flutter-engine/engine/src/third_party/dart/third_party/pkg/_gclient_stagehand_9cdku08m' in '/Users/flannery/Library/Android/flutter-engine/engine' attempt 2 / 4

[0:00:05] Cloning into '/Users/flannery/Library/Android/flutter-engine/engine/src/third_party/dart/third_party/pkg/_gclient_stagehand_9cdku08m'...
[0:00:06] fatal: remote error: Git repository not found
[0:00:07]
________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://dart.googlesource.com/stagehand.git /Users/flannery/Library/Android/flutter-engine/engine/src/third_party/dart/third_party/pkg/_gclient_stagehand_9cdku08m' in '/Users/flannery/Library/Android/flutter-engine/engine' attempt 3 / 4

[0:00:07] Cloning into '/Users/flannery/Library/Android/flutter-engine/engine/src/third_party/dart/third_party/pkg/_gclient_stagehand_9cdku08m'...
[0:00:08] fatal: remote error: Git repository not found
[0:00:10]
________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://dart.googlesource.com/stagehand.git /Users/flannery/Library/Android/flutter-engine/engine/src/third_party/dart/third_party/pkg/_gclient_stagehand_9cdku08m' in '/Users/flannery/Library/Android/flutter-engine/engine' attempt 4 / 4

[0:00:10] Cloning into '/Users/flannery/Library/Android/flutter-engine/engine/src/third_party/dart/third_party/pkg/_gclient_stagehand_9cdku08m'...
[0:00:10] fatal: remote error: Git repository not found
Traceback (most recent call last):
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/gclient_scm.py", line 1046, in _Clone
    self._Run(clone_cmd, options, cwd=self._root_dir, retry=True,
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/gclient_scm.py", line 1386, in _Run
    gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/gclient_utils.py", line 681, in CheckCallAndFilter
    raise subprocess2.CalledProcessError(
subprocess2.CalledProcessError: Command 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://dart.googlesource.com/stagehand.git /Users/flannery/Library/Android/flutter-engine/engine/src/third_party/dart/third_party/pkg/_gclient_stagehand_9cdku08m' returned non-zero exit status 128 in /Users/flannery/Library/Android/flutter-engine/engine
[0:00:14] _____ Conflicting directory found in /Users/flannery/Library/Android/flutter-engine/engine/src/third_party/dart/third_party/pkg/stagehand. Moving to /Users/flannery/Library/Android/flutter-engine/engine/_bad_scm/src/third_party/dart/third_party/pkg/stagehandc2tr0rgj.
----------------------------------------


Warnings:
Conflicting directory /Users/flannery/Library/Android/flutter-engine/engine/src/third_party/dart/third_party/pkg/stagehand moved to /Users/flannery/Library/Android/flutter-engine/engine/_bad_scm/src/third_party/dart/third_party/pkg/stagehandc2tr0rgj.
Traceback (most recent call last):
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/gclient_scm.py", line 546, in update
    self._Clone(revision, url, options)
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/gclient_scm.py", line 1046, in _Clone
    self._Run(clone_cmd, options, cwd=self._root_dir, retry=True,
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/gclient_scm.py", line 1386, in _Run
    gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/gclient_utils.py", line 681, in CheckCallAndFilter
    raise subprocess2.CalledProcessError(
subprocess2.CalledProcessError: Command 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://dart.googlesource.com/stagehand.git /Users/flannery/Library/Android/flutter-engine/engine/src/third_party/dart/third_party/pkg/_gclient_stagehand_9cdku08m' returned non-zero exit status 128 in /Users/flannery/Library/Android/flutter-engine/engine

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/flannery/.vpython-root/1cea7c/lib/python3.8/shutil.py", line 791, in move
    os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/flannery/Library/Android/flutter-engine/engine/src/third_party/dart/third_party/pkg/stagehand' -> '/Users/flannery/Library/Android/flutter-engine/engine/_bad_scm/src/third_party/dart/third_party/pkg/stagehandc2tr0rgj/stagehand'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/metrics.py", line 291, in print_notice_and_exit
    yield
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/gclient.py", line 3235, in 
    sys.exit(main(sys.argv[1:]))
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/gclient.py", line 3221, in main
    return dispatcher.execute(OptionParser(), argv)
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/subcommand.py", line 252, in execute
    return command(parser, args[1:])
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/gclient.py", line 2775, in CMDsync
    ret = client.RunOnDeps('update', args)
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/gclient.py", line 1814, in RunOnDeps
    work_queue.flush(revision_overrides, command, args, options=self._options,
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/gclient_utils.py", line 976, in flush
    reraise(e[0], e[1], e[2])
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/gclient_utils.py", line 67, in reraise
    raise value
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/gclient_utils.py", line 1053, in run
    self.item.run(*self.args, **self.kwargs)
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/gclient.py", line 950, in run
    self._got_revision = self._used_scm.RunCommand(command, options, args,
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/gclient_scm.py", line 127, in RunCommand
    return getattr(self, command)(options, args, file_list)
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/gclient_scm.py", line 548, in update
    self._DeleteOrMove(options.force)
  File "/Users/flannery/Library/Android/flutter-engine/depot_tools/gclient_scm.py", line 202, in _DeleteOrMove
    shutil.move(self.checkout_path, dest_path)
  File "/Users/flannery/.vpython-root/1cea7c/lib/python3.8/shutil.py", line 811, in move
    copy_function(src, real_dst)
  File "/Users/flannery/.vpython-root/1cea7c/lib/python3.8/shutil.py", line 435, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/Users/flannery/.vpython-root/1cea7c/lib/python3.8/shutil.py", line 264, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/flannery/Library/Android/flutter-engine/engine/src/third_party/dart/third_party/pkg/stagehand'

https://dart.googlesource.com/stagehand.git

注释掉
或重新赋值dart-git

# This file is automatically processed to create .DEPS.git which is the file

# that gclient uses under git.

#

# See http://code.google.com/p/chromium/wiki/UsingGit

#

# To test manually, run:

#   python tools/deps2git/deps2git.py -o .DEPS.git -w <gclientdir>

# where <gcliendir> is the absolute path to the directory containing the

# .gclient file (the parent of 'src').

#

# Then commit .DEPS.git locally (gclient doesn't like dirty trees) and run

#   gclient sync..

# Verify the thing happened you wanted. Then revert your .DEPS.git change

# DO NOT CHECK IN CHANGES TO .DEPS.git upstream. It will be automatically

# updated by a bot when you modify this one.

#

# When adding a new dependency, please update the top-level .gitignore file

# to list the dependency's destination directory.

vars = {
  'chromium_git': 'https://chromium.googlesource.com',
  'swiftshader_git': 'https://swiftshader.googlesource.com',
  'dart_git': 'https://dart.googlesource.com',
  'dart_archive': 'https://github.com/dart-archive',
  'flutter_git': 'https://flutter.googlesource.com',
  'fuchsia_git': 'https://fuchsia.googlesource.com',
  'github_git': 'https://github.com',
  'skia_git': 'https://skia.googlesource.com',

  # OCMock is for testing only so there is no google clone

  'ocmock_git': 'https://github.com/erikdoe/ocmock.git',
  'skia_revision': 'bbc5288f2bb1a7951bbacedb9ab3d131147edb89',

  # When updating the Dart revision, ensure that all entries that are

  # dependencies of Dart are also updated to match the entries in the

  # Dart SDK's DEPS file for that revision of Dart. The DEPS file for

  # Dart is: https://github.com/dart-lang/sdk/blob/master/DEPS.

  # You can use //tools/dart/create_updated_flutter_deps.py to produce

  # updated revision list of existing dependencies.

  'dart_revision': '7c8c6b3053d0ba91fcf15f81c45650184dc27e88',

  # WARNING: DO NOT EDIT MANUALLY

  # The lines between blank lines above and below are generated by a script. See create_updated_flutter_deps.py

  'dart_boringssl_gen_rev': 'aaac86738c4f2d1bdf00f54d197f50f247ffee04',
  'dart_boringssl_rev': '4dfd5af70191b068aebe567b8e29ce108cee85ce',
  'dart_clock_rev': 'a494269254ba978e7ef8f192c5f7fec3fc05b9d3',
  'dart_collection_rev': 'e4bb038ce2d8e66fb15818aa40685c68d53692ab',
  'dart_dart_style_tag': '1.3.11',
  'dart_http_retry_tag': '0.1.1',
  'dart_http_throttle_tag': '1.0.2',
  'dart_intl_tag': '0.17.0-nullsafety',
  'dart_linter_tag': '0.1.129',
  'dart_oauth2_tag': '1.6.0',
  'dart_protobuf_rev': '0d03fd588df69e9863e2a2efc0059dee8f18d5b2',
  'dart_pub_rev': '0e657414a472e74ca5dd76ae0db50cc060251dec',
  'dart_resource_rev': '6b79867d0becf5395e5819a75720963b8298e9a7',
  'dart_root_certificates_rev': '7e5ec82c99677a2e5b95ce296c4d68b0d3378ed8',
  'dart_shelf_packages_handler_tag': '2.0.0',
  'dart_shelf_proxy_tag': '0.1.0+7',
  'dart_shelf_static_rev': '779a6e99b320ce9ed4ff6b88bd0cdc40ea5c62c4',
  'dart_sse_tag': '9a486d058a17e880afa9cc1c3c0dd8bad726bcbc',
  'dart_stack_trace_tag': '6788afc61875079b71b3d1c3e65aeaa6a25cbc2f',
  'dart_stream_channel_tag': 'd7251e61253ec389ee6e045ee1042311bced8f1d',
  'dart_typed_data_tag': 'f94fc57b8e8c0e4fe4ff6cfd8290b94af52d3719',
  'dart_watcher_rev': '14706140b3670ca1dfeca73480bdd3091b728ce9',

  'ocmock_tag': 'v3.7.1',

  # Build bot tooling for iOS

  'ios_tools_revision': '69b7c1b160e7107a6a98d948363772dc9caea46f',

  # Checkout Android dependencies only on platforms where we build for Android targets.

  'download_android_deps': 'host_os == "mac" or host_os == "linux"',

  # Checkout Windows dependencies only if we are building on Windows.

  'download_windows_deps' : 'host_os == "win"',

  # Checkout Linux dependencies only when building on Linux.

  'download_linux_deps': 'host_os == "linux"',

  # An LLVM backend needs LLVM binaries and headers. To avoid build time

  # increases we can use prebuilts. We don't want to download this on every

  # CQ/CI bot nor do we want the average Dart developer to incur that cost.

  # So by default we will not download prebuilts. This varible is needed in

  # the flutter engine to ensure that Dart gn has access to it as well.

  "checkout_llvm": False,
}

gclient_gn_args_file = 'src/third_party/dart/build/config/gclient_args.gni'
gclient_gn_args = [
  'checkout_llvm'
]

# Only these hosts are allowed for dependencies in this DEPS file.

# If you need to add a new host, contact chrome infrastructure team.

allowed_hosts = [
  'chromium.googlesource.com',
  'flutter.googlesource.com',
  'fuchsia.googlesource.com',
  'github.com',
  'skia.googlesource.com',
]

deps = {
  'src': 'https://github.com/flutter/buildroot.git' + '@' + 'e664d190b83ba911194a8a9517ae5f8bba3fcfaa',

   # Fuchsia compatibility

   #

   # The dependencies in this section should match the layout in the Fuchsia gn

   # build. Eventually, we'll manage these dependencies together with Fuchsia

   # and not have to specific specific hashes.

  'src/third_party/benchmark':
   Var('fuchsia_git') + '/third_party/benchmark' + '@' + 'a779ffce872b4c811beef482e18bd0b63626aa42',

  'src/third_party/googletest':
   Var('fuchsia_git') + '/third_party/googletest' + '@' + '3fef9015bfe7617d57806cd7c73a653b28559fae',

  'src/third_party/rapidjson':
   Var('fuchsia_git') + '/third_party/rapidjson' + '@' + 'ef3564c5c8824989393b87df25355baf35ff544b',

  'src/third_party/harfbuzz':
   Var('fuchsia_git') + '/third_party/harfbuzz' + '@' + '9c55f4cf3313d68d68f68419e7a57fb0771fcf49',

  'src/third_party/libcxx':
   Var('fuchsia_git') + '/third_party/libcxx' + '@' + '7524ef50093a376f334a62a7e5cebf5d238d4c99',

  'src/third_party/libcxxabi':
   Var('fuchsia_git') + '/third_party/libcxxabi' + '@' + '74d1e602c76350f0760bf6907910e4f3a4fccffe',

  'src/third_party/glfw':
   Var('fuchsia_git') + '/third_party/glfw' + '@' + '999f3556fdd80983b10051746264489f2cb1ef16',

   # Chromium-style

   #

   # As part of integrating with Fuchsia, we should eventually remove all these

   # Chromium-style dependencies.

  'src/ios_tools':
   Var('chromium_git') + '/chromium/src/ios.git' + '@' + Var('ios_tools_revision'),

  'src/third_party/icu':
   Var('chromium_git') + '/chromium/deps/icu.git' + '@' + 'c2a4cae149aae7fd30c4cbe3cf1b30df03b386f1',

  'src/third_party/khronos':
   Var('chromium_git') + '/chromium/src/third_party/khronos.git' + '@' + '7122230e90547962e0f0c627f62eeed3c701f275',

  'src/third_party/boringssl':
   Var('github_git') + '/dart-lang/boringssl_gen.git' + '@' + Var('dart_boringssl_gen_rev'),

  'src/third_party/boringssl/src':
   'https://boringssl.googlesource.com/boringssl.git' + '@' + Var('dart_boringssl_rev'),

  'src/third_party/dart':
   Var('dart_git') + '/sdk.git' + '@' + Var('dart_revision'),

  # WARNING: Unused Dart dependencies in the list below till "WARNING:" marker are removed automatically - see create_updated_flutter_deps.py.

  'src/third_party/dart/third_party/pkg/args':
   Var('dart_git') + '/args.git@2c6a221f45e4e0ef447b5d09101bf8a52e1ccd36',

  'src/third_party/dart/third_party/pkg/async':
   Var('dart_git') + '/async.git@695b3ac280f107c84adf7488743abfdfaaeea68f',

  'src/third_party/dart/third_party/pkg/bazel_worker':
   Var('dart_git') + '/bazel_worker.git@060c55a933d39798681a4f533b161b81dc48d77e',

  'src/third_party/dart/third_party/pkg/boolean_selector':
   Var('dart_git') + '/boolean_selector.git@665e6921ab246569420376f827bff4585dff0b14',

  'src/third_party/dart/third_party/pkg/charcode':
   Var('dart_git') + '/charcode.git@bcd8a12c315b7a83390e4865ad847ecd9344cba2',

  'src/third_party/dart/third_party/pkg/cli_util':
   Var('dart_git') + '/cli_util.git@50cc840b146615899e97b892578848401b2028d5',

  'src/third_party/dart/third_party/pkg/clock':
   Var('dart_git') + '/clock.git' + '@' + Var('dart_clock_rev'),

  'src/third_party/dart/third_party/pkg/collection':
   Var('dart_git') + '/collection.git' + '@' + Var('dart_collection_rev'),

  'src/third_party/dart/third_party/pkg/convert':
   Var('dart_git') + '/convert.git@6513985a1b1ea8a0b987fbef699250ce2cdc3cca',

  'src/third_party/dart/third_party/pkg/crypto':
   Var('dart_git') + '/crypto.git@c89a5be0375875fe7ff71625fa2b79f5a421f06d',

  'src/third_party/dart/third_party/pkg/csslib':
   Var('dart_git') + '/csslib.git@e411d862fd8cc50415c1badf2632e017373b3f47',

  'src/third_party/dart/third_party/pkg/dart2js_info':
   Var('dart_git') + '/dart2js_info.git@e0acfeb5affdf94c53067e68bd836adf589628fd',

  'src/third_party/dart/third_party/pkg/dartdoc':
   Var('dart_git') + '/dartdoc.git@9e61a4f11091aaa8998525a2692b14148dc24ab5',

  'src/third_party/dart/third_party/pkg/ffi':
   Var('dart_git') + '/ffi.git@f288e906c92e2ab378768dfa61a40814ede7a2a5',

  'src/third_party/dart/third_party/pkg/file':
   Var('dart_git') + '/external/github.com/google/file.dart/@0e09370f581ab6388d46fda4cdab66638c0171a1',

  'src/third_party/dart/third_party/pkg/fixnum':
   Var('dart_git') + '/fixnum.git@16d3890c6dc82ca629659da1934e412292508bba',

  'src/third_party/dart/third_party/pkg/glob':
   Var('dart_git') + '/glob.git@7c0ef8d4fa086f6b185c4dd724b700e7d7ad8f79',

  'src/third_party/dart/third_party/pkg/html':
   Var('dart_git') + '/html.git@7f31979303f916f2aabb9e2091950798abdd9ca1',

  'src/third_party/dart/third_party/pkg/http':
   Var('dart_git') + '/http.git@3845753a54624b070828cb3eff7a6c2a4e046cfb',

  'src/third_party/dart/third_party/pkg/http_multi_server':
   Var('dart_git') + '/http_multi_server.git@e8c8be7f15b4fb50757ff5bf29766721fbe24fe4',

  'src/third_party/dart/third_party/pkg/http_parser':
   Var('dart_git') + '/http_parser.git@5dd4d16693242049dfb43b5efa429fedbf932e98',

  'src/third_party/dart/third_party/pkg/http_retry':
   Var('dart_git') + '/http_retry.git' + '@' + Var('dart_http_retry_tag'),

  'src/third_party/dart/third_party/pkg/http_throttle':
   Var('dart_git') + '/http_throttle.git' + '@' + Var('dart_http_throttle_tag'),

  'src/third_party/dart/third_party/pkg/intl':
   Var('dart_git') + '/intl.git' + '@' + Var('dart_intl_tag'),

  'src/third_party/dart/third_party/pkg/json_rpc_2':
   Var('dart_git') + '/json_rpc_2.git@b8dfe403fd8528fd14399dee3a6527b55802dd4d',

  'src/third_party/dart/third_party/pkg/linter':
   Var('dart_git') + '/linter.git' + '@' + Var('dart_linter_tag'),

  'src/third_party/dart/third_party/pkg/logging':
   Var('dart_git') + '/logging.git@e2f633b543ef89c54688554b15ca3d7e425b86a2',

  'src/third_party/dart/third_party/pkg/markdown':
   Var('dart_git') + '/markdown.git@6f89681d59541ddb1cf3a58efbdaa2304ffc3f51',

  'src/third_party/dart/third_party/pkg/matcher':
   Var('dart_git') + '/matcher.git@63f1110a657fb5e2dc378db8895fef7b0a13ab30',

  'src/third_party/dart/third_party/pkg/mime':
   Var('dart_git') + '/mime.git@c931f4bed87221beaece356494b43731445ce7b8',

  'src/third_party/dart/third_party/pkg/mockito':
   Var('dart_git') + '/mockito.git@d39ac507483b9891165e422ec98d9fb480037c8b',

  'src/third_party/dart/third_party/pkg/mustache':
   Var('dart_git') + '/external/github.com/xxgreg/mustache@664737ecad027e6b96d0d1e627257efa0e46fcb1',

  'src/third_party/dart/third_party/pkg/oauth2':
   Var('dart_git') + '/oauth2.git' + '@' + Var('dart_oauth2_tag'),

  'src/third_party/dart/third_party/pkg/path':
   Var('dart_git') + '/path.git@62ecd5a78ffe5734d14ed0df76d20309084cd04a',

  'src/third_party/dart/third_party/pkg/pedantic':
   Var('dart_git') + '/pedantic.git@a884ea2db943b8756cc94385990bd750aec06928',

  'src/third_party/dart/third_party/pkg/pool':
   Var('dart_git') + '/pool.git@7abe634002a1ba8a0928eded086062f1307ccfae',

  'src/third_party/dart/third_party/pkg/protobuf':
   Var('dart_git') + '/protobuf.git' + '@' + Var('dart_protobuf_rev'),

  'src/third_party/dart/third_party/pkg/pub':
   Var('dart_git') + '/pub.git' + '@' + Var('dart_pub_rev'),

  'src/third_party/dart/third_party/pkg/pub_semver':
   Var('dart_git') + '/pub_semver.git@10569a1e867e909cf5db201f73118020453e5db8',

  'src/third_party/dart/third_party/pkg/resource':
   Var('dart_git') + '/resource.git' + '@' + Var('dart_resource_rev'),

  'src/third_party/dart/third_party/pkg/shelf':
   Var('dart_git') + '/shelf.git@fa5afaa38bd51dedeeaa25b7bfd8822cabbcc57f',

  'src/third_party/dart/third_party/pkg/shelf_packages_handler':
   Var('dart_git') + '/shelf_packages_handler.git' + '@' + Var('dart_shelf_packages_handler_tag'),

  'src/third_party/dart/third_party/pkg/shelf_proxy':
   Var('dart_git') + '/shelf_proxy.git' + '@' + Var('dart_shelf_proxy_tag'),

  'src/third_party/dart/third_party/pkg/shelf_static':
   Var('dart_git') + '/shelf_static.git' + '@' + Var('dart_shelf_static_rev'),

  'src/third_party/dart/third_party/pkg/shelf_web_socket':
   Var('dart_git') + '/shelf_web_socket.git@abae6956e2f7d863a416c99aa031d7fa1a7160a7',

  'src/third_party/dart/third_party/pkg/source_map_stack_trace':
   Var('dart_git') + '/source_map_stack_trace.git@1c3026f69d9771acf2f8c176a1ab750463309cce',

  'src/third_party/dart/third_party/pkg/source_maps':
   Var('dart_git') + '/source_maps.git@53eb92ccfe6e64924054f83038a534b959b12b3e',

  'src/third_party/dart/third_party/pkg/source_span':
   Var('dart_git') + '/source_span.git@49ff31eabebed0da0ae6634124f8ba5c6fbf57f1',

  'src/third_party/dart/third_party/pkg/sse':
   Var('dart_git') + '/sse.git' + '@' + Var('dart_sse_tag'),

  'src/third_party/dart/third_party/pkg/stack_trace':
   Var('dart_git') + '/stack_trace.git' + '@' + Var('dart_stack_trace_tag'),

  'src/third_party/dart/third_party/pkg/stagehand':
  Var('dart_archive') + '/stagehand.git@e64ac90cac508981011299c4ceb819149e71f1bd',

  'src/third_party/dart/third_party/pkg/stream_channel':
   Var('dart_git') + '/stream_channel.git' + '@' + Var('dart_stream_channel_tag'),

  'src/third_party/dart/third_party/pkg/string_scanner':
   Var('dart_git') + '/string_scanner.git@1b63e6e5db5933d7be0a45da6e1129fe00262734',

  'src/third_party/dart/third_party/pkg/term_glyph':
   Var('dart_git') + '/term_glyph.git@6a0f9b6fb645ba75e7a00a4e20072678327a0347',

  'src/third_party/dart/third_party/pkg/test':
   Var('dart_git') + '/test.git@e37a93bbeae23b215972d1659ac865d71287ff6a',

  'src/third_party/dart/third_party/pkg/test_reflective_loader':
   Var('dart_git') + '/test_reflective_loader.git@b76ae201ab9c6f3b90643958965e7cc215a38e9b',

  'src/third_party/dart/third_party/pkg/typed_data':
   Var('dart_git') + '/typed_data.git' + '@' + Var('dart_typed_data_tag'),

  'src/third_party/dart/third_party/pkg/usage':
   Var('dart_git') + '/usage.git@6c64d9e7b6b3758d06d030efcb5afe20bfc04dde',

  'src/third_party/dart/third_party/pkg/watcher':
   Var('dart_git') + '/watcher.git' + '@' + Var('dart_watcher_rev'),

  'src/third_party/dart/third_party/pkg/web_socket_channel':
   Var('dart_git') + '/web_socket_channel.git@680358915e331fda823908234f80beba1ed4ec83',

  'src/third_party/dart/third_party/pkg/yaml':
   Var('dart_git') + '/yaml.git@cca02c9e4f6826d62644901ed65c6d72b90a0713',

  'src/third_party/dart/third_party/pkg_tested/dart_style':
   Var('dart_git') + '/dart_style.git' + '@' + Var('dart_dart_style_tag'),

  'src/third_party/dart/third_party/pkg_tested/package_config':
   Var('dart_git') + '/package_config.git@0e208cb5a9482d780c47627368d3f5bdc409f37b',

  'src/third_party/dart/tools/sdks':
   {'packages': [{'version': 'version:2.12.0-133.2.beta', 'package': 'dart/dart-sdk/${{platform}}'}], 'dep_type': 'cipd'},

  # WARNING: end of dart dependencies list that is cleaned up automatically - see create_updated_flutter_deps.py.

  'src/third_party/colorama/src':
   Var('chromium_git') + '/external/colorama.git' + '@' + '799604a1041e9b3bc5d2789ecbd7e8db2e18e6b8',

  'src/third_party/freetype2':
   Var('flutter_git') + '/third_party/freetype2' + '@' + '1f03c1b2d7f2ae832a4fbe9d12bd96c3c15bbece',

  'src/third_party/root_certificates':
   Var('dart_git') + '/root_certificates.git' + '@' + Var('dart_root_certificates_rev'),

  'src/third_party/skia':
   Var('skia_git') + '/skia.git' + '@' +  Var('skia_revision'),

  'src/third_party/ocmock':
   Var('ocmock_git') + '@' +  Var('ocmock_tag'),

  'src/third_party/libjpeg-turbo':
   Var('fuchsia_git') + '/third_party/libjpeg-turbo' + '@' + '0fb821f3b2e570b2783a94ccd9a2fb1f4916ae9f',

  'src/third_party/libwebp':
   Var('chromium_git') + '/webm/libwebp.git' + '@' + '0.6.0',

  'src/third_party/wuffs':
   Var('skia_git') + '/external/github.com/google/wuffs.git' + '@' +  'c86add25f790360f0aca026c4f1c2c4e2d12408d',

  'src/third_party/fontconfig/src':
   Var('chromium_git') + '/external/fontconfig.git' + '@' + 'c336b8471877371f0190ba06f7547c54e2b890ba',

  'src/third_party/gyp':
   Var('chromium_git') + '/external/gyp.git' + '@' + '4801a5331ae62da9769a327f11c4213d32fb0dad',

   # Headers for Vulkan 1.1

   'src/third_party/vulkan':
   Var('github_git') + '/KhronosGroup/Vulkan-Docs.git' + '@' + 'v1.1.91',

   'src/third_party/swiftshader':
   Var('swiftshader_git') + '/SwiftShader.git' + '@' + '5d1e8540407c138f47028d64684f3da599430aa4',

   'src/third_party/angle':
   Var('github_git') + '/google/angle.git' + '@' + 'ed90c9917b1b7fc6def319184b10609c11b2bd84',

   'src/third_party/angle/third_party/vulkan-headers/src':
   Var('fuchsia_git') + '/third_party/Vulkan-Headers.git' + '@' + '5de4e8fab88ef0bd6994d9ddbcc864e3179b9e79',

   'src/third_party/abseil-cpp':
   Var('chromium_git') + '/chromium/src/third_party/abseil-cpp.git' + '@' + '2d8c1340f0350828f1287c4eaeebefcf317bcfc9',

  'src/third_party/pkg/when':
   Var('dart_git') + '/when.git' + '@' + '0.2.0',

   'src/third_party/android_tools/ndk': {
     'packages': [
       {
        'package': 'flutter/android/ndk/${{platform}}',
        'version': 'version:r21.0.6113669'
       }
     ],
     'condition': 'download_android_deps',
     'dep_type': 'cipd',
   },

   'src/third_party/android_tools/google-java-format': {
     'packages': [
       {
        'package': 'flutter/android/google-java-format',
        'version': 'version:1.7-1'
       }
     ],
     # We want to be able to format these as part of CI, and the CI step that
     # checks formatting runs without downloading the rest of the Android build
     # tooling. Therefore unlike all the other Android-related tools, we want to
     # download this every time.
     'dep_type': 'cipd',
   },

  'src/third_party/android_tools/sdk/build-tools': {
     'packages': [
       {
        'package': 'flutter/android/sdk/build-tools/${{platform}}',
        'version': 'version:30.0.1'
       }
     ],
     'condition': 'download_android_deps',
     'dep_type': 'cipd',
   },

  'src/third_party/android_tools/sdk/platform-tools': {
     'packages': [
       {
        'package': 'flutter/android/sdk/platform-tools/${{platform}}',
        'version': 'version:30.0.4'
       }
     ],
     'condition': 'download_android_deps',
     'dep_type': 'cipd',
   },

  'src/third_party/android_tools/sdk/platforms': {
     'packages': [
       {
        'package': 'flutter/android/sdk/platforms',
        'version': 'version:30r3'
       }
     ],
     'condition': 'download_android_deps',
     'dep_type': 'cipd',
   },

  'src/third_party/android_tools/sdk/tools': {
     'packages': [
       {
        'package': 'flutter/android/sdk/tools/${{platform}}',
        'version': 'version:26.1.1'
       }
     ],
     'condition': 'download_android_deps',
     'dep_type': 'cipd',
   },

  'src/third_party/android_tools/sdk/licenses': {
     'packages': [
       {
        'package': 'flutter/android/sdk/licenses',
        'version': 'latest',
       }
     ],
    'condition': 'download_android_deps',
    'dep_type': 'cipd',
  },

  'src/third_party/android_embedding_dependencies': {
     'packages': [
       {
        'package': 'flutter/android/embedding_bundle',
        'version': 'last_updated:2020-09-11T17:57:41-0700'
       }
     ],
     'condition': 'download_android_deps',
     'dep_type': 'cipd',
   },

  'src/flutter/third_party/gn': {
    'packages': [
      {
        'package': 'gn/gn/${{platform}}',
        'version': 'git_revision:1e3fd10c5df6b704fc764ee388149e4f32862823'
      },
    ],
    'dep_type': 'cipd',
  },

  # Clang on mac and linux are expected to typically be the same revision.

  # They are separated out so that the autoroller can more easily manage them.

  'src/buildtools/mac-x64/clang': {
    'packages': [
      {
        'package': 'fuchsia/third_party/clang/mac-amd64',
        'version': '139p8dSfWkDS3XU7olg1SCcPowC4MokiYUR5u2aqDOMC' 
      }
    ],
    'condition': 'host_os == "mac"',
    'dep_type': 'cipd',
  },

  'src/buildtools/linux-x64/clang': {
    'packages': [
      {
        'package': 'fuchsia/third_party/clang/linux-amd64',
        'version': '8LaTdqf7wY_sjaptz0DIIKx9_Nxaoh3YgDEPgnfxzOEC' 
      }
    ],
    'condition': 'host_os == "linux"',
    'dep_type': 'cipd',
  },

  # TODO(fxb/4443): Remove this when Fuchsia can provide the Windows Clang Toolchain

  'src/third_party/llvm-build/Release+Asserts': {
    'packages': [
      {
        'package': 'flutter/clang/win-amd64',
        'version': 'git_revision:5ec206df8534d2dd8cb9217c3180e5ddba587393'
      }
    ],
    'condition': 'download_windows_deps',
    'dep_type': 'cipd',
  },

   # Get the SDK from https://chrome-infra-packages.appspot.com/p/fuchsia/sdk/core at the 'latest' tag

   # Get the toolchain from https://chrome-infra-packages.appspot.com/p/fuchsia/clang at the 'goma' tag

   'src/fuchsia/sdk/mac': {
     'packages': [
       {
        'package': 'fuchsia/sdk/core/mac-amd64',
        'version': 'PGWwkVe7csXAv7k2KVF3U_W6uYr_lVOMjOFcwPQj5x8C'
       }
     ],
     'condition': 'host_os == "mac"',
     'dep_type': 'cipd',
   },
   'src/fuchsia/sdk/linux': {
     'packages': [
       {
        'package': 'fuchsia/sdk/core/linux-amd64',
        'version': 'DLfskqEUxYkkh1CQFJcig1VvspwNdhmMhHN_I5oAr2UC'
       }
     ],
     'condition': 'host_os == "linux"',
     'dep_type': 'cipd',
   },
}

hooks = [
  {
    # This clobbers when necessary (based on get_landmines.py). It must be the
    # first hook so that other things that get/generate into the output
    # directory will not subsequently be clobbered.
    'name': 'landmines',
    'pattern': '.',
    'action': [
        'python',
        'src/build/landmines.py',
    ],
  },
  {
    # Update the Windows toolchain if necessary.
    'name': 'win_toolchain',
    'condition': 'download_windows_deps',
    'pattern': '.',
    'action': ['python', 'src/build/vs_toolchain.py', 'update'],
  },
  {
    'name': 'generate_package_files',
    'pattern': '.',
    'cwd': 'src/',
    'action': ['python', 'flutter/tools/generate_package_files.py'],
  },
  {
    # Ensure that we don't accidentally reference any .pyc files whose
    # corresponding .py files have already been deleted.
    'name': 'remove_stale_pyc_files',
    'pattern': 'src/tools/.*\\.py',
    'action': [
        'python',
        'src/tools/remove_stale_pyc_files.py',
        'src/tools',
    ],
  },
  {
    'name': '7zip',
    'pattern': '.',
    'condition': 'download_windows_deps',
    'action': [
      'download_from_google_storage',
      '--no_auth',
      '--no_resume',
      '--bucket',
      'dart-dependencies',
      '--platform=win32',
      '--extract',
      '-s',
      'src/third_party/dart/third_party/7zip.tar.gz.sha1',
    ],
  },
  {
    'name': 'dia_dll',
    'pattern': '.',
    'condition': 'download_windows_deps',
    'action': [
      'python',
      'src/flutter/tools/dia_dll.py',
    ],
  },
  {
    'name': 'linux_sysroot_x64',
    'pattern': '.',
    'condition': 'download_linux_deps',
    'action': [
      'python',
      'src/build/linux/sysroot_scripts/install-sysroot.py',
      '--arch=x64'],
  },
  {
    'name': 'linux_sysroot_arm64',
    'pattern': '.',
    'condition': 'download_linux_deps',
    'action': [
      'python',
      'src/build/linux/sysroot_scripts/install-sysroot.py',
      '--arch=arm64'],
  },
  {
    'name': 'dart package config',
    'pattern': '.',
    'action': [
      'python',
      'src/flutter/tools/run_third_party_dart.py',
    ]
  }
]

ninja -C ios_debug_sim_unopt

这里出现的错误是因为xocde13 对于 flutter 2.0.6版本太高了, 可以

ninja: Entering directory `ios_debug_sim_unopt'
[606/3869] OBJCXX obj/flutter/shell/platform/darwin/common/framework/Source/framework_shared.FlutterChannels.o
FAILED: obj/flutter/shell/platform/darwin/common/framework/Source/framework_shared.FlutterChannels.o
../../buildtools/mac-x64/clang/bin/clang++ -MD -MF obj/flutter/shell/platform/darwin/common/framework/Source/framework_shared.FlutterChannels.o.d -DFLUTTER_FRAMEWORK -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -D_DEBUG -I../.. -Igen -I../.. -I../../flutter/shell/platform/darwin/common/framework/Headers -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk -mios-simulator-version-min=8.0  -fno-strict-aliasing -arch x86_64 -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-psabi -Wno-non-c-typedef-for-linkage -Wno-deprecated-copy -Wno-range-loop-construct -Wunguarded-availability -fvisibility=hidden -stdlib=libc++ -Wstring-conversion -Wnewline-eof -O0 -g2  -Werror=overriding-method-mismatch -Werror=undeclared-selector -fvisibility-inlines-hidden -fobjc-call-cxx-cdtors -std=c++17 -fno-rtti -fno-exceptions -nostdinc++ -isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1  -c ../../flutter/shell/platform/darwin/common/framework/Source/FlutterChannels.mm -o obj/flutter/shell/platform/darwin/common/framework/Source/framework_shared.FlutterChannels.o
In file included from ../../flutter/shell/platform/darwin/common/framework/Source/FlutterChannels.mm:5:
In file included from ../../flutter/shell/platform/darwin/common/framework/Headers/FlutterChannels.h:8:
In file included from ../../flutter/shell/platform/darwin/common/framework/Headers/FlutterBinaryMessenger.h:8:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:12:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h:91:143: error: function does not return NSString
- (NSAttributedString *)localizedAttributedStringForKey:(NSString *)key value:(nullable NSString *)value table:(nullable NSString *)tableName NS_FORMAT_ARGUMENT(1) NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
                                                         ~~~~~~~~~~~~~~                                                                       ^                  ~
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:103:48: note: expanded from macro 'NS_FORMAT_ARGUMENT'
        #define NS_FORMAT_ARGUMENT(A) __attribute__ ((format_arg(A)))
                                                      ^          ~
1 error generated.
[612/3869] OBJCXX obj/flutter/shell/platform/darwin/common/framework/Source/framework_shared.FlutterCodecs.o
FAILED: obj/flutter/shell/platform/darwin/common/framework/Source/framework_shared.FlutterCodecs.o
../../buildtools/mac-x64/clang/bin/clang++ -MD -MF obj/flutter/shell/platform/darwin/common/framework/Source/framework_shared.FlutterCodecs.o.d -DFLUTTER_FRAMEWORK -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -D_DEBUG -I../.. -Igen -I../.. -I../../flutter/shell/platform/darwin/common/framework/Headers -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk -mios-simulator-version-min=8.0  -fno-strict-aliasing -arch x86_64 -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-psabi -Wno-non-c-typedef-for-linkage -Wno-deprecated-copy -Wno-range-loop-construct -Wunguarded-availability -fvisibility=hidden -stdlib=libc++ -Wstring-conversion -Wnewline-eof -O0 -g2  -Werror=overriding-method-mismatch -Werror=undeclared-selector -fvisibility-inlines-hidden -fobjc-call-cxx-cdtors -std=c++17 -fno-rtti -fno-exceptions -nostdinc++ -isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1  -c ../../flutter/shell/platform/darwin/common/framework/Source/FlutterCodecs.mm -o obj/flutter/shell/platform/darwin/common/framework/Source/framework_shared.FlutterCodecs.o
In file included from ../../flutter/shell/platform/darwin/common/framework/Source/FlutterCodecs.mm:5:
In file included from ../../flutter/shell/platform/darwin/common/framework/Headers/FlutterCodecs.h:8:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:12:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h:91:143: error: function does not return NSString
- (NSAttributedString *)localizedAttributedStringForKey:(NSString *)key value:(nullable NSString *)value table:(nullable NSString *)tableName NS_FORMAT_ARGUMENT(1) NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
                                                         ~~~~~~~~~~~~~~                                                                       ^                  ~
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:103:48: note: expanded from macro 'NS_FORMAT_ARGUMENT'
        #define NS_FORMAT_ARGUMENT(A) __attribute__ ((format_arg(A)))
                                                      ^          ~
1 error generated.
[615/3869] OBJCXX obj/flutter/shell/platform/darwin/common/framework/Source/framework_shared.FlutterStandardCodec.o
FAILED: obj/flutter/shell/platform/darwin/common/framework/Source/framework_shared.FlutterStandardCodec.o
../../buildtools/mac-x64/clang/bin/clang++ -MD -MF obj/flutter/shell/platform/darwin/common/framework/Source/framework_shared.FlutterStandardCodec.o.d -DFLUTTER_FRAMEWORK -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -D_DEBUG -I../.. -Igen -I../.. -I../../flutter/shell/platform/darwin/common/framework/Headers -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk -mios-simulator-version-min=8.0  -fno-strict-aliasing -arch x86_64 -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-psabi -Wno-non-c-typedef-for-linkage -Wno-deprecated-copy -Wno-range-loop-construct -Wunguarded-availability -fvisibility=hidden -stdlib=libc++ -Wstring-conversion -Wnewline-eof -O0 -g2  -Werror=overriding-method-mismatch -Werror=undeclared-selector -fvisibility-inlines-hidden -fobjc-call-cxx-cdtors -std=c++17 -fno-rtti -fno-exceptions -nostdinc++ -isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1  -c ../../flutter/shell/platform/darwin/common/framework/Source/FlutterStandardCodec.mm -o obj/flutter/shell/platform/darwin/common/framework/Source/framework_shared.FlutterStandardCodec.o
In file included from ../../flutter/shell/platform/darwin/common/framework/Source/FlutterStandardCodec.mm:5:
In file included from ../../flutter/shell/platform/darwin/common/framework/Source/FlutterStandardCodec_Internal.h:8:
In file included from ../../flutter/shell/platform/darwin/common/framework/Headers/FlutterCodecs.h:8:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:12:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h:91:143: error: function does not return NSString
- (NSAttributedString *)localizedAttributedStringForKey:(NSString *)key value:(nullable NSString *)value table:(nullable NSString *)tableName NS_FORMAT_ARGUMENT(1) NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
                                                         ~~~~~~~~~~~~~~                                                                       ^                  ~
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:103:48: note: expanded from macro 'NS_FORMAT_ARGUMENT'
        #define NS_FORMAT_ARGUMENT(A) __attribute__ ((format_arg(A)))
                                                      ^          ~
1 error generated.
[619/3869] OBJC obj/flutter/shell/platform/darwin/ios/framework/Source/libcopy_and_verify_framework_module.FlutterUmbrellaImport.o
FAILED: obj/flutter/shell/platform/darwin/ios/framework/Source/libcopy_and_verify_framework_module.FlutterUmbrellaImport.o
../../buildtools/mac-x64/clang/bin/clang++ -MD -MF obj/flutter/shell/platform/darwin/ios/framework/Source/libcopy_and_verify_framework_module.FlutterUmbrellaImport.o.d -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -D_DEBUG -I../.. -Igen -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk -mios-simulator-version-min=8.0  -fno-strict-aliasing -arch x86_64 -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-psabi -Wno-non-c-typedef-for-linkage -Wno-deprecated-copy -Wno-range-loop-construct -Wunguarded-availability -fvisibility=hidden -stdlib=libc++ -Wstring-conversion -Wnewline-eof -O0 -g2  -F/Users/flannery/Library/Android/flutter-engine/engine/src/out/ios_debug_sim_unopt -fmodules -Wnon-modular-include-in-framework-module  -c ../../flutter/shell/platform/darwin/ios/framework/Source/FlutterUmbrellaImport.m -o obj/flutter/shell/platform/darwin/ios/framework/Source/libcopy_and_verify_framework_module.FlutterUmbrellaImport.o
While building module 'Flutter' imported from ../../flutter/shell/platform/darwin/ios/framework/Source/FlutterUmbrellaImport.m:9:
While building module 'UIKit' imported from /Users/flannery/Library/Android/flutter-engine/engine/src/out/ios_debug_sim_unopt/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In file included from :1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:12:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h:91:143: error: function does not return NSString
- (NSAttributedString *)localizedAttributedStringForKey:(NSString *)key value:(nullable NSString *)value table:(nullable NSString *)tableName NS_FORMAT_ARGUMENT(1) NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
                                                         ~~~~~~~~~~~~~~                                                                       ^                  ~
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:103:48: note: expanded from macro 'NS_FORMAT_ARGUMENT'
        #define NS_FORMAT_ARGUMENT(A) __attribute__ ((format_arg(A)))
                                                      ^          ~
While building module 'Flutter' imported from ../../flutter/shell/platform/darwin/ios/framework/Source/FlutterUmbrellaImport.m:9:
While building module 'UIKit' imported from /Users/flannery/Library/Android/flutter-engine/engine/src/out/ios_debug_sim_unopt/Flutter.framework/Headers/FlutterAppDelegate.h:8:
In file included from :1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:9: fatal error: could not build module 'Foundation'
#import 
 ~~~~~~~^
While building module 'Flutter' imported from ../../flutter/shell/platform/darwin/ios/framework/Source/FlutterUmbrellaImport.m:9:
While building module 'UIKit' imported from /Users/flannery/Library/Android/flutter-engine/engine/src/out/ios_debug_sim_unopt/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:13:
In file included from :1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h:9:9: fatal error: could not build module 'Foundation'
#import 
 ~~~~~~~^
While building module 'Flutter' imported from ../../flutter/shell/platform/darwin/ios/framework/Source/FlutterUmbrellaImport.m:9:
While building module 'UIKit' imported from /Users/flannery/Library/Android/flutter-engine/engine/src/out/ios_debug_sim_unopt/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:13:
While building module 'CoreVideo' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:10:
While building module 'IOSurface' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBufferIOSurface.h:26:
In file included from :2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h:15:9: fatal error: could not build module 'Foundation'
#import 
 ~~~~~~~^
While building module 'Flutter' imported from ../../flutter/shell/platform/darwin/ios/framework/Source/FlutterUmbrellaImport.m:9:
While building module 'UIKit' imported from /Users/flannery/Library/Android/flutter-engine/engine/src/out/ios_debug_sim_unopt/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:13:
While building module 'CoreVideo' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:10:
In file included from :1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:29:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:628:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBufferIOSurface.h:26:10: fatal error: could not build module 'IOSurface'
#include 
 ~~~~~~~~^
While building module 'Flutter' imported from ../../flutter/shell/platform/darwin/ios/framework/Source/FlutterUmbrellaImport.m:9:
While building module 'UIKit' imported from /Users/flannery/Library/Android/flutter-engine/engine/src/out/ios_debug_sim_unopt/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:13:
While building module 'CoreVideo' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:10:
While building module 'OpenGLES' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVOpenGLESTexture.h:23:
In file included from :1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGL.h:8:10: fatal error: could not build module 'Foundation'
#include 
 ~~~~~~~~^
While building module 'Flutter' imported from ../../flutter/shell/platform/darwin/ios/framework/Source/FlutterUmbrellaImport.m:9:
While building module 'UIKit' imported from /Users/flannery/Library/Android/flutter-engine/engine/src/out/ios_debug_sim_unopt/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:13:
While building module 'CoreVideo' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:10:
While building module 'Metal' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalTextureCache.h:41:
In file included from :1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.h:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h:8:9: fatal error: could not build module 'Foundation'
#import 
 ~~~~~~~^
While building module 'Flutter' imported from ../../flutter/shell/platform/darwin/ios/framework/Source/FlutterUmbrellaImport.m:9:
While building module 'UIKit' imported from /Users/flannery/Library/Android/flutter-engine/engine/src/out/ios_debug_sim_unopt/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'QuartzCore' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:10:
In file included from :1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:9:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h:10:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CATransform3D.h:12:9: fatal error: could not build module 'Foundation'
#import 
 ~~~~~~~^
While building module 'Flutter' imported from ../../flutter/shell/platform/darwin/ios/framework/Source/FlutterUmbrellaImport.m:9:
While building module 'UIKit' imported from /Users/flannery/Library/Android/flutter-engine/engine/src/out/ios_debug_sim_unopt/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'FileProvider' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSFileProviderExtension.h:15:
In file included from :1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/FileProvider.framework/Headers/FileProvider.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderDomain.h:8:9: fatal error: could not build module 'Foundation'
#import 
 ~~~~~~~^
While building module 'Flutter' imported from ../../flutter/shell/platform/darwin/ios/framework/Source/FlutterUmbrellaImport.m:9:
While building module 'UIKit' imported from /Users/flannery/Library/Android/flutter-engine/engine/src/out/ios_debug_sim_unopt/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'UserNotifications' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UNNotificationResponse+UIKitAdditions.h:10:
In file included from :1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/NSString+UserNotifications.h:8:9: fatal error: could not build module 'Foundation'
#import 
 ~~~~~~~^
While building module 'Flutter' imported from ../../flutter/shell/platform/darwin/ios/framework/Source/FlutterUmbrellaImport.m:9:
In file included from :1:
In file included from /Users/flannery/Library/Android/flutter-engine/engine/src/out/ios_debug_sim_unopt/Flutter.framework/Headers/Flutter.h:8:
/Users/flannery/Library/Android/flutter-engine/engine/src/out/ios_debug_sim_unopt/Flutter.framework/Headers/FlutterAppDelegate.h:8:9: fatal error: could not build module 'UIKit'
#import 
 ~~~~~~~^
While building module 'Flutter' imported from ../../flutter/shell/platform/darwin/ios/framework/Source/FlutterUmbrellaImport.m:9:
While building module 'CoreMedia' imported from /Users/flannery/Library/Android/flutter-engine/engine/src/out/ios_debug_sim_unopt/Flutter.framework/Headers/FlutterTexture.h:8:
In file included from :1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h:15:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescription.h:29:10: fatal error: could not build module 'CoreVideo'
#include 
 ~~~~~~~~^
../../flutter/shell/platform/darwin/ios/framework/Source/FlutterUmbrellaImport.m:9:9: fatal error: could not build module 'Flutter'
#import 
 ~~~~~~~^
13 errors generated.
ninja: build stopped: subcommand failed.

ninja -C out/host_profile -j 6

FAILED: fml_benchmarks
../../buildtools/mac-x64/clang/bin/clang++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -mmacosx-version-min=10.11.0 -flto -arch x86_64 -nostdlib++ -stdlib=libc++ -Wl,-dead_strip -Wl,-search_paths_first -L. -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/../../.. -Wl,-pie  -Xlinker -rpath -Xlinker @executable_path/Frameworks -o ./fml_benchmarks -Wl,-filelist,./fml_benchmarks.rsp  -ldl -lpthread -framework Foundation
ld: reference to bitcode symbol '___gxx_personality_v0' which LTO has not compiled in '___gxx_personality_v0' for architecture x86_64
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
[4664/6061] LINK ./fml_unittests
FAILED: fml_unittests
../../buildtools/mac-x64/clang/bin/clang++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -mmacosx-version-min=10.11.0 -flto -arch x86_64 -nostdlib++ -stdlib=libc++ -Wl,-dead_strip -Wl,-search_paths_first -L. -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/../../.. -Wl,-pie  -Xlinker -rpath -Xlinker @executable_path/Frameworks -o ./fml_unittests -Wl,-filelist,./fml_unittests.rsp  -ldl -lpthread -framework Foundation
ld: reference to bitcode symbol '___gxx_personality_v0' which LTO has not compiled in '___gxx_personality_v0' for architecture x86_64
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
[4666/6061] LINK ./common_cpp_core_unittests
FAILED: common_cpp_core_unittests
../../buildtools/mac-x64/clang/bin/clang++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -mmacosx-version-min=10.11.0 -flto -arch x86_64 -nostdlib++ -stdlib=libc++ -Wl,-dead_strip -Wl,-search_paths_first -L. -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/../../.. -Wl,-pie  -Xlinker -rpath -Xlinker @executable_path/Frameworks -o ./common_cpp_core_unittests -Wl,-filelist,./common_cpp_core_unittests.rsp  -ldl -lpthread -framework Foundation
ld: reference to bitcode symbol '___gxx_personality_v0' which LTO has not compiled in '___gxx_personality_v0' for architecture x86_64
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
[4667/6061] LINK ./client_wrapper_glfw_unittests
FAILED: client_wrapper_glfw_unittests
../../buildtools/mac-x64/clang/bin/clang++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -mmacosx-version-min=10.11.0 -flto -arch x86_64 -nostdlib++ -stdlib=libc++ -Wl,-dead_strip -Wl,-search_paths_first -L. -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/../../.. -Wl,-pie  -Xlinker -rpath -Xlinker @executable_path/Frameworks -o ./client_wrapper_glfw_unittests -Wl,-filelist,./client_wrapper_glfw_unittests.rsp  -ldl -lpthread -framework Foundation
ld: reference to bitcode symbol '___gxx_personality_v0' which LTO has not compiled in '___gxx_personality_v0' for architecture x86_64
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
[4668/6061] LINK ./client_wrapper_unittests
FAILED: client_wrapper_unittests
../../buildtools/mac-x64/clang/bin/clang++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -mmacosx-version-min=10.11.0 -flto -arch x86_64 -nostdlib++ -stdlib=libc++ -Wl,-dead_strip -Wl,-search_paths_first -L. -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/../../.. -Wl,-pie  -Xlinker -rpath -Xlinker @executable_path/Frameworks -o ./client_wrapper_unittests -Wl,-filelist,./client_wrapper_unittests.rsp  -ldl -lpthread -framework Foundation
ld: reference to bitcode symbol '___gxx_personality_v0' which LTO has not compiled in '___gxx_personality_v0' for architecture x86_64
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

构建编译产物

编译Android产物

# unopt-debug
# prepare build files for device-side executables.
./flutter/tools/gn --unoptimized --android --runtime-mode debug --android-cpu arm
./flutter/tools/gn --unoptimized --android --runtime-mode debug --android-cpu arm64
./flutter/tools/gn --unoptimized --android --runtime-mode debug --android-cpu x64
# prepare the build files for host-side executables.
./flutter/tools/gn --unoptimized --runtime-mode debug --android-cpu arm 
./flutter/tools/gn --unoptimized --runtime-mode debug --android-cpu arm64
./flutter/tools/gn --unoptimized --runtime-mode debug --android-cpu x64
ninja -C out/android_debug_unopt
ninja -C out/android_debug_unopt_arm64
ninja -C out/android_debug_unopt_x64
ninja -C out/host_debug_unopt
ninja -C out/host_debug_unopt_arm64
ninja -C out/host_debug_unopt_x64

# unopt-profile
./flutter/tools/gn --unoptimized --android --runtime-mode profile --android-cpu arm
./flutter/tools/gn --unoptimized --android --runtime-mode profile --android-cpu arm64
./flutter/tools/gn --unoptimized --android --runtime-mode profile --android-cpu x64
./flutter/tools/gn --unoptimized --runtime-mode profile --android-cpu arm
./flutter/tools/gn --unoptimized --runtime-mode profile --android-cpu arm64
./flutter/tools/gn --unoptimized --runtime-mode profile --android-cpu x64
ninja -C out/android_profile_unopt
ninja -C out/android_profile_unopt_arm64
ninja -C out/android_profile_unopt_x64
ninja -C out/host_profile_unopt
ninja -C out/host_profile_unopt_arm64
ninja -C out/host_profile_unopt_x64

# unopt-release
./flutter/tools/gn --unoptimized --android --runtime-mode release --android-cpu arm
./flutter/tools/gn --unoptimized --android --runtime-mode release --android-cpu arm64
./flutter/tools/gn --unoptimized --android --runtime-mode release --android-cpu x64
./flutter/tools/gn --unoptimized --runtime-mode release --android-cpu arm
./flutter/tools/gn --unoptimized --runtime-mode release --android-cpu arm64
./flutter/tools/gn --unoptimized --runtime-mode release --android-cpu x64
ninja -C out/android_release_unopt
ninja -C out/android_release_unopt_arm64
ninja -C out/android_release_unopt_x64
ninja -C out/host_release_unopt
ninja -C out/host_release_unopt_arm64
ninja -C out/host_release_unopt_x64

# opt-debug
./flutter/tools/gn --android --runtime-mode debug --android-cpu arm
./flutter/tools/gn --android --runtime-mode debug --android-cpu arm64
./flutter/tools/gn --android --runtime-mode debug --android-cpu x64
./flutter/tools/gn --runtime-mode debug --android-cpu arm
./flutter/tools/gn --runtime-mode debug --android-cpu arm64
./flutter/tools/gn --runtime-mode debug --android-cpu x64
ninja -C out/android_debug
ninja -C out/android_debug_arm64
ninja -C out/android_debug_x64
ninja -C out/host_debug
ninja -C out/host_debug_arm64
ninja -C out/host_debug_x64

# opt-profile
./flutter/tools/gn --android --runtime-mode profile --android-cpu arm
./flutter/tools/gn --android --runtime-mode profile --android-cpu arm64
./flutter/tools/gn --android --runtime-mode profile --android-cpu x64
./flutter/tools/gn --runtime-mode profile --android-cpu arm
./flutter/tools/gn --runtime-mode profile --android-cpu arm64
./flutter/tools/gn --runtime-mode profile --android-cpu x64
ninja -C out/android_profile
ninja -C out/android_profile_arm64
ninja -C out/android_profile_x64
ninja -C out/host_profile
ninja -C out/host_profile_arm64
ninja -C out/host_profile_x64

# opt-release
./flutter/tools/gn --android --runtime-mode release --android-cpu arm
./flutter/tools/gn --android --runtime-mode release --android-cpu arm64
./flutter/tools/gn --android --runtime-mode release --android-cpu x64
./flutter/tools/gn --runtime-mode release --android-cpu arm
./flutter/tools/gn --runtime-mode release --android-cpu arm64
./flutter/tools/gn --runtime-mode release --android-cpu x64
ninja -C out/android_release
ninja -C out/android_release_arm64
ninja -C out/android_release_x64
ninja -C out/host_release
ninja -C out/host_release_arm64
ninja -C out/host_release_x64

编译IOS产物

# unopt-debug
# prepare build files for device-side executables.
./flutter/tools/gn --unoptimized --ios --runtime-mode debug --ios-cpu arm
./flutter/tools/gn --unoptimized --ios --runtime-mode debug --ios-cpu arm64
# prepare the build files for host-side executables.
./flutter/tools/gn --unoptimized --runtime-mode debug --ios-cpu arm
./flutter/tools/gn --unoptimized --runtime-mode debug --ios-cpu arm64
ninja -C out/ios_debug_unopt_arm
ninja -C out/ios_debug_unopt
ninja -C out/host_debug_unopt_arm
ninja -C out/host_debug_unopt

# unopt-profile
./flutter/tools/gn --unoptimized --ios --runtime-mode profile --ios-cpu arm
./flutter/tools/gn --unoptimized --ios --runtime-mode profile --ios-cpu arm64
./flutter/tools/gn --unoptimized --runtime-mode profile --ios-cpu arm
./flutter/tools/gn --unoptimized --runtime-mode profile --ios-cpu arm64
ninja -C out/ios_profile_unopt_arm
ninja -C out/ios_profile_unopt
ninja -C out/host_profile_unopt_arm
ninja -C out/host_profile_unopt

# unopt-release
./flutter/tools/gn --unoptimized --ios --runtime-mode release --ios-cpu arm
./flutter/tools/gn --unoptimized --ios --runtime-mode release --ios-cpu arm64
./flutter/tools/gn --unoptimized --runtime-mode release --ios-cpu arm
./flutter/tools/gn --unoptimized --runtime-mode release --ios-cpu arm64
ninja -C out/ios_release_unopt_arm
ninja -C out/ios_release_unopt
ninja -C out/host_release_unopt_arm
ninja -C out/host_release_unopt

# opt-debug
./flutter/tools/gn --ios --runtime-mode debug --ios-cpu arm
./flutter/tools/gn --ios --runtime-mode debug --ios-cpu arm64
./flutter/tools/gn --runtime-mode debug --ios-cpu arm
./flutter/tools/gn --runtime-mode debug --ios-cpu arm64
ninja -C out/ios_debug_arm
ninja -C out/ios_debug
ninja -C out/host_debug_arm
ninja -C out/host_debug

# opt-profile
./flutter/tools/gn --ios --runtime-mode profile --ios-cpu arm
./flutter/tools/gn --ios --runtime-mode profile --ios-cpu arm64
./flutter/tools/gn --runtime-mode profile --ios-cpu arm
./flutter/tools/gn --runtime-mode profile --ios-cpu arm64
ninja -C out/ios_profile_arm
ninja -C out/ios_profile
ninja -C out/host_profile_arm
ninja -C out/host_profile

# opt-release
./flutter/tools/gn --ios --runtime-mode release --ios-cpu arm
./flutter/tools/gn --ios --runtime-mode release --ios-cpu arm64
./flutter/tools/gn --runtime-mode release --ios-cpu arm
./flutter/tools/gn --runtime-mode release --ios-cpu arm64
ninja -C out/ios_release_arm
ninja -C out/ios_release
ninja -C out/host_release_arm
ninja -C out/host_release

使用自定义的Flutter Engine环境

IOS部分

//修改的部分
FLUTTER_ENGINE=/Volumes/Seagate/flutter-engine/engine/src
LOCAL_ENGINE=ios_debug_sim_unopt

设置断点

br set -n "touchesBegan:withEvent:"

c

你可能感兴趣的:(Flutter,flutter,ios,xcode)