diff --git a/CURRENT_CHECKPOINT.md b/CURRENT_CHECKPOINT.md index 1ca1c58b..2b9de6c3 100644 --- a/CURRENT_CHECKPOINT.md +++ b/CURRENT_CHECKPOINT.md @@ -14,7 +14,7 @@ ## Current State - Stage: `M49_IOS_DEVICE_VALIDATION` (`IN_PROGRESS`) -- Active implementation step: M49-B (iOS export preset). M49-A closes at source +- Active implementation step: M49-C (local Xcode device install). M49-A closes at source `c6cd45b`. M48-D (verification and owner handoff) closes at source `0eec3ed`. M48-A @@ -79,9 +79,13 @@ `docs/plans/M48_UI_LAYER_CLEANUP.md`. M48 is complete at its written stopping point; its visual audit is `docs/runtime/M48_UI_LAYER_CLEANUP_VISUAL_AUDIT.md`. M49 is the owner-requested local iOS device validation path; its plan is - `docs/plans/M49_IOS_DEVICE_VALIDATION.md`. M49-A preflight is complete. The - local Team ID is `X75CUV458P`, a valid development identity/profile are - present, and the proposed Bundle ID is `com.wusu.aetherboundguild`. + `docs/plans/M49_IOS_DEVICE_VALIDATION.md`. M49-A preflight and M49-B export + preset are complete. The local Team ID is `X75CUV458P`, a valid development + identity/profile are present, and the proposed Bundle ID is + `com.wusu.aetherboundguild`. The arm64 signed Xcode build succeeds with + landscape orientation; known iPhone entries are currently `unavailable`, so + install/launch remains open. Evidence is recorded in + `docs/runtime/M49_IOS_EXPORT_PREFLIGHT.md`. M47 remains complete; its plan is `docs/plans/M47_UNIFIED_UI_MVP.md`. M47-A closes at source `1d3a526`; M47-B closes at source `57fbd67`; M47-C now owns the three diff --git a/docs/06_DEVELOPMENT_AND_REVIEW.md b/docs/06_DEVELOPMENT_AND_REVIEW.md index cd76c2d8..a8f58f45 100644 --- a/docs/06_DEVELOPMENT_AND_REVIEW.md +++ b/docs/06_DEVELOPMENT_AND_REVIEW.md @@ -11,7 +11,8 @@ Complete-game Goal, hand-drawn repair boundary, ordered implementation plan, roa ## Repository Reset And Page Production Baseline > Status: `IN_PROGRESS / M49_IOS_DEVICE_VALIDATION` -> Active step: M49-B (iOS export preset). M49-A closes at source `c6cd45b`. +> Active step: M49-C (local Xcode device install). M49-A closes at source `c6cd45b`; +> M49-B closes with the current iOS export configuration. > M48-D (verification and owner handoff) closes at source > `0eec3ed`. M48-A closes at source > `4be06de`; M48-B closes at source `4782c13`; M48-C closes at source @@ -20,10 +21,13 @@ Complete-game Goal, hand-drawn repair boundary, ordered implementation plan, roa > stacked UI layers and weak button affordances is complete. > M49 is the owner-requested local iOS device validation path; its plan is > `docs/plans/M49_IOS_DEVICE_VALIDATION.md`. Xcode 26.1.1 and a valid local -> Apple Development identity are present; export settings await owner -> confirmation of Team ID and Bundle ID. The local preflight found Team ID -> `X75CUV458P`, a valid Apple Development identity and a wildcard development -> profile; the proposed Bundle ID is `com.wusu.aetherboundguild`. +> Apple Development identity are present. The preset now exports a project-only +> Xcode project with automatic signing, arm64 and landscape orientation; the +> signed device configuration builds successfully. The local preflight found +> Team ID `X75CUV458P`; the proposed Bundle ID is +> `com.wusu.aetherboundguild`. Known iPhone entries are currently +> `unavailable`, so device install/launch remains open. Evidence is recorded in +> `docs/runtime/M49_IOS_EXPORT_PREFLIGHT.md`. > M47 remains complete: M47-A closes at source `1d3a526`; > M47-B closes at source > `57fbd67`; M47-C closes at source `f911095`; M47-D closes at source diff --git a/docs/plans/M49_IOS_DEVICE_VALIDATION.md b/docs/plans/M49_IOS_DEVICE_VALIDATION.md index 962e6a41..e239ef1c 100644 --- a/docs/plans/M49_IOS_DEVICE_VALIDATION.md +++ b/docs/plans/M49_IOS_DEVICE_VALIDATION.md @@ -44,17 +44,29 @@ Godot 4.6.1 is installed, and the local keychain contains a valid Apple Development identity for Team `X75CUV458P` plus an Xcode-managed wildcard development profile. No iOS preset existed at baseline. -### M49-B — iOS export preset (`IN_PROGRESS`) +### M49-B — iOS export preset (`COMPLETE`) - Add the owner-provided Team ID, Bundle ID and landscape settings to the Godot iOS preset. - Keep generated Xcode output outside Git. -### M49-C — Local Xcode device install +Closure: M49-B closes at the current source after the preset and project +settings were verified. The preset exports a project-only Xcode project with +automatic signing, arm64, iOS 14.0 and landscape-left/right orientation. The +arm64 device configuration builds successfully with the local Apple +Development identity. Details are recorded in +`docs/runtime/M49_IOS_EXPORT_PREFLIGHT.md`. + +### M49-C — Local Xcode device install (`IN_PROGRESS`) - Export the Xcode project, open it in Xcode and build to the connected device. - Resolve only signing/device setup issues; do not upload or distribute. +Current state: the Xcode project and signed arm64 app build are ready, but the +known iPhone entries are currently `unavailable` to `devicectl`. Installation +and launch remain pending a connected, unlocked, trusted device with Developer +Mode enabled. + ### M49-D — Device visual/touch handoff - Run the first-cycle checklist on device and record viewport/safe-area issues. diff --git a/docs/runtime/M49_IOS_EXPORT_PREFLIGHT.md b/docs/runtime/M49_IOS_EXPORT_PREFLIGHT.md new file mode 100644 index 00000000..883a695d --- /dev/null +++ b/docs/runtime/M49_IOS_EXPORT_PREFLIGHT.md @@ -0,0 +1,67 @@ +# M49 iOS Export Preflight + +## Scope + +This is the local, debug-only iOS validation boundary for Aetherbound Guild. +It does not authorize TestFlight, App Store submission, distribution signing or +release packaging. + +## Verified configuration + +- Godot: `4.6.1.stable.official.14d19694e` +- Xcode: `26.1.1` +- Team ID: `X75CUV458P` +- Bundle ID: `com.wusu.aetherboundguild` (proposed owner-local ID) +- Architecture: `arm64` +- Deployment target: iOS `14.0` +- Orientation: `UIInterfaceOrientationLandscapeLeft` and + `UIInterfaceOrientationLandscapeRight` +- Signing mode: Xcode automatic signing with the local Apple Development + identity/profile available on this Mac + +## Export verification + +The following command generated an Xcode project outside the repository: + +```sh +HOME=/Users/wusumac /Applications/Godot.app/Contents/MacOS/Godot \ + --headless --audio-driver Dummy --path runtime \ + --export-debug "iOS Device Debug" \ + /private/tmp/aetherbound-ios-export-final-20260906-e/AetherboundGuild +``` + +Result: Godot export exited `0`, and +`/private/tmp/aetherbound-ios-export-final-20260906-e/AetherboundGuild.xcodeproj` +was created. The generated project contains one `AetherboundGuild` target and +one matching scheme. + +## arm64 Xcode verification + +The signed device configuration was built with: + +```sh +xcodebuild \ + -project /private/tmp/aetherbound-ios-export-final-20260906-e/AetherboundGuild.xcodeproj \ + -scheme AetherboundGuild -sdk iphoneos -configuration Debug \ + -derivedDataPath /private/tmp/aetherbound-ios-signed-derived-20260906-e build +``` + +Result: `** BUILD SUCCEEDED **`. The resulting app is arm64, has bundle ID +`com.wusu.aetherboundguild`, is signed by `Apple Development: wu ShengHua +(E2D99JSE7J)`, and carries Team ID `X75CUV458P`. + +## Non-blocking warnings + +- Godot resizes the single opaque 1024px boot image for the required iOS icon + slots. This is an export warning, not a build failure; a dedicated square + app icon can replace it later without changing the runtime. +- Xcode reports empty camera/microphone/photo usage descriptions because the + generated Godot template emits those optional keys. The current game does + not request those capabilities. + +## Device state + +`xcrun devicectl list devices` currently reports the three known iPhones as +`unavailable`, so an install/launch check could not yet be performed. M49-C +remains open until the owner's iPhone is connected, unlocked, trusted and has +Developer Mode enabled. diff --git a/runtime/assets/entry/boot/aetherbound-guild-icon.png b/runtime/assets/entry/boot/aetherbound-guild-icon.png new file mode 100644 index 00000000..cd3b26c8 Binary files /dev/null and b/runtime/assets/entry/boot/aetherbound-guild-icon.png differ diff --git a/runtime/assets/entry/boot/aetherbound-guild-icon.png.import b/runtime/assets/entry/boot/aetherbound-guild-icon.png.import new file mode 100644 index 00000000..5a4b6c92 --- /dev/null +++ b/runtime/assets/entry/boot/aetherbound-guild-icon.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bgqde2c7nwq1u" +path="res://.godot/imported/aetherbound-guild-icon.png-96ce4a5bb0f562f35b35d9a437a66b0b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/entry/boot/aetherbound-guild-icon.png" +dest_files=["res://.godot/imported/aetherbound-guild-icon.png-96ce4a5bb0f562f35b35d9a437a66b0b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/runtime/export_presets.cfg b/runtime/export_presets.cfg index a4f1774a..d8d71136 100644 --- a/runtime/export_presets.cfg +++ b/runtime/export_presets.cfg @@ -33,3 +33,77 @@ html/canvas_resize_policy=2 html/focus_canvas_on_start=true html/experimental_virtual_keyboard=true progressive_web_app/enabled=false + +[preset.1] + +name="iOS Device Debug" +platform="iOS" +runnable=true +advanced_options=false +dedicated_server=false +custom_features="" +export_filter="all_resources" +include_filter="assets/fonts/OFL.txt" +exclude_filter="tests/*,evidence/*,build/*" +export_path="build/ios/AetherboundGuild.xcodeproj" +patches=PackedStringArray() +encryption_include_filters="" +encryption_exclude_filters="" +seed=0 +encrypt_pck=false +encrypt_directory=false +script_export_mode=2 + +[preset.1.options] + +custom_template/debug="" +custom_template/release="" +architectures/arm64=true +application/app_store_team_id="X75CUV458P" +application/export_method_debug=1 +application/code_sign_identity_debug="" +application/code_sign_identity_release="" +application/provisioning_profile_uuid_debug="" +application/provisioning_profile_uuid_release="" +application/provisioning_profile_specifier_debug="" +application/provisioning_profile_specifier_release="" +application/export_method_release=1 +application/bundle_identifier="com.wusu.aetherboundguild" +application/signature="" +application/short_version="0.1.0" +application/version="1" +application/additional_plist_content="" +application/icon_interpolation=4 +application/export_project_only=true +application/delete_old_export_files_unconditionally=false +application/targeted_device_family=2 +application/min_ios_version="14.0" +icons/iphone_120x120="res://assets/entry/boot/aetherbound-guild-icon.png" +icons/iphone_180x180="res://assets/entry/boot/aetherbound-guild-icon.png" +icons/ipad_152x152="res://assets/entry/boot/aetherbound-guild-icon.png" +icons/ipad_167x167="res://assets/entry/boot/aetherbound-guild-icon.png" +icons/app_store_1024x1024="res://assets/entry/boot/aetherbound-guild-icon.png" +entitlements/increased_memory_limit=false +entitlements/game_center=false +entitlements/push_notifications="Disabled" +entitlements/additional="" +capabilities/access_wifi=false +capabilities/performance_gaming_tier=false +capabilities/performance_a12=false +capabilities/additional=PackedStringArray() +shader_baker/enabled=false +user_data/accessible_from_files_app=false +user_data/accessible_from_itunes_sharing=false +privacy/camera_usage_description="" +privacy/camera_usage_description_localized={} +privacy/microphone_usage_description="" +privacy/microphone_usage_description_localized={} +privacy/photolibrary_usage_description="" +privacy/photolibrary_usage_description_localized={} +privacy/file_timestamp_access_reasons=3 +privacy/system_boot_time_access_reasons=1 +privacy/disk_space_access_reasons=3 +privacy/active_keyboard_access_reasons=0 +privacy/user_defaults_access_reasons=0 +privacy/tracking_enabled=false +privacy/tracking_domains=PackedStringArray() diff --git a/runtime/project.godot b/runtime/project.godot index 8ef3e7d1..ea49ba3b 100644 --- a/runtime/project.godot +++ b/runtime/project.godot @@ -11,6 +11,7 @@ config_version=5 [application] config/name="Aetherbound Guild" +config/icon="res://assets/entry/boot/aetherbound-guild-icon.png" run/main_scene="res://main.tscn" config/features=PackedStringArray("4.6", "GL Compatibility") @@ -25,7 +26,7 @@ window/size/viewport_height=390 window/size/window_width_override=844 window/size/window_height_override=390 window/stretch/mode="canvas_items" -window/handheld/orientation=5 +window/handheld/orientation=4 [input] @@ -45,3 +46,4 @@ pointing/emulate_touch_from_mouse=true renderer/rendering_method="gl_compatibility" renderer/rendering_method.mobile="gl_compatibility" +textures/vram_compression/import_etc2_astc=true diff --git a/tools/export_runtime_ios.sh b/tools/export_runtime_ios.sh new file mode 100755 index 00000000..0662f833 --- /dev/null +++ b/tools/export_runtime_ios.sh @@ -0,0 +1,23 @@ +#!/bin/bash +set -euo pipefail + +ROOT=$(cd "$(dirname "$0")/.." && pwd) +RUNTIME="$ROOT/runtime" +GODOT=${GODOT_BIN:-/Applications/Godot.app/Contents/MacOS/Godot} +OUTPUT=${1:-/private/tmp/aetherbound-guild-ios/AetherboundGuild} + +if [ ! -x "$GODOT" ]; then + echo "Godot executable not found: $GODOT" >&2 + exit 91 +fi +if [ ! -f "$RUNTIME/export_presets.cfg" ]; then + echo "runtime/export_presets.cfg is missing" >&2 + exit 92 +fi + +mkdir -p "$(dirname "$OUTPUT")" + +"$GODOT" --headless --audio-driver Dummy --path "$RUNTIME" \ + --export-debug "iOS Device Debug" "$OUTPUT" + +echo "iOS Xcode project: ${OUTPUT%.*}.xcodeproj"