### Installing Xcode Command Line Tools Source: https://github.com/pathscale/js.software/blob/master/docs/ios-setup-guide.md This command installs the essential command-line tools required for Xcode development, which are necessary for various build processes and utilities on macOS. ```bash xcode-select --install ``` -------------------------------- ### Installing Android SDK Components via Command Line Source: https://github.com/pathscale/js.software/blob/master/docs/android-setup-guide.md This snippet uses the `sdkmanager` tool to install essential Android SDK packages, including platform tools, Android 33 platform, build tools 34.0.0, and NDK version 25.2.9519653. This is an alternative to Android Studio for setting up the development environment. ```bash sdkmanager "platform-tools" "platforms;android-33" "build-tools;34.0.0" sdkmanager "ndk;25.2.9519653" ``` -------------------------------- ### Installing OpenJDK 17 on Ubuntu/Debian with APT Source: https://github.com/pathscale/js.software/blob/master/docs/android-setup-guide.md This command installs the OpenJDK 17 Development Kit on Ubuntu or Debian-based systems using the `apt` package manager. It ensures the necessary Java environment is available for compiling Android and Tauri applications. ```bash sudo apt install openjdk-17-jdk ``` -------------------------------- ### Verifying Java Development Kit (JDK) Version Source: https://github.com/pathscale/js.software/blob/master/docs/android-setup-guide.md This snippet executes commands to check the installed versions of the Java Runtime Environment (`java`) and the Java compiler (`javac`). It's crucial to confirm that JDK 17 or a higher version is installed and correctly configured for Android and Tauri development. ```bash java -version javac -version ``` -------------------------------- ### Running Android Secrets Setup Script (Bash) Source: https://github.com/pathscale/js.software/blob/master/docs/android-setup-guide.md Executes the `android-secrets-setup.sh` script to generate or locate a production keystore, convert it to base64, and create GitHub secrets. This script automates the process of preparing signing credentials for CI/CD pipelines like GitHub Actions. ```Bash ./scripts/android-secrets-setup.sh ``` -------------------------------- ### Initializing Tauri iOS Project Source: https://github.com/pathscale/js.software/blob/master/docs/ios-setup-guide.md This command initializes the Tauri iOS project, adding iOS-specific configuration and generating the Xcode project files in the `src-tauri/gen/apple/` directory, setting up the iOS build environment. ```bash bun run tauri ios init ``` -------------------------------- ### Installing Android NDK (Bash) Source: https://github.com/pathscale/js.software/blob/master/docs/android-setup-guide.md Installs a specific version of the Android NDK using the `sdkmanager` tool. This is a common troubleshooting step when the NDK is not found, as it's required for compiling native code components in Android applications. ```Bash sdkmanager "ndk;25.2.9519653" ``` -------------------------------- ### Installing OpenJDK 17 on macOS with Homebrew Source: https://github.com/pathscale/js.software/blob/master/docs/android-setup-guide.md This command installs OpenJDK version 17 on macOS using the Homebrew package manager. It provides a convenient way to set up the required Java Development Kit for Android and Tauri project builds. ```bash brew install openjdk@17 ``` -------------------------------- ### Building Signed Android Release APK with Tauri (Bash) Source: https://github.com/pathscale/js.software/blob/master/docs/android-setup-guide.md Builds a signed release APK or AAB for an Android application using the Tauri CLI. This command verifies the successful setup of the keystore and signing credentials by producing a production-ready build artifact. ```Bash # This builds a signed release APK (release mode is default) bun run tauri android build ``` -------------------------------- ### Running iOS Secrets Setup Script Source: https://github.com/pathscale/js.software/blob/master/docs/ios-setup-guide.md This script automates the process of finding your development certificate and provisioning profile, converting them to base64 format, and generating a file containing GitHub secrets for CI/CD integration. ```bash ./scripts/ios-secrets-setup-v2.sh ``` -------------------------------- ### Direct Tauri iOS Initialization (Troubleshooting) Source: https://github.com/pathscale/js.software/blob/master/docs/ios-setup-guide.md This command directly initializes the Tauri iOS project. It is suggested as a troubleshooting step if the `bun run tauri ios init` command fails, ensuring the core initialization command is executed. ```bash bun tauri ios init ``` -------------------------------- ### Initializing Tauri Android Project Verbose (Bash) Source: https://github.com/pathscale/js.software/blob/master/docs/android-setup-guide.md Initializes the Android project for a Tauri application with verbose output. This command helps in debugging initialization failures by providing detailed logs about the process and any encountered issues. ```Bash bun run tauri android init -v ``` -------------------------------- ### Verifying Code Signing Identities Source: https://github.com/pathscale/js.software/blob/master/docs/ios-setup-guide.md This command lists the code signing identities available in your macOS keychain. It is useful for troubleshooting when Xcode or the setup script cannot find development certificates. ```bash security find-identity -p codesigning -v ``` -------------------------------- ### Building Tauri iOS App (Debug) Source: https://github.com/pathscale/js.software/blob/master/docs/ios-setup-guide.md This command builds the Tauri iOS application in debug mode. It is an optional but recommended step to test the Xcode signing and build setup locally before proceeding with GitHub Actions. ```bash bun run tauri ios build --debug ``` -------------------------------- ### Setting Android SDK Environment Variables (macOS/Linux) Source: https://github.com/pathscale/js.software/blob/master/docs/android-setup-guide.md This snippet defines critical environment variables (`ANDROID_HOME`, `ANDROID_NDK_HOME`, and `PATH`) required for Android development on macOS and Linux. These variables point to the Android SDK and NDK installations, allowing command-line tools and build systems to locate necessary Android components. ```bash export ANDROID_HOME=$HOME/Library/Android/sdk # macOS export ANDROID_HOME=$HOME/Android/Sdk # Linux export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/25.2.9519653 export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools ``` -------------------------------- ### Initializing Tauri Android Project Source: https://github.com/pathscale/js.software/blob/master/docs/android-setup-guide.md This command initializes the Android project structure within a Tauri application. It adds Android-specific configurations, generates the necessary Android project files in `src-tauri/gen/android/`, and sets up the Gradle build environment for Android. ```bash bun run tauri android init ``` -------------------------------- ### Opening Generated Xcode Project Source: https://github.com/pathscale/js.software/blob/master/docs/ios-setup-guide.md This command opens the generated Xcode project file (`app.xcodeproj`) located within the Tauri project structure, allowing you to configure signing and capabilities directly within the Xcode IDE. ```bash open src-tauri/gen/apple/app.xcodeproj ``` -------------------------------- ### Updating Rust Toolchain (Bash) Source: https://github.com/pathscale/js.software/blob/master/docs/android-setup-guide.md Updates the Rust toolchain to the latest stable version. This can resolve various build issues by ensuring all Rust components and dependencies are up-to-date. ```Bash rustup update ``` -------------------------------- ### Adding Rust iOS Target Source: https://github.com/pathscale/js.software/blob/master/docs/ios-setup-guide.md This command adds the `aarch64-apple-ios` target to your Rust toolchain, enabling cross-compilation of Rust code for iOS devices, which is a prerequisite for Tauri iOS development. ```bash rustup target add aarch64-apple-ios ``` -------------------------------- ### Building Tauri Android Debug APK Source: https://github.com/pathscale/js.software/blob/master/docs/android-setup-guide.md This command builds a debug APK for your Tauri Android project. It compiles the frontend and Rust backend for Android, generating a debug-signed APK. This step is crucial for verifying that your development environment is correctly configured before proceeding with release builds. ```bash bun run tauri android build --debug ``` -------------------------------- ### Cleaning Android Gradle Build (Bash) Source: https://github.com/pathscale/js.software/blob/master/docs/android-setup-guide.md Navigates into the Android project directory and performs a clean build using Gradle. This command removes all build artifacts and cached data, often resolving persistent Gradle build errors. ```Bash cd src-tauri/gen/android && ./gradlew clean ``` -------------------------------- ### Adding Android Targets for Rust Source: https://github.com/pathscale/js.software/blob/master/docs/android-setup-guide.md This snippet adds the necessary Android compilation targets to your Rust toolchain using `rustup`. These targets are essential for cross-compiling Rust code to run on various Android architectures, enabling the Rust backend of your Tauri application to function correctly on Android devices. ```bash rustup target add aarch64-linux-android rustup target add armv7-linux-androideabi rustup target add i686-linux-android rustup target add x86_64-linux-android ``` -------------------------------- ### Adding Rust Android Targets (Bash) Source: https://github.com/pathscale/js.software/blob/master/docs/android-setup-guide.md Adds the necessary Rust cross-compilation targets for various Android architectures. This command is crucial for building Rust-based applications (like Tauri apps) for Android devices, resolving 'Rust target not found' errors. ```Bash rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.