Errors while build iOS simulator on MacOS

574 views
Skip to first unread message

Dean Wedel

unread,
Nov 28, 2023, 11:29:52 AM11/28/23
to Chromium-dev
The backstory is that I've updated Xcode to 14.3 on my MacBook and now I can't build Chromium for simulator.

Any suggestion what I'm doing wrong from this output?

% autoninja -C out/Debug-iphonesimulator chrome                                     

ninja: Entering directory `out/Debug-iphonesimulator'

[775/25668] SWIFT gen/ios/chrome/browser/shared/ui/util/ios_chrome_browser_shared_ui_util_util_swift.swiftmodule

FAILED: gen/ios/chrome/browser/shared/ui/util/ios_chrome_browser_shared_ui_util_util_swift.swiftmodule 

TOOL_VERSION=1700866067 python3 ../../build/toolchain/ios/swiftc.py -module-name ios_chrome_browser_shared_ui_util_util_swift -root-dir ../../ -object-dir obj/ios/chrome/browser/shared/ui/util/util_swift -pch-output-dir obj/ios/chrome/browser/shared/ui/util/ios_chrome_browser_shared_ui_util_util_swift:pch/ -module-path gen/ios/chrome/browser/shared/ui/util/ios_chrome_browser_shared_ui_util_util_swift.swiftmodule -header-path gen/ios/chrome/browser/shared/ui/util/util_swift.h -depfile obj/ios/chrome/browser/shared/ui/util/ios_chrome_browser_shared_ui_util_util_swift.d -bridge-header ""  -swiftc-version swift-5.8-release -xcode-version 14E222b -swift-toolchain-path ../../third_party/swift-toolchain/ -fix-module-imports -target x86_64-apple-ios15.0-simulator -swift-version 5 -file-compilation-dir=. -g -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk -I../.. -Igen -I../../buildtools/third_party/libc++  ../../ios/chrome/browser/shared/ui/util/UIView+WindowCoordinates.swift ../../ios/chrome/browser/shared/ui/util/UIView+WindowObserving.swift ../../ios/chrome/browser/shared/ui/util/frame_layout_guide.swift ../../ios/chrome/browser/shared/ui/util/layout_guide_center.swift



I think that my args.gn is normal:

is_debug = true   

enable_dsyms = false

enable_stripping = false

is_official_build = false

is_chrome_branded = false

target_cpu = "x64"

target_environment = "simulator"

enable_remoting = false

K. Moon

unread,
Nov 28, 2023, 1:21:34 PM11/28/23
to dean....@gmail.com, Chromium-dev
The only message here is that running the command that compiled a .swift file failed. I don't think this is enough to go on, unfortunately.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/d8042b0b-9ac2-4a97-8d7c-6292cefaecc6n%40chromium.org.

Dean Wedel

unread,
Nov 28, 2023, 2:18:48 PM11/28/23
to Chromium-dev, K. Moon, Chromium-dev, dean....@gmail.com
I re-ran the simulator build and here is the output ~ maybe this error will show something helpful?

% autoninja -C out/Debug-iphonesimulator chrome                                             

ninja: Entering directory `out/Debug-iphonesimulator'

[718/57205] ACTION //chrome/browser/resources/gaia_auth_host:build_injected_scripts__bundle_js(//build/toolchain/mac:clang_x64)

FAILED: gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts_bundled/saml_injected.rollup.js gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts_bundled/saml_injected.rollup.js.map gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts_bundled/rollup.config.mjs gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts_bundled/build_injected_scripts__bundle_js_requestlist.txt 

python3 ../../ui/webui/resources/tools/bundle_js.py --host about:blank --input gen/chrome/browser/resources/gaia_auth_host/stage --out_folder gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts_bundled --depfile gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts__bundle_js.d --target_name build_injected_scripts__bundle_js --exclude chrome://resources/mojo/mojo/public/js/bindings.js //resources/mojo/mojo/public/js/bindings.js chrome://resources/mojo/mojo/public/mojom/base/time.mojom-lite.js //resources/mojo/mojo/public/mojom/base/time.mojom-lite.js chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js //resources/polymer/v3_0/polymer/polymer_bundled.min.js chrome://resources/js/cr.js //resources/js/cr.js chrome://resources/js/load_time_data.js //resources/js/load_time_data.js chrome://resources/ash/common/load_time_data.m.js //resources/ash/common/load_time_data.m.js chrome://resources/mwc/lit/index.js //resources/mwc/lit/index.js --external_paths chrome://resources/polymer/v3_0/\|../../third_party/polymer/v3_0/components-chromium/ //resources/polymer/v3_0/\|../../third_party/polymer/v3_0/components-chromium/ chrome://resources/\|gen/ui/webui/resources/tsc/ //resources/\|gen/ui/webui/resources/tsc/ --js_module_in_files saml_injected.js

Traceback (most recent call last):

  File "/Users/dewdel/chromium5/src/out/Debug-iphonesimulator/../../ui/webui/resources/tools/bundle_js.py", line 277, in <module>

    main(sys.argv[1:])

  File "/Users/dewdel/chromium5/src/out/Debug-iphonesimulator/../../ui/webui/resources/tools/bundle_js.py", line 250, in main

    optimize_output = _optimize(args.input, args)

  File "/Users/dewdel/chromium5/src/out/Debug-iphonesimulator/../../ui/webui/resources/tools/bundle_js.py", line 217, in _optimize

    js_module_out_files = _bundle(out_path, in_path, manifest_out_path, args,

  File "/Users/dewdel/chromium5/src/out/Debug-iphonesimulator/../../ui/webui/resources/tools/bundle_js.py", line 171, in _bundle

    node.RunNode([node_modules.PathToRollup()] + rollup_args + [

  File "/Users/dewdel/chromium5/src/third_party/node/node.py", line 28, in RunNode

    stdout, stderr = process.communicate()

  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1134, in communicate

    stdout, stderr = self._communicate(input, endtime, timeout)

  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 2021, in _communicate

    stderr = self._translate_newlines(stderr,

  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1011, in _translate_newlines

    data = data.decode(encoding, errors)

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 136: ordinal not in range(128)

[727/57205] ACTION //chrome/browser/metrics:expired_histograms_array(//build/toolchain/mac:clang_x64)

ninja: build stopped: subcommand failed.


Mike Dougherty

unread,
Nov 28, 2023, 2:35:54 PM11/28/23
to dean....@gmail.com, Chromium-dev, K. Moon
I'm not sure if 14.3 is currently supported. Is there a reason that you just updated to Xcode 14.3? 15.1 is the current Stable Xcode from the App Store, but I can build successfully with Xcode 15.0

A few other things to try:
  • Make sure to manually launch Xcode once after upgrade as you may need to accept the agreement.
  • Can you build a smaller target? For example, //base or //ios/web/shell
- Mike

Dean Wedel

unread,
Nov 28, 2023, 3:31:59 PM11/28/23
to Chromium-dev, Mike Dougherty, Chromium-dev, K. Moon, dean....@gmail.com
Thanks for that recommendation. I've updated to Xcode 15.0.1 (the App Store version) and went through the "Xcode Update" steps listed on:

Now when I attempt to build the simulator I get this output failure:

% gn args out/Debug-iphonesimulator        

Waiting for editor on "/Users/dewdel/chromium5/src/out/Debug-iphonesimulator/args.gn"...

Generating files...

Done. Made 18533 targets from 3497 files in 7596ms


% autoninja -C out/Debug-iphonesimulator chrome

ninja: Entering directory `out/Debug-iphonesimulator'

[0/1] Regenerating ninja files

[285/56776] ACTION //chrome/browser/resources/gaia_auth_host:build_injected_scripts__bundle_js(//build/toolchain/mac:clang_x64)

FAILED: gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts_bundled/saml_injected.rollup.js gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts_bundled/saml_injected.rollup.js.map gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts_bundled/rollup.config.mjs gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts_bundled/build_injected_scripts__bundle_js_requestlist.txt 

python3 ../../ui/webui/resources/tools/bundle_js.py --host about:blank --input gen/chrome/browser/resources/gaia_auth_host/stage --out_folder gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts_bundled --depfile gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts__bundle_js.d --target_name build_injected_scripts__bundle_js --exclude chrome://resources/mojo/mojo/public/js/bindings.js //resources/mojo/mojo/public/js/bindings.js chrome://resources/mojo/mojo/public/mojom/base/time.mojom-lite.js //resources/mojo/mojo/public/mojom/base/time.mojom-lite.js chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js //resources/polymer/v3_0/polymer/polymer_bundled.min.js chrome://resources/js/cr.js //resources/js/cr.js chrome://resources/js/load_time_data.js //resources/js/load_time_data.js chrome://resources/ash/common/load_time_data.m.js //resources/ash/common/load_time_data.m.js chrome://resources/mwc/lit/index.js //resources/mwc/lit/index.js --external_paths chrome://resources/polymer/v3_0/\|../../third_party/polymer/v3_0/components-chromium/ //resources/polymer/v3_0/\|../../third_party/polymer/v3_0/components-chromium/ chrome://resources/\|gen/ui/webui/resources/tsc/ //resources/\|gen/ui/webui/resources/tsc/ --js_module_in_files saml_injected.js

Traceback (most recent call last):

  File "/Users/dewdel/chromium5/src/out/Debug-iphonesimulator/../../ui/webui/resources/tools/bundle_js.py", line 277, in <module>

    main(sys.argv[1:])

  File "/Users/dewdel/chromium5/src/out/Debug-iphonesimulator/../../ui/webui/resources/tools/bundle_js.py", line 250, in main

    optimize_output = _optimize(args.input, args)

  File "/Users/dewdel/chromium5/src/out/Debug-iphonesimulator/../../ui/webui/resources/tools/bundle_js.py", line 217, in _optimize

    js_module_out_files = _bundle(out_path, in_path, manifest_out_path, args,

  File "/Users/dewdel/chromium5/src/out/Debug-iphonesimulator/../../ui/webui/resources/tools/bundle_js.py", line 171, in _bundle

    node.RunNode([node_modules.PathToRollup()] + rollup_args + [

  File "/Users/dewdel/chromium5/src/third_party/node/node.py", line 28, in RunNode

    stdout, stderr = process.communicate()

  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1134, in communicate

    stdout, stderr = self._communicate(input, endtime, timeout)

  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 2021, in _communicate

    stderr = self._translate_newlines(stderr,

  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1011, in _translate_newlines

    data = data.decode(encoding, errors)

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 136: ordinal not in range(128)

[294/56776] CXX obj/buildtools/third_party/libc++abi/libc++abi/cxa_demangle.o

ninja: build stopped: subcommand failed.


Any suggestions for what I should try?

Mike Dougherty

unread,
Nov 28, 2023, 3:53:29 PM11/28/23
to Dean Wedel, Chromium-dev, Mike Dougherty, K. Moon
Sorry, I missed this before but I believe the target is the problem. The `chrome` target is desktop chrome. I noticed this because files under //chrome are not used by iOS and that is where your failure occurs.

You can try this instead:
autoninja -C out/Debug-iphonesimulator/ ios/chrome/app

or launch the xcode project and try building from there instead.

K. Moon

unread,
Nov 28, 2023, 4:03:44 PM11/28/23
to Mike Dougherty, Dean Wedel, Chromium-dev
This line:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 136: ordinal not in range(128)

suggests to me that the Python script is trying to decode UTF-8 as ASCII, which then fails. I don't have any idea why that's happening, though.

Dean Wedel

unread,
Nov 28, 2023, 4:18:38 PM11/28/23
to Chromium-dev, K. Moon, Dean Wedel, Chromium-dev, Mike Dougherty
Thanks again for the input.  Using Mike's suggestion I get a failure because of an unknown "target" but that got me thinking to try re-running the Python setup script. 
So I did:

% python3 ios/build/tools/setup-gn.py

% autoninja -C out/Debug-iphonesimulator gn_all


Which compiled until it generated this error which is the "Unicode/Decode" problem again:

[1394/61805] SWIFT gen/ios/chrome/browser/shared/ui/util/ios_chrome_browser_shared_ui_util_util_swift.swiftmodule

FAILED: gen/ios/chrome/browser/shared/ui/util/ios_chrome_browser_shared_ui_util_util_swift.swiftmodule 

TOOL_VERSION=1701202638 python3 ../../build/toolchain/ios/swiftc.py -module-name ios_chrome_browser_shared_ui_util_util_swift -root-dir ../../ -object-dir obj/ios/chrome/browser/shared/ui/util/util_swift -pch-output-dir obj/ios/chrome/browser/shared/ui/util/ios_chrome_browser_shared_ui_util_util_swift:pch/ -module-path gen/ios/chrome/browser/shared/ui/util/ios_chrome_browser_shared_ui_util_util_swift.swiftmodule -header-path gen/ios/chrome/browser/shared/ui/util/util_swift.h -depfile obj/ios/chrome/browser/shared/ui/util/ios_chrome_browser_shared_ui_util_util_swift.d -bridge-header ""  -xcode-version 15A507 -fix-module-imports -target x86_64-apple-ios15.0-simulator -swift-version 5 -file-compilation-dir=. -g -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -I../.. -Igen -I../../buildtools/third_party/libc++  ../../ios/chrome/browser/shared/ui/util/UIView+WindowCoordinates.swift ../../ios/chrome/browser/shared/ui/util/UIView+WindowObserving.swift ../../ios/chrome/browser/shared/ui/util/frame_layout_guide.swift ../../ios/chrome/browser/shared/ui/util/layout_guide_center.swift

Traceback (most recent call last):

  File "/Users/dewdel/chromium5/src/out/Debug-iphonesimulator/../../build/toolchain/ios/swiftc.py", line 327, in <module>

    sys.exit(main(sys.argv[1:]))

  File "/Users/dewdel/chromium5/src/out/Debug-iphonesimulator/../../build/toolchain/ios/swiftc.py", line 323, in main

    compile_module(parsed.module_name, parsed.sources, parsed, extras, tmpdir)

  File "/Users/dewdel/chromium5/src/out/Debug-iphonesimulator/../../build/toolchain/ios/swiftc.py", line 205, in compile_module

    fix_module_imports(header_path, settings.header_path)

  File "/Users/dewdel/chromium5/src/out/Debug-iphonesimulator/../../build/toolchain/ios/swiftc.py", line 29, in fix_module_imports

    for line in header_file:

  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/encodings/ascii.py", line 26, in decode

    return codecs.ascii_decode(input, self.errors)[0]

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1911: ordinal not in range(128)


I'm clueless about the ascii-codec decode thing or even what that part of the build process is needing to accomplish.

K. Moon

unread,
Nov 28, 2023, 4:35:04 PM11/28/23
to Dean Wedel, Chromium-dev, Mike Dougherty
Looking at the code in swiftc.py (for line in header_file:), this failure is from reading a file using open() without any explicit encoding (which uses the system encoding), which is why you're seeing this problem in multiple Python scripts.

This is most likely something specific to your system configuration. Make sure your system is configured to use a Unicode locale (if you've set the LANG environment variable, for example).

You can try running this command to see what Python thinks the system encoding should be:

python3 -c "import locale; print(locale.getpreferredencoding())"

Dean Wedel

unread,
Nov 28, 2023, 4:50:40 PM11/28/23
to Chromium-dev, K. Moon, Chromium-dev, Mike Dougherty, Dean Wedel
Thanks!

This is what I get:

% python3 -c "import locale; print(locale.getpreferredencoding())"

US-ASCII

% $LANG

zsh: command not found: en_US.US-ASCII


K. Moon

unread,
Nov 28, 2023, 4:59:17 PM11/28/23
to Dean Wedel, Chromium-dev, Mike Dougherty
Your LANG (and LC_ALL, if set) should be set to something like "en_US.UTF-8", rather than "en_US.US-ASCII".

It's probably a good idea to track down where the "en_US.US-ASCII" is coming from, since this is probably going to interfere with other programs, too. The Terminal app may have a setting for this.

Dean Wedel

unread,
Nov 28, 2023, 5:04:12 PM11/28/23
to Chromium-dev, K. Moon, Chromium-dev, Mike Dougherty, Dean Wedel
That was the answer! And thanks to both of you for all of your help, input, and support!

I did this command and now it's building without errors:

% export LANG=en_US.UTF-8


K. Moon

unread,
Nov 28, 2023, 5:10:43 PM11/28/23
to Dean Wedel, Chromium-dev, Mike Dougherty
Glad to hear you got it figured out! As a general rule, Chromium development expects a Unicode-supporting environment.

Other places to check where the locale might be getting set are your shell profile files (such as .zsh or .bashrc).

Dean Wedel

unread,
Nov 28, 2023, 6:07:49 PM11/28/23
to Chromium-dev, K. Moon, Chromium-dev, Mike Dougherty, Dean Wedel
I'm afraid that I spoke too soon. . . . 

Now I see that it failed with the following:

FAILED: gen/material_component_ic_arrow_back_bundle_bundle/Assets.car 

TOOL_VERSION=1696605901 python3 ../../build/toolchain/ios/compile_xcassets.py -p 'ios' -e 'device' -t '15.0' -T '' -P '' -o gen/material_component_ic_arrow_back_bundle_bundle/Assets.car ../../ios/third_party/material_components_ios/src/components/private/Icons/icons/ic_arrow_back/src/MaterialIcons_ic_arrow_back.xcassets

/* com.apple.actool.errors */

../../ios/third_party/material_components_ios/src/components/private/Icons/icons/ic_arrow_back/src/MaterialIcons_ic_arrow_back.xcassets: error: Failed to launch AssetCatalogSimulatorAgent via CoreSimulator spawn

    Failure Reason: Failed to spawn AssetCatalogSimulatorAgent on IBSimDeviceTypeiPad3x (05B22ADC-94B7-4881-B888-4E6BEC0027FF, (null), Shutdown)

    Underlying Errors:

        Description: Invalid device: The specified device is not available for spawning processes.

/* com.apple.actool.compilation-results */

/var/folders/p4/bpvglryx70dfmsvddyv5rtnc0000gp/T/tmpikdy5gmu.plist


[452/30177] ACTION //ios/chrome/app/resources:launchscreen_xib_compile_xib(//build/toolchain/ios:ios_clang_arm64)

FAILED: gen/ios/chrome/app/resources/launchscreen_xib_compile_xib/LaunchScreen.nib 

python3 ../../build/config/ios/compile_ib_files.py --input ../../ios/chrome/app/resources/LaunchScreen.xib --output gen/ios/chrome/app/resources/launchscreen_xib_compile_xib/LaunchScreen.nib --minimum-deployment-target 15.0 --auto-activate-custom-fonts --target-device iphone --target-device ipad

2023-11-28 15:53:39.960 ibtoold[1725:12195] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEInterfaceBuilder/IDEInterfaceBuilder-22155/InterfaceBuilderKit/Utilities/IBAbstractInterfaceBuilderPlatformToolManager.m:548

Details:  Failed to attach to IBAgent-iOS with error: Error Domain=com.apple.InterfaceBuilder Code=-1 "Encountered an error communicating with IBAgent-iOS." UserInfo={NSLocalizedFailureReason=IBAgent-iOS (-1) failed to launch, NSUnderlyingError=0x6000038518f0 {Error Domain=com.apple.CoreSimulator.SimError Code=404 "Failed to launch IBAgent-iOS via CoreSimulator spawn" UserInfo={NSLocalizedFailureReason=Failed to spawn IBAgent-iOS on IBSimDeviceTypeiPad2x (2C2E3EBE-C347-46BB-BA1E-FD2B45FE1D3E, (null), Shutdown), NSLocalizedDescription=Failed to launch IBAgent-iOS via CoreSimulator spawn, NSUnderlyingError=0x600003837000 {Error Domain=com.apple.CoreSimulator.SimError Code=404 "Invalid device: The specified device is not available for spawning processes." UserInfo={NSLocalizedDescription=Invalid device: The specified device is not available for spawning processes.}}}}, NSLocalizedRecoverySuggestion=Please check Console.app for crash reports for "IBAgent-iOS" for further information., NSLocalizedDescription=Encountered an error communicating with IBAgent-iOS.}

Object:   <IBCocoaTouchToolManager>

Method:   +_THREADSAFE_launchNewToolWithLaunchContext:executionContext:toolProxyClass:proxyDelegate:failureContext:requestingMethod:error:forReason:

Thread:   <_NSMainThread: 0x600003e24080>{number = 1, name = main}

Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.

2023-11-28 15:53:39.962 ibtoold[1725:12195] [MT] IBPlatformTool: *** Failed to launch tool with description <IBCocoaTouchPlatformToolDescription: 0x600002ea0e00> System content for IBCocoaTouchFramework-fifteenAndLater <IBScaleFactorDeviceTypeDescription: 0x600002ea0ea0> scaleFactor=2x, renderMode.identifier=(null): Encountered an error communicating with IBAgent-iOS. (Failure reason: IBAgent-iOS (-1) failed to launch): Failed to launch IBAgent-iOS via CoreSimulator spawn (Failure reason: Failed to spawn IBAgent-iOS on IBSimDeviceTypeiPad2x (2C2E3EBE-C347-46BB-BA1E-FD2B45FE1D3E, (null), Shutdown)): Invalid device: The specified device is not available for spawning processes.

b'/* com.apple.ibtool.errors */\n/Users/dewdel/chromium5/src/ios/chrome/app/resources/LaunchScreen.xib: error: Encountered an error communicating with IBAgent-iOS.\n    Failure Reason: IBAgent-iOS (-1) failed to launch\n    Recovery Suggestion: Please check Console.app for crash reports for "IBAgent-iOS" for further information.\n    Underlying Errors:\n        Description: Failed to launch IBAgent-iOS via CoreSimulator spawn\n        Failure Reason: Failed to spawn IBAgent-iOS on IBSimDeviceTypeiPad2x (2C2E3EBE-C347-46BB-BA1E-FD2B45FE1D3E, (null), Shutdown)\n        Underlying Errors:\n            Description: Invalid device: The specified device is not available for spawning processes.\n'

Traceback (most recent call last):

  File "/Users/dewdel/chromium5/src/out/Release-iphoneos/../../build/config/ios/compile_ib_files.py", line 56, in <module>

    sys.exit(main())

  File "/Users/dewdel/chromium5/src/out/Release-iphoneos/../../build/config/ios/compile_ib_files.py", line 39, in main

    stdout = subprocess.check_output(ibtool_args)

  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 424, in check_output

    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,

  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run

    raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command '['xcrun', 'ibtool', '--errors', '--warnings', '--notices', '--output-format', 'human-readable-text', '--minimum-deployment-target', '15.0', '--auto-activate-custom-fonts', '--target-device', 'iphone', '--target-device', 'ipad', '--compile', '/Users/dewdel/chromium5/src/out/Release-iphoneos/gen/ios/chrome/app/resources/launchscreen_xib_compile_xib/LaunchScreen.nib', '/Users/dewdel/chromium5/src/ios/chrome/app/resources/LaunchScreen.xib']' returned non-zero exit status 1.

[456/30177] CXX obj/skia/skia_core_and_effects/SkBlurMaskFilterImpl.o

ninja: build stopped: subcommand failed.

dewdel@MyMacs-MacBook-Pro src % autoninja -C out/Debug-iphonesimulator gn_all              

ninja: Entering directory `out/Debug-iphonesimulator'

[3983/60323] ACTION //ios/showcase/core/resources:launchscreen_xib_compile_storyboard(//build/toolchain/ios:ios_clang_x64)


Can you give tell me what's going wrong here?

K. Moon

unread,
Nov 28, 2023, 7:03:52 PM11/28/23
to Dean Wedel, Chromium-dev, Mike Dougherty
This looks related to launching the iOS simulator. Perhaps look at Console.app for further details, like the error message suggested?

Dean Wedel

unread,
Nov 29, 2023, 11:06:47 AM11/29/23
to Chromium-dev, K. Moon, Chromium-dev, Mike Dougherty, Dean Wedel
Alright, I figured out that the problem was that Xcode hadn't install the "simulator" package at all. I downloaded that from within Xcode and now it appears to be building again. . .

K. Moon

unread,
Nov 29, 2023, 11:13:17 AM11/29/23
to Dean Wedel, Chromium-dev, Mike Dougherty
Thanks for sharing your solution!

Sylvain Defresne

unread,
Nov 29, 2023, 12:07:58 PM11/29/23
to km...@chromium.org, Dean Wedel, Chromium-dev, Mike Dougherty
Sorry about. We forgot to document this quirk of the build system. This should be fixed with CL 5071155.

The build uses `actool` to compile the assets catalog (this is the tool used by Xcode). The tool requires the installation of the iOS simulator (this is a weird dependency if you ask me). With Xcode 15.0, the iOS simulator is now a separate download.

We should probably document that you need to install Xcode 15.0 or higher, and launch it to let it install the iOS simulator.
-- Sylvain

Dean Wedel

unread,
Dec 2, 2023, 4:32:26 PM12/2/23
to Chromium-dev, Sylvain Defresne, Dean Wedel, Chromium-dev, Mike Dougherty, km...@chromium.org
Thanks to all of you for the help. I can now build for the simulator and also for iOS device.

If any of you have time I'd appreciate some help regarding provisions on another question I posted here:

Dean

Reply all
Reply to author
Forward
0 new messages