2018年8月1日
1.准备
xcode 9.0以上、mac安装10.12.6以上、JDK下载&安装
2.建立目录&安装depot_tools
打开termina
cd ~/Documents/
mkdir chromium && cd chromium
3.下载代码
fetch --no-history ios (大约8G)
中途断掉 使用 gclient sync --no-history 继续同步
4.设置&编译
cd src
python ios/build/tools/setup-gn.py
ninja -C out/Debug-iphonesimulator gn_all (2个小时以上)
中途断掉的话,先尝试gclient runhooks 然后gclient sync --no-history再重新ninja -C out/Debug-iphonesimulator gn_all
5.运行
编译完运行输入 out/Debug-iphonesimulator/iossimout/Debug-iphonesimulator/ios_web_shell.app 回车
根据提示打开对应的模拟器
done