tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
85.52k stars 2.58k forks source link

[bug] tauri-cli does not update all ios icons #11578

Closed dionysuzx closed 2 weeks ago

dionysuzx commented 3 weeks ago

Describe the bug

After following the guide here I noticed that the tauri icon command does not overwrite the icons under the path gen/apple/Assets.xcassets/AppIcon.appiconset.

Reproduction

Here are the steps to reproduce:

  1. Create a new Tauri project (use all default settings, just hit enter): bunx create-tauri-app
  2. Change directories and install dependencies: cd tauri-app && bun install
  3. Init iOS project: bun tauri ios init
  4. Download a square icon image to ~/Downloads/square.png (to use as the icon)
  5. Run: bun tauri icon ~/Downloads/square.png
  6. Verify that not all icons under gen/apple/Assets.xcassets/AppIcon.appiconset are updated

Expected behavior

All icons under gen/apple/Assets.xcassets/AppIcon.appiconset should be updated, so that the iOS app uses the update icon.

Full tauri info output

$ tauri info

[✔] Environment
    - OS: Mac OS 15.0.1 arm64 (X64)
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.82.0 (f6e511eec 2024-10-15)
    ✔ cargo: 1.82.0 (8f40fc59f 2024-08-21)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 18.15.0
    - pnpm: 8.14.0
    - yarn: 1.22.19
    - npm: 10.9.0
    - bun: 1.1.33

[-] Packages
    - tauri 🦀: 2
    - tauri-build 🦀: No version detected
    - wry 🦀: No version detected
    - tao 🦀: No version detected
    - tauri-cli 🦀: 2.0.4
    - @tauri-apps/api : 2.0.3
    - @tauri-apps/cli : 2.0.5

[-] Plugins
    - tauri-plugin-shell 🦀: 2
    - @tauri-apps/plugin-shell : 2.0.1

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - bundler: Vite

[-] iOS
    - Developer Teams: [REDACTED]

### Stack trace

_No response_

### Additional context

❯ cargo create-tauri-app --version 4.3.1

dionysuzx commented 3 weeks ago

see: https://github.com/tauri-apps/tauri-docs/pull/2932

dionysuzx commented 2 weeks ago

i am closing this because it seems to work okay for me now.