Skip to content

Commit d1752fb

Browse files
authored
fix(cli): use correct lib name in xcode project (#6387)
1 parent 8631eec commit d1752fb

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changes/lib-name-xcode.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri': 'patch'
3+
---
4+
5+
Use correct lib name in xcode project.

tooling/cli/templates/mobile/ios/project.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ targets:
7878
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES: true
7979
groups: [app]
8080
dependencies:
81-
- framework: lib{{snake-case app.name}}.a
81+
- framework: lib{{app.lib_name}}.a
8282
embed: false
8383
{{~#each ios-libraries}}
8484
- framework: {{this}}
@@ -120,8 +120,8 @@ targets:
120120
name: Build Rust Code
121121
basedOnDependencyAnalysis: false
122122
outputFiles:
123-
- $(SRCROOT)/target/aarch64-apple-ios/${CONFIGURATION}/deps/lib{{snake-case app.name}}.a
124-
- $(SRCROOT)/target/x86_64-apple-ios/${CONFIGURATION}/deps/lib{{snake-case app.name}}.a
123+
- $(SRCROOT)/target/aarch64-apple-ios/${CONFIGURATION}/deps/lib{{app.lib_name}}.a
124+
- $(SRCROOT)/target/x86_64-apple-ios/${CONFIGURATION}/deps/lib{{app.lib_name}}.a
125125
{{~#if ios-post-compile-scripts}}
126126
postCompileScripts:
127127
{{~#each ios-post-compile-scripts}}{{#if this.path}}

0 commit comments

Comments
 (0)