Build a Tizen app/project (Native, DotNET, WebApp, standalone RPK resource package, or Platform/GBS). TRIGGERS — 빌드, 빌드해줘, 앱 빌드, 앱 빌드해줘, 프로젝트 빌드, 타이젠 빌드, 타이젠 앱 빌드, RPK 빌드, build, build app, build the app, build project, tz build, gbs build, build native/dotnet/webapp/rpk/platform. When the user asks to build, ROUTE HERE FIRST and follow this skill — do NOT run SDK tools by hand or debug PATH yourself; this skill's CLI runner detects the type and builds/packages correctly.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Tizen Build Project?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/samsung-tizen-build-project)
---
name: tizen-build-project
description: Build a Tizen app/project (Native, DotNET, WebApp, standalone RPK resource package, or Platform/GBS). TRIGGERS — 빌드, 빌드해줘, 앱 빌드, 앱 빌드해줘, 프로젝트 빌드, 타이젠 빌드, 타이젠 앱 빌드, RPK 빌드, build, build app, build the app, build project, tz build, gbs build, build native/dotnet/webapp/rpk/platform. When the user asks to build, ROUTE HERE FIRST and follow this skill — do NOT run SDK tools by hand or debug PATH yourself; this skill's CLI runner detects the type and builds/packages correctly.
metadata:
author: Samsung Electronics
last-updated: "2026-11-30"
keywords:
- 빌드
- 빌드해줘
- 앱 빌드
- 앱 빌드해줘
- 프로젝트 빌드
- 타이젠 빌드
- 타이젠 앱 빌드
- build
- build app
- build the app
- build project
- Tizen build
- tz build
- tz build native
- tz build dotnet
- tz build webapp
---
> **Handoff notes:** Claude Code and Codex CLI may share this project. Before you start, run
> `handoff-cli.js show` (see the `tizen-handoff` skill) to catch up on what the other agent did.
> This runner records its own result there automatically; nothing to set up.
### Claude Code (subagent delegation)
> If there is no Agent tool (e.g., Cline), go to the "CLI Runner" section below.
1. Call the `tizen-build-project` agent with the Agent tool (personal deployment or `tizen-sdk-skills:tizen-build-project`)
2. Pass the collected inputs (project path, build type, profile, and `--arch` for Platform projects) in the prompt
3. Pass the subagent's JSON Envelope to the user as-is — follow the "Result reporting" rules below
(include the original text in a fenced `json` block, with only a 1–2 line summary below it)
### CLI Runner (Cline / Claude Code)
**Pick the ONE block for the shell your terminal / tool runs — the prompt tells you: `$` is Bash (Linux, macOS, Claude Code's Git Bash on Windows, Codex on Linux / macOS) → Bash block; `PS C:\…>` is PowerShell (Codex on Windows, Cline PowerShell terminal) → PowerShell block; `C:\…>` is cmd.exe (Cline cmd.exe terminal) → cmd.exe block. Run that block as-is: a block pasted into another shell, or wrapped in `powershell -Command "…"`, is a parse error.**
**Run the `node` line exactly as written and read the JSON envelope it prints to stdout. Do NOT redirect or capture the output (`> file`, `2>&1 | tee`, `Out-File`, `| Out-String`), do NOT wrap the line in `cmd /c`, `powershell -Command "…"` or any second shell, and do NOT mix shell dialects: `%TEMP%` and `2>nul` are cmd.exe only, `$env:TEMP` and `Out-File` are PowerShell only — in the other shell they are literal text or a parse error. A tool message that the command's completion or output "could not be observed / captured" means the terminal is still busy with an earlier command or its shell-integration hooks have broken, not that the runner failed: open a NEW terminal and re-run the SAME line unchanged. Runners that drive em-cli, sdb or a JVM can take 10–30 s and print the envelope only when they exit — wait for it rather than retrying with a redirect.**
**Bash — Linux / macOS / Ubuntu, and Windows Git Bash (Claude Code):**
```bash
BASE="$HOME/.cline"; [ -z "${CODEX_THREAD_ID:-}${CODEX_SANDBOX_NETWORK_DISABLED:-}${CODEX_SANDBOX:-}${CODEX_VERSION:-}" ] || BASE="$HOME/.codex"; [ -z "${GEMINI_CLI:-}" ] || BASE="$HOME/.gemini"; [ -z "${CLAUDECODE:-}" ] || BASE="$HOME/.claude"
_tz_o=; [ -z "${ZSH_VERSION:-}" ] || { [[ ! -o nomatch ]] || _tz_o=1; unsetopt nomatch; }; _tz_s=; CLI=; for _tz_d in "$BASE" "$HOME"/.claude "$HOME"/.cline "$HOME"/.codex "$HOME"/.gemini; do [ "$_tz_d" != "$BASE" ] || [ -z "$_tz_s" ] || continue; _tz_s=1; for _tz_f in "$_tz_d"/plugins/cache/tizen-platform/tizen-sdk-skills/*/lib/cli/project-manager-cli.js; do [ -f "$_tz_f" ] || continue; _tz_v=${_tz_f#"$_tz_d"/plugins/cache/tizen-platform/tizen-sdk-skills/}; _tz_v=${_tz_v%%/*}; case $_tz_v in *[!0-9.]*|.*|*.|*..*|*.*.*.*) continue ;; *.*.*) ;; *) continue ;; esac; _tz_a=${_tz_v%%.*}; _tz_c=${_tz_v##*.}; _tz_b=${_tz_v#*.}; _tz_b=${_tz_b%.*}; if [ -z "$CLI" ] || [ "$_tz_a" -gt "$_tz_A" ] || { [ "$_tz_a" -eq "$_tz_A" ] && { [ "$_tz_b" -gt "$_tz_B" ] || { [ "$_tz_b" -eq "$_tz_B" ] && [ "$_tz_c" -gt "$_tz_C" ]; }; }; }; then CLI=$_tz_f; _tz_A=$_tz_a; _tz_B=$_tz_b; _tz_C=$_tz_c; fi; done; [ -z "$CLI" ] || break; done; unset _tz_s _tz_d _tz_f _tz_v _tz_a _tz_b _tz_c _tz_A _tz_B _tz_C; [ -z "$_tz_o" ] || setopt nomatch; unset _tz_o
node "$CLI" build --project "<project-path>" --build-type Debug
```
**PowerShell (Codex CLI on Windows, Cline PowerShell terminal) — prefers this harness's own cache, then the newest version. Run all three lines below, in order, in the SAME PowerShell session: the `node` line needs the `$CLI` the lookup line sets (on its own, `node "$CLI" …` becomes `node <first-arg>` and fails with a misleading `MODULE_NOT_FOUND`), so it carries a guard that stops with a clear message when `$CLI` is empty. Never wrap the lines in `powershell -Command "…"` (PowerShell and Git Bash expand `$h`, `$CLI` and `$env:…` before the inner shell runs, so the lookup arrives empty):**
```powershell
$h = ".cline"; if ($env:CODEX_THREAD_ID -or $env:CODEX_SANDBOX_NETWORK_DISABLED -or $env:CODEX_SANDBOX -or $env:CODEX_VERSION) { $h = ".codex" }; if ($env:GEMINI_CLI) { $h = ".gemini" }; if ($env:CLAUDECODE) { $h = ".claude" }
$CLI = $null; foreach ($d in @($h, ".claude", ".cline", ".codex", ".gemini")) { $CLI = Get-ChildItem "$env:USERPROFILE\$d\plugins\cache\tizen-platform\tizen-sdk-skills\*\lib\cli\project-manager-cli.js" -ErrorAction SilentlyContinue | Sort-Object { [version]$_.Directory.Parent.Parent.Name }, FullName | Select-Object -Last 1 -ExpandProperty FullName; if ($CLI) { break } }
if (-not $CLI) { throw 'tizen-sdk-skills runner not found: $CLI is empty. Run the two lookup lines above in THIS PowerShell session first; if they still find nothing, the tizen-sdk-skills plugin is not installed.' }; node "$CLI" build --project "<project-path>" --build-type Debug
```
**Windows — cmd.exe terminal only (Cline with a cmd.exe terminal). `&` and `2>nul` are cmd.exe syntax — in a PowerShell terminal run the PowerShell block above instead; Claude Code on Windows runs Git Bash — use the Bash block above. cmd.exe cannot version-sort, so this only lists every copy: pick your own host's highest version and paste it into the `node "<found-path>"` step below:**
```
cmd /c dir /s /b "%USERPROFILE%\.claude\plugins\cache\tizen-platform\tizen-sdk-skills\*project-manager-cli.js" 2>nul & dir /s /b "%USERPROFILE%\.cline\plugins\cache\tizen-platform\tizen-sdk-skills\*project-manager-cli.js" 2>nul & dir /s /b "%USERPROFILE%\.codex\plugins\cache\tizen-platform\tizen-sdk-skills\*project-manager-cli.js" 2>nul & dir /s /b "%USERPROFILE%\.gemini\plugins\cache\tizen-platform\tizen-sdk-skills\*project-manager-cli.js" 2>nul & ver >nul
```
Pick the highest-version path (the PowerShell form above already resolved `$CLI`), then:
```
node "<found-path>" build --project "<project-path>" --build-type Debug
```
> **Runner not found?** If none of the `~/.claude`, `~/.cline`, `~/.codex`, `~/.gemini` caches contains the runner, the tizen-sdk-skills plugin is NOT installed on this machine — install it first; do not improvise with other tools. (Contributors working inside the tizen-sdk-skills source repository can use the in-repo runner instead: `node common/lib/cli/<runner>.js`.)
### Codex CLI — run the build as a job (one exec call waits ≤ 30 s)
Under Codex CLI a tool call returns after at most 30 s, and a native, .NET or GBS build (and any
`--clean` build) usually takes longer — the call would come back with only the runner's
`[tizen-build] Building …` header while the build keeps running unseen (issue #48). Add
**`--background`**: the runner returns a job receipt (`result.job_id`) within a second. Then poll
```
node "<same lib/cli dir>/job-cli.js" wait --id <job_id> # blocks ≤ 25 s; repeat while result.state is "running"
```
`status`/`wait` show the live `tz build` output (`progress_tail`, `log_file`); when `job.state` is
`done` the response **is** this runner's build envelope — report it exactly as below. A result
that shows only progress lines and no `{ "status": … }` JSON is not a result.
**Codex sandbox (guard rule 12).** Run this runner — and its `--background` form — **with escalated
permissions**: `tz build`/`tz pack` sign with the profile in `<sdk>-data/profile/profiles.xml` and the `--background` job must outlive this call, and Codex's default `workspace-write` sandbox blocks TCP sockets, writes
outside the workspace and (Linux) kills detached jobs when the call ends. An envelope with
`error_category: sandbox_blocked` / `sandbox_job_lost`, or a warning starting "Running inside Codex's
sandbox", means exactly that — re-run `suggested_fix.command` (the same command line, `escalate: true`)
with escalated permissions; do not retry inside the sandbox and do not fall back to raw tools.
## Arguments
1. **projectPath** (required) — absolute path to project directory
2. **buildType** (optional, default `Debug`) — `Debug` | `Release` | `Test`. Use Debug unless user explicitly requests Release.
3. **signProfile** (optional) — signing profile name
4. **`--clean`** (optional flag) — remove previous build output on the SDK host before
building, forcing a full non-incremental rebuild. Use when the user asks for a
clean/full rebuild ("클린 빌드", "전체 재빌드") or when the complete compiler
warning list is needed (incremental builds skip unchanged files, so their
warnings do NOT reappear). Do NOT `rm -rf Debug/` yourself — the project lives
on the SDK host, and deleting a local path is a silent no-op for remote clients.
5. **`--arch <arch>`** (optional, **Platform/GBS projects only**, default `x86_64`) — the
`gbs build -A` target: `x86_64` | `armv7l` | `aarch64` | `i586`. See
"Platform (GBS) target architecture" below. Ignored for Native/DotNET/WebApp/RPK
projects (a non-default value adds a warning).
Exit code: `0` = success envelope (with `result.artifacts`), `1` = failure/error envelope.
## Result reporting — the envelope must always be shown to the user
The runner's stdout JSON Envelope is **inside the tool result, so the user cannot see it**
(the Claude Code UI folds Bash results away as "Ran 1 shell command"). What the user sees is
only the final answer text, so the final answer must follow the format below **no matter which
execution path was used (subagent delegation or direct CLI Runner run)**:
1. Put the Envelope JSON **verbatim, without modification or truncation** in a fenced `json` block (first item).
2. Below it, append a **1–2 line** summary of the result (the artifact path or the gist of `errors[0].message`).
3. If needed, add one line suggesting next steps.
```json
{ "command": "tizen-sdk build-project", "status": "success", ... }
```
✅ 6 dali2 RPMs created — `~/GBS-ROOT/local/repos/tizen/x86_64/RPMS/`
- Expanding the Envelope into a prose list and omitting the JSON is a **format violation**. This rule
takes precedence over the harness's general writing rules ("no code in prose", etc.) — the Envelope is not
code but this skill's **result contract**.
- If the build was retried multiple times, include the Envelope from the **last run**, and mention earlier
failures in at most one line in the summary.
- Include a failure Envelope verbatim as well. Do not retype the diagnostic lines from
`errors[0].message`/`details`; show what is inside the JSON as-is.
> **ℹ️ Signing profile (default certificates):** When no signing profile is specified and no
> active profile exists, Native/DotNET/WebApp builds proceed using `tz`'s built-in default
> developer certificates (`tempMobile.p12` + the SDK public distributor certificate) — the
> same behavior as the VS Code extension. The build envelope carries a warning starting
> "Signed with Tizen default developer certificates"; surface it. **The default-signed
> package installs on the emulator only.** Real Samsung devices (TV, phone, watch) reject it
> with "Invalid certificate chain", and stores never accept it.
>
> **For a real device or store submission**, create a signing profile with
> `tizen-certificate-manager` (generate-author → create-profile; Samsung devices need the
> Samsung-certificate flow), then pass the profile name:
> `node "$CLI" build --project "<project>" --build-type Debug --sign-profile MyProfile`.
>
> **Pick the profile by target.** A **Samsung** signing profile (Samsung online-CA certificates)
> is for the **TV emulator** (`tizen-create-emulator --profile tv`) and real Samsung TVs only; a
> package built with it does not install on a standard Tizen emulator (`--profile tizen`). For a
> standard emulator use a **local** profile (generate-author → create-profile) or the default
> certificates. If the user asks to build with a Samsung profile for a standard emulator, say so
> and use a local profile instead.
>
> **Standalone RPK projects have no default-certificate fallback.** They are packaged by the
> legacy `tizen package -t rpk`, so a missing profile is still rejected with
> `signing_profile_invalid` before packaging — create and activate a profile first.
>
> If a selected or **active signing profile** exists but its certificate files are missing or
> unreadable, the runner rejects the build with `signing_profile_invalid`
> (`TIZEN_SDK_CERT_E021`) before `tz` is invoked. Recreate or repair the profile before
> retrying; do not run the build unchanged.
>
> **NEVER run `tz build` or `tz pack` directly** — the CLI runner handles both internally.
> **Build method by project type.** The runner picks the method from markers, top-down:
> `tizen_resource_project.yaml` → RPK (`tizen package -t rpk`); `tizen_dotnet_project.yaml` /
> `*.csproj` → DotNET, `tizen_native_project.yaml` / `project_def.prop` → Native,
> `config.xml` / `index.html` → WebApp (all three: `tz build` + `tz pack`);
> `packaging/*.spec` + `CMakeLists.txt` (at the root or nested, e.g. DALi's
> `build/tizen/CMakeLists.txt`) → Platform (**GBS**, Linux only). **GBS is used ONLY
> for Platform projects.** A Native/DotNET/WebApp/RPK build never runs GBS — `tizen-manifest.xml`
> is present in every Native app and is not a Platform marker. A native build that takes a
> minute is `tz build` compiling, not GBS; do not describe it as a GBS build.
## Platform (GBS) target architecture
A Platform build produces RPMs for **one** CPU architecture, chosen with `--arch`. Without it
the runner builds **`x86_64`**, which installs only on the emulator — an x86_64 RPM on an ARM
device fails at `rpm -i`.
| User says | Target | Pass |
|---|---|---|
| emulator, x86, 에뮬레이터 (or nothing about the target) | Tizen emulator | `--arch x86_64` (default) |
| arm, armv7, armv7l, 32-bit ARM, 32비트 ARM | 32-bit ARM device or image | `--arch armv7l` |
| arm64, aarch64, 64-bit ARM, 64비트 ARM | 64-bit ARM device or image | `--arch aarch64` |
| i586, 32-bit x86 | legacy 32-bit x86 emulator image | `--arch i586` |
```bash
node "$CLI" build --project "<platform-project>" --build-type Debug --arch armv7l
```
- **Ask before building when the target is unclear.** If the user wants the RPM for a real
device ("디바이스에 설치할 RPM", "for my board") but names no architecture, ask which one
(`x86_64` / `armv7l` / `aarch64`) instead of silently building `x86_64`.
- **A connected device tells you.** Ask `tizen-sdb-helper`'s shell action (never a
hand-typed `sdb shell`) to run `uname -m; ls -d /usr/lib*`. `uname -m` names the CPU
family; the library directories name the word size of the userspace the RPM installs
into — Tizen's 64-bit images (`aarch64`, `x86_64`) have `/usr/lib64`, 32-bit images
(`armv7l`, `i586`) only `/usr/lib`. Check both: `uname -m` reports the **kernel**, so a
64-bit kernel under a 32-bit userspace still prints `aarch64`, and an `aarch64` RPM does
not install there.
| `uname -m` | `/usr/lib64` listed? | Pass |
|---|---|---|
| `aarch64` | yes | `--arch aarch64` |
| `aarch64`, `armv8l`, `armv7l` (any `arm…`) | no | `--arch armv7l` |
| `x86_64` | yes | `--arch x86_64` |
| `x86_64`, `i686`, `i586` | no | `--arch i586` |
Prefer this over guessing from the device model.
- **Only these four names are accepted.** `arm`, `arm64` or `armv7` are rejected with
`invalid_parameters` before GBS runs — map them as in the table, do not retry the same value.
- The RPMs land in `<buildroot>/local/repos/<repo>/<arch>/RPMS/` — `buildroot` comes from
`TIZEN_BUILD_ROOT` or `.gbs.conf` and defaults to `~/GBS-ROOT`; `result.artifacts` already
lists them, so report the arch from those paths.
> **RPK:** A standalone resource project is marked by `tizen_resource_project.yaml` and
> is packaged internally with `tizen package -t rpk -- <project>`, not `tz build`.
> A .NET project with `pack_as_rpk: true` remains a DotNET project and builds through its
> normal .NET flow. Both produce `.rpk`; neither may be launched after installation.
> The RPK packager crashes (`StringIndexOutOfBoundsException` in PropertyParser.getKey) on an
> `sdk.info` with a comment header or BOM, as written by installers ≤ 1.1.1. The runner repairs
> the file before every build and, if it did, adds a `Repaired <sdk>/sdk.info: …` warning.
## DALi / Platform projects require C++17
Tizen 9.0 `dali2` headers use `std::string_view` and `std::any`. A DALi project that
does not select C++17 fails inside `/usr/include/dali*`, which reads as a broken SDK
rather than a missing build setting.
The build script preflights this and **exits 4 before GBS runs** when a project
declares a `dali2-*` dependency but no C++17 setting. The only fix is in the project:
```cmake
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
```
Add it to `CMakeLists.txt` before `add_executable()`, then rebuild.
**Do not** attempt `gbs build --define "optflags -std=c++17"`. The spec's `%build`
runs plain `cmake`, so rpm optflags never reach the compiler, and CMake composes its
own `-std` flag from `CMAKE_CXX_STANDARD` regardless. This is a dead end, not a
slower path to the same result.
## macOS (Apple Silicon): `internal compiler error: Abort trap: 6` on every compile
On an ARM Mac a native build can die on the **first `.o`** with
`x86_64-linux-gnu-gcc: internal compiler error: Abort trap: 6 signal terminated program cc1`.
This is **not** a compiler bug, a transient failure, or a project problem — **never retry
the build**. The SDK's `cc1`/`cc1plus` and binutils (`as`, `ld`, `ar`, `strip`, …) are
x86_64 Mach-O binaries whose `LC_LOAD_DYLIB` load commands hard-code Intel-Homebrew
paths (`/usr/local/opt/isl/lib/libisl.23.dylib`, `/usr/local/opt/zstd/lib/libzstd.1.dylib`).
On Apple Silicon those paths do not exist, so dyld kills the tool at launch and the gcc
driver can only report the death-by-signal as an ICE. All gcc-14.2 toolchains on disk
have the defect (x86_64-, aarch64-, arm-linux-gnueabi-, riscv64- — they are all x86_64
host binaries); switching the target arch does **not** help. `tz build` on macOS is
x86_64/emulator-target regardless of the Mac's arch. Newer SDK bundles with arm64
statically-linked toolchains (e.g. Tizen 10.0 TV emulator packages) are unaffected.
The runner **preflights this**: a native build on darwin compiles a trivial `.c` with
the SDK's own gcc first and aborts with
`error_category: toolchain_host_libs_missing` (`TIZEN_SDK_BUILD_E003`) **before** `tz`
runs; a build log carrying the dyld/ICE signature is classified the same way. Either
way, relay `errors[0].message` (it is self-contained) and STOP — do not retry, do not
edit the project. The same category returning right after an SDK/toolchain package
update just means the update re-overwrote the patched binaries: re-apply the fix,
do not re-diagnose, and record the workaround in the handoff `DECISIONS.md`.
Confirm in one command (shows the true dyld error the driver hides — this is the
envelope's `suggested_fix.command`):
```bash
echo 'int main(void){return 0;}' > /tmp/tizen-icetest.c && \
<sdk>/tools/x86_64-linux-gnu-gcc-14.2/bin/x86_64-linux-gnu-gcc -c /tmp/tizen-icetest.c -o /tmp/tizen-icetest.o
# → dyld: Library not loaded: /usr/local/opt/isl/lib/libisl.23.dylib
```
Fixes (host-level, relay to the user — the runner cannot apply them):
1. **Preferred — satisfy the paths with the real libraries.** With `sudo`:
`brew install zstd` (any current version matches the soname) plus an **isl 0.22**
x86_64 build (current Homebrew isl is 0.24+ and ships a *different* soname —
`brew install isl` alone is NOT a fix), then symlink/place them at the exact
`/usr/local/opt/{isl,zstd}/lib/` paths. Or reinstall the SDK on a host where Intel
Homebrew provides them.
2. **No-sudo — stub dylibs + path rewrite.** GCC only *executes* isl code under
`-fgraphite-*` and zstd code under `-gz=zstd`, so symbol-complete no-op stubs are
safe for normal builds: collect the undefined `libisl.23`/`libzstd` imports of
`cc1{,plus}` **and** `x86_64-tizen-linux-gnu/bin/*` (`as`/`ld` import
`ZSTD_compressStream2` and more), generate `void <sym>(void){}` stubs compiled as
**x86_64** dylibs with the original install-names/versions
(`clang -arch x86_64 -dynamiclib -install_name <orig-path> …`, `codesign -f -s -`),
then for every Mach-O under the toolchain whose `otool -L` shows `/usr/local/opt/`
(≈32 binaries per toolchain): back up, `install_name_tool -change <old-abs-path>
<stub-path> <bin>`, then `codesign -f -s - <bin>` (patching invalidates the ad-hoc
signature).
3. **Dead end — `DYLD_FALLBACK_LIBRARY_PATH`.** It works when invoking gcc directly but
fails through the real toolchain path: `tz` and `tizen-core/ninja` are signed with
the hardened runtime and dyld strips `DYLD_*` env vars across them. The fix must be
in the binaries.
Notes: `x86_64-linux-gnu-gdb` additionally needs `liblzma` (debugging only — builds are
unaffected).
## On failure — read the errors before retrying
The failure envelope already contains the compile errors. You do NOT need to open the
host log file to find out what broke:
- `errors[0].message` — headline, the diagnostic lines (compiler errors first), and the
full-log path.
- `errors[0].details` — the same diagnostic lines as a string array, for structured use.
Rules:
1. **Report the actual diagnostic** (file, line, message) to the user — never just
"build failed" or a bare log path.
2. **Never re-run the same build unchanged.** An identical rebuild produces an identical
failure. Retry only after the cause is addressed, or when the envelope points to a
specific fix (e.g. exit 3 → `tizen-dotnet-setup`).
3. **Do not guess the cause** when `details` names it. `Full log:` is only for cases where
the diagnostics are empty or insufficient.
## Handoff
- **Single-task** (e.g., "빌드해줘") → DONE. Report the envelope per the "Result reporting" rules
(verbatim fenced `json` block first, then a 1–2 line summary), suggest next steps.
- **Multi-step** (e.g., "빌드해서 설치해줘") → Continue to next step.
- SDK or `tz` not found → `tizen-sdk-install`
- DotNET build fails with exit 3 (dotnet not found) → `tizen-dotnet-setup` then retry
- Platform build fails with `gbs_not_found` (exit 6: no tizen-cli GBS plugin and no `gbs`
on PATH) → show the user `suggested_fix.command` (it adds the Tizen tools apt repository
and installs `gbs`, so it needs `sudo`); do not retry the build until GBS is installed
- Build reports `toolchain_host_libs_missing` (macOS Apple Silicon, `TIZEN_SDK_BUILD_E003`:
dyld kills the SDK's Intel toolchain, every compile "Abort trap: 6") → do NOT retry and
do NOT touch the project; relay `errors[0].message` (it carries the confirm command and
the two host-level fixes) and record the applied workaround in the handoff `DECISIONS.md`
— see "macOS (Apple Silicon)" above
- Platform build fails with exit 4 (DALi without C++17) → add `set(CMAKE_CXX_STANDARD 17)`
to the project's `CMakeLists.txt`, then retry
- `--clean` fails with exit 5 (build output could not be fully removed — a file
is locked by an editor/emulator/sdb) → the build is deliberately aborted, NOT
run incrementally; close the locking process and retry
- No project → `tizen-create-project`
**Suggested next steps (only when user asks):**
- `tizen-install-app` — install built `.tpk`/`.wgt`/`.rpk`/`.rpm` to device/emulator
- RPK is resource-only: install the `.rpk` without `--run`. The runner internally uses
direct `sdb install` for RPK; do not replace it with `tz install`.
- Platform (GBS) builds produce `.rpm` packages (not `.tpk`/`.wgt`).
RPMs are output to `<buildroot>/local/repos/<repo>/<arch>/RPMS/` (`buildroot` from
`.gbs.conf`, default `~/GBS-ROOT`) and **can** be installed
via `tizen-install-app` (which supports `.rpm` — it handles `sdb root on`, `rpm -i`,
and app execution as `owner` user with proper Wayland/DBus environment internally).
**NEVER run `sdb` or `rpm` directly** — always use `tizen-install-app` for RPM installation.
The RPM's architecture must match the target: the default `x86_64` build is for the
emulator — rebuild with `--arch armv7l` / `--arch aarch64` for an ARM device.
- Debugging: Native → `tizen-gdb-debug`, DotNET → `tizen-dotnet-debug`