Build Chromium for iOS Device

1,057 views
Skip to first unread message

Miami Island

unread,
Mar 4, 2024, 4:31:06 PM3/4/24
to Chromium-dev
Hi,
I have built and run Chromium on iOS Simulator from Chromium. I use this tutorial - https://ashok-b.medium.com/building-chromium-for-ios-75046519cfb
In simulator work fine.
About run in device:
I use Xcode 15.1, IOS 17.3.1
I run -  autoninja -C out/Debug-iphoneos gn_all
target_os = "ios"
is_debug = true
enable_dsyms = false
enable_stripping = false
is_official_build = false
is_chrome_branded = false
target_cpu = "arm64"
target_environment = "device"
target_os = "ios"
enable_remoting = false

I try this way to run easy on device:
– vipin...@gmail.com, Chromium-dev
The easiest way to do this would be to use xcode automatic mobileprovisions generations.

1. disable any ios_enable_XXX_extension in ios/build/chrome_build.gni (it would make things more difficult).
2. update the group prefix in build/config/ios/ios_sdk.gni
3. generate xcode project by running : python ios/build/tools/setup-gn.py 
4. build : ninja -C out/Debug-iphoneos chrome
5. open the project out/build/all.xcworkspace in xcode
6. in the chrome project settings, enable "automatically manage signing" and select your certificate
7. in Build Settings, set the Info.plist path for debug to point to out/Debug-iphoneos/Chromium.app/Info.plist
8. press run for the chrome project
9. enjoy

On 7 I get error Cycle error 

Снимок экрана 2024-03-03 в 16.05.54.png

I try run with automatic sign in, I try with create profile i always get 1 error.

Снимок экрана 2024-03-03 в 15.47.13.png

Снимок экрана 2024-03-03 в 15.48.01.png

In my device I don't have certificates or something else in VPN & Device Management

IMG_4947.PNG

Maybe you have some video instruction how to run Chromium in device?
Thank for answer.
Best Regards Evgeniy.

Mike Dougherty

unread,
Mar 4, 2024, 9:15:38 PM3/4/24
to evgeni...@gmail.com, Chromium-dev
I'm not sure if anyone here uses automatic code signing to build Chrome (or a Chromium variant) for iOS. The official instructions to build for device are here. If you follow those steps instead, it may be easier to provide help debugging the build. (But also search through the list archives as there have been similar questions in the past.) It shouldn't be too complicated to manually generate and download the profiles instead. (Xcode can download manually created profiles for you in Xcode > Settings > Accounts > "Download Manual Profiles")

Also did notice that the article you linked is a bit older. iOS now requires the com.apple.developer.kernel.extended-virtual-addressing entitlement as noted here so you may need to set that in the Xcode UI in order for the provisioning profile to include the entitlement.

- Mike

--
--
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/f1ea63d1-9d07-4180-8eb2-3edb5e18d2fen%40chromium.org.
Reply all
Reply to author
Forward
0 new messages