tauri icon indicating copy to clipboard operation
tauri copied to clipboard

fix(cli): use original identifier to fix mobile options reading

Open lucasfernog opened this issue 6 months ago • 4 comments

the iOS and Android CLI commands leverage an android_studio_script/xcode_script that is executed by the native IDE or build tool. This script reads the Tauri configuration to find the app identifier used to communicate with the parent Tauri CLI process to read CLI options.

The communication is broken when the --config arg is used, since the IDE script does not have access to that value before reaching the parent process, which is impossible without knowing the actual identifier used.

To bypass this we'll agree on using the original identifier. This obviously won't work if the original tauri.conf.json do not have an identifier, so we error out in this case

lucasfernog avatar Jun 17 '25 13:06 lucasfernog

Package Changes Through eba21563ca511b97ec0e4e14630ce982726475e9

There are 8 changes which include tauri-bundler with minor, tauri-cli with minor, tauri-codegen with minor, tauri-utils with minor, @tauri-apps/cli with minor, tauri with minor, @tauri-apps/api with minor, tauri-runtime-wry with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
@tauri-apps/api 2.5.0 2.6.0
tauri-utils 2.4.0 2.5.0
tauri-bundler 2.4.0 2.5.0
tauri-runtime 2.6.0 2.6.1
tauri-runtime-wry 2.6.0 2.6.1
tauri-codegen 2.2.0 2.3.0
tauri-macros 2.2.0 2.2.1
tauri-plugin 2.2.0 2.2.1
tauri-build 2.2.0 2.2.1
tauri 2.5.1 2.6.0
@tauri-apps/cli 2.5.0 2.6.0
tauri-cli 2.5.0 2.6.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

github-actions[bot] avatar Jun 17 '25 13:06 github-actions[bot]

The code doesn't load on my phone, does this help with https://github.com/tauri-apps/tauri/issues/13284 ?

FabianLars avatar Jun 17 '25 13:06 FabianLars

The code doesn't load on my phone, does this help with #13284 ?

that's a different problem honestly.. it's related, but after initializing with the given identifier, the xcode_script/android_studio_script would still need to be able to know it.. we do have code to parse it from the Xcode project config, but for Android it's different (and would need to account for Kotlin vs Gradle syntax)

lucasfernog avatar Jun 17 '25 15:06 lucasfernog

this closes the actual bug reported on this comment https://github.com/tauri-apps/tauri/issues/13284#issuecomment-2824555135

lucasfernog avatar Jun 17 '25 15:06 lucasfernog