فهرست منبع

fix(cli): use correct lib name in xcode project (#6387)

Amr Bashir 2 سال پیش
والد
کامیت
d1752fb1f6
2فایلهای تغییر یافته به همراه8 افزوده شده و 3 حذف شده
  1. 5 0
      .changes/lib-name-xcode.md
  2. 3 3
      tooling/cli/templates/mobile/ios/project.yml

+ 5 - 0
.changes/lib-name-xcode.md

@@ -0,0 +1,5 @@
+---
+'tauri': 'patch'
+---
+
+Use correct lib name in xcode project.

+ 3 - 3
tooling/cli/templates/mobile/ios/project.yml

@@ -78,7 +78,7 @@ targets:
         ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES: true
         ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES: true
       groups: [app]
       groups: [app]
     dependencies:
     dependencies:
-      - framework: lib{{snake-case app.name}}.a
+      - framework: lib{{app.lib_name}}.a
         embed: false
         embed: false
       {{~#each ios-libraries}}
       {{~#each ios-libraries}}
       - framework: {{this}}
       - framework: {{this}}
@@ -120,8 +120,8 @@ targets:
         name: Build Rust Code
         name: Build Rust Code
         basedOnDependencyAnalysis: false
         basedOnDependencyAnalysis: false
         outputFiles:
         outputFiles:
-          - $(SRCROOT)/target/aarch64-apple-ios/${CONFIGURATION}/deps/lib{{snake-case app.name}}.a
-          - $(SRCROOT)/target/x86_64-apple-ios/${CONFIGURATION}/deps/lib{{snake-case app.name}}.a
+          - $(SRCROOT)/target/aarch64-apple-ios/${CONFIGURATION}/deps/lib{{app.lib_name}}.a
+          - $(SRCROOT)/target/x86_64-apple-ios/${CONFIGURATION}/deps/lib{{app.lib_name}}.a
     {{~#if ios-post-compile-scripts}}
     {{~#if ios-post-compile-scripts}}
     postCompileScripts:
     postCompileScripts:
       {{~#each ios-post-compile-scripts}}{{#if this.path}}
       {{~#each ios-post-compile-scripts}}{{#if this.path}}