Update iOS build instructions.
Updates information on managing newer versions of Xcode, and handling older devices. Change-Id: I6701c17268b013e3a57da931a73c49c25cb0bcfa Reviewed-on: https://skia-review.googlesource.com/c/skia/+/268630 Reviewed-by: Heather Miller <hcm@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>
This commit is contained in:
parent
25cf469a11
commit
7128bacaf8
@ -245,14 +245,24 @@ For signed packages `ios-deploy` makes installing and running them on a device e
|
|||||||
|
|
||||||
ios-deploy -b out/Debug/dm.app -d --args "--match foo"
|
ios-deploy -b out/Debug/dm.app -d --args "--match foo"
|
||||||
|
|
||||||
Alternatively you can generate an Xcode project by passing `--ide=xcode` to `bin/gn gen`.
|
Alternatively you can generate an Xcode project by passing `--ide=xcode` to `bin/gn gen`. If you
|
||||||
|
are using Xcode version 10 or later, you'll need to go to `Workplace Settings...` and change
|
||||||
|
`Build System:` to `Legacy Build System`. You may find you still have issues with building or
|
||||||
|
signing -- in that case you'll need to go to the `Signing and Capabilities` settings for the
|
||||||
|
target, uncheck `Automatically manage signing`, and fill in the bundle identifier and provisioning
|
||||||
|
information manually.
|
||||||
|
|
||||||
If you find yourself missing a Google signing identity or provisioning profile,
|
If you find yourself missing a Google signing identity or provisioning profile,
|
||||||
you'll want to have a read through go/appledev.
|
you'll want to have a read through go/appledev.
|
||||||
|
|
||||||
Deploying to a device with an OS older than the current SDK doesn't currently work through Xcode,
|
Deploying to a device with an OS older than the current SDK doesn't currently work through Xcode,
|
||||||
but can be done on the command line by setting the environment variable IPHONEOS_DEPLOYMENT_TARGET
|
but can be done by setting the following as GN args:
|
||||||
to the desired OS version.
|
|
||||||
|
extra_cflags = ["-miphoneos-version-min=<major>.<minor>"]
|
||||||
|
extra_asmflags=["-miphoneos-version-min=<major>.<minor>"]
|
||||||
|
extra_ldflags =["-miphoneos-version-min=<major>.<minor>"]
|
||||||
|
|
||||||
|
where <major>.<minor> is the iOS version on the device, e.g., 12.0 or 11.4.
|
||||||
|
|
||||||
<span id="windows">Windows</span>
|
<span id="windows">Windows</span>
|
||||||
---------------------------------
|
---------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user