2022-08-15 18:43:50 +03:00
|
|
|
name: {{app.name}}
|
|
|
|
options:
|
2024-05-24 15:22:41 +03:00
|
|
|
bundleIdPrefix: {{reverse-domain app.identifier}}
|
2022-08-15 18:43:50 +03:00
|
|
|
deploymentTarget:
|
|
|
|
iOS: {{apple.ios-version}}
|
|
|
|
fileGroups: [{{join file-groups}}]
|
|
|
|
configs:
|
|
|
|
debug: debug
|
|
|
|
release: release
|
|
|
|
settingGroups:
|
|
|
|
app:
|
|
|
|
base:
|
2023-08-05 14:59:19 +03:00
|
|
|
PRODUCT_NAME: {{app.stylized-name}}
|
2024-05-24 15:22:41 +03:00
|
|
|
PRODUCT_BUNDLE_IDENTIFIER: {{reverse-domain app.identifier}}
|
2024-02-21 15:52:46 +03:00
|
|
|
{{#if apple.development-team}}
|
2022-08-15 18:43:50 +03:00
|
|
|
DEVELOPMENT_TEAM: {{apple.development-team}}
|
2024-02-21 15:52:46 +03:00
|
|
|
{{/if}}
|
2024-07-12 17:08:55 +03:00
|
|
|
CODE_SIGN_STYLE: {{tauri.ios.code-sign-style}}
|
|
|
|
{{#if tauri.ios.code-sign-identity}}
|
|
|
|
CODE_SIGN_IDENTITY: "{{tauri.ios.code-sign-identity}}"
|
|
|
|
{{/if}}
|
|
|
|
{{#if tauri.ios.provisioning-profile-uuid}}
|
|
|
|
PROVISIONING_PROFILE_SPECIFIER: "{{tauri.ios.provisioning-profile-uuid}}"
|
|
|
|
{{/if}}
|
2022-08-15 18:43:50 +03:00
|
|
|
targetTemplates:
|
|
|
|
app:
|
|
|
|
type: application
|
|
|
|
sources:
|
|
|
|
- path: Sources
|
|
|
|
scheme:
|
|
|
|
environmentVariables:
|
|
|
|
RUST_BACKTRACE: full
|
|
|
|
RUST_LOG: info
|
|
|
|
settings:
|
|
|
|
groups: [app]
|
|
|
|
targets:
|
|
|
|
{{app.name}}_iOS:
|
|
|
|
type: application
|
|
|
|
platform: iOS
|
|
|
|
sources:
|
|
|
|
- path: Sources
|
2022-11-22 17:18:56 +03:00
|
|
|
- path: Assets.xcassets
|
2022-12-12 16:36:47 +03:00
|
|
|
- path: Externals
|
2023-07-18 16:20:32 +03:00
|
|
|
- path: {{app.name}}_iOS
|
2022-08-15 18:43:50 +03:00
|
|
|
- path: {{app.asset-dir}}
|
|
|
|
buildPhase: resources
|
|
|
|
type: folder
|
|
|
|
{{~#each asset-catalogs}}
|
|
|
|
- {{prefix-path this}}{{/each}}
|
|
|
|
{{~#each ios-additional-targets}}
|
|
|
|
- path: {{prefix-path this}}{{/each}}
|
2024-05-28 17:46:42 +03:00
|
|
|
- path: LaunchScreen.storyboard
|
2022-08-15 18:43:50 +03:00
|
|
|
info:
|
|
|
|
path: {{app.name}}_iOS/Info.plist
|
|
|
|
properties:
|
|
|
|
LSRequiresIPhoneOS: true
|
|
|
|
UILaunchStoryboardName: LaunchScreen
|
|
|
|
UIRequiredDeviceCapabilities: [arm64, metal]
|
|
|
|
UISupportedInterfaceOrientations:
|
|
|
|
- UIInterfaceOrientationPortrait
|
|
|
|
- UIInterfaceOrientationLandscapeLeft
|
|
|
|
- UIInterfaceOrientationLandscapeRight
|
|
|
|
UISupportedInterfaceOrientations~ipad:
|
|
|
|
- UIInterfaceOrientationPortrait
|
|
|
|
- UIInterfaceOrientationPortraitUpsideDown
|
|
|
|
- UIInterfaceOrientationLandscapeLeft
|
|
|
|
- UIInterfaceOrientationLandscapeRight
|
|
|
|
CFBundleShortVersionString: {{apple.bundle-version-short}}
|
|
|
|
CFBundleVersion: {{apple.bundle-version}}
|
|
|
|
{{~#each apple.plist-pairs}}
|
|
|
|
{{this.key}}: {{this.value}}{{/each}}
|
2023-07-18 16:20:32 +03:00
|
|
|
entitlements:
|
|
|
|
path: {{app.name}}_iOS/{{app.name}}_iOS.entitlements
|
2022-08-15 18:43:50 +03:00
|
|
|
scheme:
|
|
|
|
environmentVariables:
|
|
|
|
RUST_BACKTRACE: full
|
|
|
|
RUST_LOG: info
|
|
|
|
{{~#if ios-command-line-arguments}}
|
|
|
|
commandLineArguments:
|
|
|
|
{{~#each ios-command-line-arguments}}
|
|
|
|
"{{this}}": true
|
|
|
|
{{/each}}{{~/if}}
|
|
|
|
settings:
|
|
|
|
base:
|
|
|
|
ENABLE_BITCODE: false
|
|
|
|
ARCHS: [{{join ios-valid-archs}}]
|
|
|
|
VALID_ARCHS: {{~#each ios-valid-archs}} {{this}} {{/each}}
|
2023-11-14 04:35:43 +03:00
|
|
|
LIBRARY_SEARCH_PATHS[arch=x86_64]: $(inherited) $(PROJECT_DIR)/Externals/x86_64/$(CONFIGURATION) $(SDKROOT)/usr/lib/swift $(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME) $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)
|
|
|
|
LIBRARY_SEARCH_PATHS[arch=arm64]: $(inherited) $(PROJECT_DIR)/Externals/arm64/$(CONFIGURATION) $(SDKROOT)/usr/lib/swift $(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME) $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)
|
|
|
|
LIBRARY_SEARCH_PATHS[arch=arm64-sim]: $(inherited) $(PROJECT_DIR)/Externals/arm64-sim/$(CONFIGURATION) $(SDKROOT)/usr/lib/swift $(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME) $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)
|
2022-08-15 18:43:50 +03:00
|
|
|
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES: true
|
2023-11-14 04:35:43 +03:00
|
|
|
EXCLUDED_ARCHS[sdk=iphonesimulator*]: arm64
|
|
|
|
EXCLUDED_ARCHS[sdk=iphoneos*]: arm64-sim x86_64
|
2022-08-15 18:43:50 +03:00
|
|
|
groups: [app]
|
|
|
|
dependencies:
|
2023-03-15 19:43:31 +03:00
|
|
|
- framework: lib{{app.lib-name}}.a
|
2022-08-15 18:43:50 +03:00
|
|
|
embed: false
|
2022-11-11 17:43:25 +03:00
|
|
|
{{~#each ios-libraries}}
|
|
|
|
- framework: {{this}}
|
2024-08-02 13:35:03 +03:00
|
|
|
embed: false{{/each}}{{#if ios-vendor-frameworks}}{{~#each ios-vendor-frameworks}}
|
|
|
|
- framework: {{this}}{{/each}}{{/if}}{{#if ios-vendor-sdks}}{{~#each ios-vendor-sdks}}
|
|
|
|
- sdk: {{prefix-path this}}{{/each}}{{/if}}
|
2022-08-15 18:43:50 +03:00
|
|
|
- sdk: CoreGraphics.framework
|
|
|
|
- sdk: Metal.framework
|
|
|
|
- sdk: MetalKit.framework
|
|
|
|
- sdk: QuartzCore.framework
|
|
|
|
- sdk: Security.framework
|
2024-08-02 13:35:03 +03:00
|
|
|
- sdk: UIKit.framework{{#if this.ios-frameworks}}{{~#each ios-frameworks}}
|
|
|
|
- sdk: {{this}}.framework{{/each}}{{/if}}
|
2022-08-15 18:43:50 +03:00
|
|
|
- sdk: WebKit.framework
|
|
|
|
preBuildScripts:
|
|
|
|
{{~#each ios-pre-build-scripts}}{{#if this.path}}
|
|
|
|
- path {{this.path}}{{/if}}{{#if this.script}}
|
|
|
|
- script: {{this.script}}{{/if}}{{#if this.name}}
|
|
|
|
name: {{this.name}}{{/if}}{{#if this.input-files}}
|
|
|
|
inputFiles: {{~#each this.input-files}}
|
|
|
|
- {{this}}{{/each}}{{/if}}{{#if this.output-files}}
|
|
|
|
outputFiles: {{~#each this.output-files}}
|
|
|
|
- {{this}}{{/each}}{{/if}}{{#if this.input-file-lists}}
|
|
|
|
inputFileLists: {{~#each this.output-files}}
|
|
|
|
- {{this}}{{/each}}{{/if}}{{#if this.output-file-lists}}
|
|
|
|
outputFileLists: {{~#each this.output-files}}
|
|
|
|
- {{this}}{{/each}}{{/if}}{{#if this.shell}}
|
|
|
|
shell: {{this.shell}}{{/if}}{{#if this.show-env-vars}}
|
|
|
|
showEnvVars: {{this.show_env_vars}}{{/if}}{{#if this.run-only-when-installing}}
|
|
|
|
runOnlyWhenInstalling: {{this.run-only-when-installing}}{{/if}}{{#if this.based-on-dependency-analysis}}
|
|
|
|
basedOnDependencyAnalysis: {{this.based-on-dependency-analysis}}{{/if}}{{#if this.discovered-dependency-file}}
|
|
|
|
discoveredDependencyFile: {{this.discovered-dependency-file}}{{/if}}
|
2022-11-11 17:43:25 +03:00
|
|
|
{{~/each}}
|
|
|
|
|
2023-03-16 15:27:40 +03:00
|
|
|
- script: {{ tauri-binary }} {{ tauri-binary-args-str }} -v --platform ${PLATFORM_DISPLAY_NAME:?} --sdk-root ${SDKROOT:?} --framework-search-paths "${FRAMEWORK_SEARCH_PATHS:?}" --header-search-paths "${HEADER_SEARCH_PATHS:?}" --gcc-preprocessor-definitions "${GCC_PREPROCESSOR_DEFINITIONS:-}" --configuration ${CONFIGURATION:?} ${FORCE_COLOR} ${ARCHS:?}
|
2022-11-11 17:43:25 +03:00
|
|
|
name: Build Rust Code
|
|
|
|
basedOnDependencyAnalysis: false
|
|
|
|
outputFiles:
|
2024-05-12 05:32:05 +03:00
|
|
|
- $(SRCROOT)/Externals/x86_64/${CONFIGURATION}/lib{{app.lib-name}}.a
|
|
|
|
- $(SRCROOT)/Externals/arm64/${CONFIGURATION}/lib{{app.lib-name}}.a
|
|
|
|
- $(SRCROOT)/Externals/arm64-sim/${CONFIGURATION}/lib{{app.lib-name}}.a
|
2022-08-15 18:43:50 +03:00
|
|
|
{{~#if ios-post-compile-scripts}}
|
|
|
|
postCompileScripts:
|
|
|
|
{{~#each ios-post-compile-scripts}}{{#if this.path}}
|
|
|
|
- path {{this.path}}{{/if}}{{#if this.script}}
|
|
|
|
- script: {{this.script}}{{/if}}{{#if this.name}}
|
|
|
|
name: {{this.name}}{{/if}}{{#if this.input-files}}
|
|
|
|
inputFiles: {{~#each this.input-files}}
|
|
|
|
- {{this}}{{/each}}{{/if}}{{#if this.output-files}}
|
|
|
|
outputFiles: {{~#each this.output-files}}
|
|
|
|
- {{this}}{{/each}}{{/if}}{{#if this.input-file-lists}}
|
|
|
|
inputFileLists: {{~#each this.output-files}}
|
|
|
|
- {{this}}{{/each}}{{/if}}{{#if this.output-file-lists}}
|
|
|
|
outputFileLists: {{~#each this.output-files}}
|
|
|
|
- {{this}}{{/each}}{{/if}}{{#if this.shell}}
|
|
|
|
shell: {{this.shell}}{{/if}}{{#if this.show-env-vars}}
|
|
|
|
showEnvVars: {{this.show_env_vars}}{{/if}}{{#if this.run-only-when-installing}}
|
|
|
|
runOnlyWhenInstalling: {{this.run-only-when-installing}}{{/if}}{{#if this.based-on-dependency-analysis}}
|
|
|
|
basedOnDependencyAnalysis: {{this.based-on-dependency-analysis}}{{/if}}{{#if this.discovered-dependency-file}}
|
|
|
|
discoveredDependencyFile: {{this.discovered-dependency-file}}{{/if}}
|
|
|
|
{{~/each~}}
|
|
|
|
{{~/if~}}
|
|
|
|
{{~#if ios-post-build-scripts}}
|
|
|
|
postBuildScripts:
|
|
|
|
{{~#each ios-post-build-scripts}}{{#if this.path}}
|
|
|
|
- path {{this.path}}{{/if}}{{#if this.script}}
|
|
|
|
- script: {{this.script}}{{/if}}{{#if this.name}}
|
|
|
|
name: {{this.name}}{{/if}}{{#if this.input-files}}
|
|
|
|
inputFiles: {{~#each this.input-files}}
|
|
|
|
- {{this}}{{/each}}{{/if}}{{#if this.output-files}}
|
|
|
|
outputFiles: {{~#each this.output-files}}
|
|
|
|
- {{this}}{{/each}}{{/if}}{{#if this.input-file-lists}}
|
|
|
|
inputFileLists: {{~#each this.output-files}}
|
|
|
|
- {{this}}{{/each}}{{/if}}{{#if this.output-file-lists}}
|
|
|
|
outputFileLists: {{~#each this.output-files}}
|
|
|
|
- {{this}}{{/each}}{{/if}}{{#if this.shell}}
|
|
|
|
shell: {{this.shell}}{{/if}}{{#if this.show-env-vars}}
|
|
|
|
showEnvVars: {{this.show_env_vars}}{{/if}}{{#if this.run-only-when-installing}}
|
|
|
|
runOnlyWhenInstalling: {{this.run-only-when-installing}}{{/if}}{{#if this.based-on-dependency-analysis}}
|
|
|
|
basedOnDependencyAnalysis: {{this.based-on-dependency-analysis}}{{/if}}{{#if this.discovered-dependency-file}}
|
|
|
|
discoveredDependencyFile: {{this.discovered-dependency-file}}{{/if}}
|
|
|
|
{{~/each~}}
|
|
|
|
{{~/if}}
|