lim 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/commands/xcode/build.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -416,7 +416,7 @@ lim xcode build ./MyProject --scheme MyApp --workspace MyApp.xcworkspace
|
|
|
416
416
|
lim xcode build ./MyProject --scheme MyApp --upload my-app-build
|
|
417
417
|
|
|
418
418
|
# Build with app config values available as Xcode build settings
|
|
419
|
-
lim xcode build ./MyProject --scheme MyApp --build-setting SWIFT_ACTIVE_COMPILATION_CONDITIONS
|
|
419
|
+
lim xcode build ./MyProject --scheme MyApp --build-setting 'SWIFT_ACTIVE_COMPILATION_CONDITIONS=$(inherited) LIMRUN' --build-setting APP_CONFIG_DEV_LOGIN_SECRET="$DEV_LOGIN_SECRET"
|
|
420
420
|
|
|
421
421
|
# Signed device build
|
|
422
422
|
lim xcode build ./MyProject --scheme MyApp --certificate-p12 ./certificate.p12 --certificate-password "$P12_PASSWORD" --provisioning-profile ./profile.mobileprovision --upload signed-device-build.ipa
|
|
@@ -658,7 +658,7 @@ lim asset pull my-app-build -o ./build-output
|
|
|
658
658
|
|
|
659
659
|
`lim xcode build [PATH]` automatically performs a one-shot code sync for the given project path before invoking `xcodebuild`. The sync step automatically ignores build artifacts (`build/`, `DerivedData/`, `.build/`), dependency folders (`Pods/`, `Carthage/Build/`, `.swiftpm/`), and user-specific files (`xcuserdata/`, `.dSYM/`).
|
|
660
660
|
|
|
661
|
-
Pass `--build-setting KEY=VALUE` to set Xcode build settings on the build. Allowed keys are a server-maintained allowlist of safe settings (currently `SWIFT_ACTIVE_COMPILATION_CONDITIONS`) plus any `APP_CONFIG_*` key for app configuration. Keys are passed to xcodebuild verbatim; use `$(inherited)` to append rather than replace, e.g. `--build-setting SWIFT_ACTIVE_COMPILATION_CONDITIONS
|
|
661
|
+
Pass `--build-setting KEY=VALUE` to set Xcode build settings on the build. Allowed keys are a server-maintained allowlist of safe settings (currently `SWIFT_ACTIVE_COMPILATION_CONDITIONS`) plus any `APP_CONFIG_*` key for app configuration. Keys are passed to xcodebuild verbatim; use `$(inherited)` to append rather than replace, e.g. `--build-setting 'SWIFT_ACTIVE_COMPILATION_CONDITIONS=$(inherited) LIMRUN'` (single-quote it so your shell does not evaluate `$(inherited)`) enables `#if LIMRUN`. An `APP_CONFIG_DEV_LOGIN_SECRET` value is referenced in `Info.plist` as `<string>$(APP_CONFIG_DEV_LOGIN_SECRET)</string>` and read at runtime with `Bundle.main`; its value is redacted in build logs.
|
|
662
662
|
|
|
663
663
|
Provide `--certificate-p12`, `--certificate-password`, and `--provisioning-profile` together to sign a real-device build. When signing assets are provided without `--sdk`, the CLI builds with `iphoneos`; pass `--sdk watchos` for signed watchOS device builds.
|
|
664
664
|
|
|
@@ -187,7 +187,7 @@ XcodeBuild.examples = [
|
|
|
187
187
|
'<%= config.bin %> xcode build ./MyProject --scheme MyApp --certificate-p12 ./certificate.p12 --certificate-password "$P12_PASSWORD" --provisioning-profile ./profile.mobileprovision --upload signed-device-build.ipa',
|
|
188
188
|
'<%= config.bin %> xcode build --id <ios-instance-ID> --project MyApp.xcodeproj --upload ios-build.zip',
|
|
189
189
|
'<%= config.bin %> xcode build --signed-upload-url <url>',
|
|
190
|
-
|
|
190
|
+
`<%= config.bin %> xcode build ./MyProject --build-setting 'SWIFT_ACTIVE_COMPILATION_CONDITIONS=$(inherited) LIMRUN' --build-setting APP_CONFIG_DEV_LOGIN_SECRET="$DEV_LOGIN_SECRET"`,
|
|
191
191
|
'<%= config.bin %> xcode build ./MyProject --basis-cache-dir ./.limsync-cache --max-patch-bytes 2097152',
|
|
192
192
|
'<%= config.bin %> xcode build ./MyProject --ignore "\\\\.xcuserdata/"',
|
|
193
193
|
'<%= config.bin %> xcode build ./MyProject --additional-file ~/.netrc=~/.netrc',
|