@geastack/apple 0.2.29 → 0.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/targets/ios/build-ios.sh
CHANGED
|
@@ -267,7 +267,12 @@ show_simulator_device() {
|
|
|
267
267
|
if [[ "${GEA_IOS_OPEN_SIMULATOR:-1}" != "1" ]]; then
|
|
268
268
|
return 0
|
|
269
269
|
fi
|
|
270
|
-
|
|
270
|
+
# Only a convenience: the device boots, installs and launches without the
|
|
271
|
+
# GUI. Xcode 27 replaced Simulator.app with DeviceHub.app (bundle id
|
|
272
|
+
# com.apple.dt.Devices), which shows every booted simulator.
|
|
273
|
+
/usr/bin/open -a Simulator --args -CurrentDeviceUDID "$udid" 2>/dev/null ||
|
|
274
|
+
/usr/bin/open -b com.apple.dt.Devices 2>/dev/null ||
|
|
275
|
+
echo "Could not open Simulator.app or DeviceHub.app; the simulator runs without a window." >&2
|
|
271
276
|
}
|
|
272
277
|
|
|
273
278
|
pick_device() {
|
|
@@ -895,6 +895,8 @@ if [[ ${#RESIDENT_IDS[@]} -eq 0 ]]; then
|
|
|
895
895
|
fi
|
|
896
896
|
|
|
897
897
|
CXX_DEFINES=(
|
|
898
|
+
# Workers and AudioWorklets run in their own runtime realms on macOS.
|
|
899
|
+
-DGEA_RUNTIME_REALMS=1
|
|
898
900
|
-DGEA_EMBEDDED_ENABLE_VIRTUAL_KEYBOARD=0
|
|
899
901
|
# Desktop screens exceed the embedded default of 512 nodes. Apply the
|
|
900
902
|
# capacity consistently to generated app code and every framework TU.
|
|
@@ -1160,6 +1162,13 @@ fi
|
|
|
1160
1162
|
|
|
1161
1163
|
OBJ_FILES=()
|
|
1162
1164
|
|
|
1165
|
+
# Resolve the compiler and SDK together through the selected Xcode. PATH may
|
|
1166
|
+
# contain a toolchain shim whose Clang cannot consume the selected SDK headers.
|
|
1167
|
+
MACOS_CLANG="$(xcrun --sdk macosx --find clang)"
|
|
1168
|
+
MACOS_CLANGXX="$(xcrun --sdk macosx --find clang++)"
|
|
1169
|
+
SDKROOT="$(xcrun --sdk macosx --show-sdk-path)"
|
|
1170
|
+
export SDKROOT
|
|
1171
|
+
|
|
1163
1172
|
CCACHE_PREFIX=()
|
|
1164
1173
|
if [[ "${GEA_MACOS_CCACHE:-1}" != "0" ]]; then
|
|
1165
1174
|
if command -v sccache >/dev/null 2>&1; then
|
|
@@ -1171,8 +1180,8 @@ fi
|
|
|
1171
1180
|
# macOS still ships Bash 3.2, where expanding an explicitly empty array under
|
|
1172
1181
|
# `set -u` raises "unbound variable". Keep the cache prefix genuinely
|
|
1173
1182
|
# optional so GEA_MACOS_CCACHE=0 can exercise an authoritative cold build.
|
|
1174
|
-
CLANG_CMD=(${CCACHE_PREFIX[@]+"${CCACHE_PREFIX[@]}"}
|
|
1175
|
-
CLANGXX_CMD=(${CCACHE_PREFIX[@]+"${CCACHE_PREFIX[@]}"}
|
|
1183
|
+
CLANG_CMD=(${CCACHE_PREFIX[@]+"${CCACHE_PREFIX[@]}"} "$MACOS_CLANG")
|
|
1184
|
+
CLANGXX_CMD=(${CCACHE_PREFIX[@]+"${CCACHE_PREFIX[@]}"} "$MACOS_CLANGXX")
|
|
1176
1185
|
MACOS_COMPILER_VERSION="$("${CLANGXX_CMD[@]}" --version 2>/dev/null | head -n 1 || true)"
|
|
1177
1186
|
|
|
1178
1187
|
# Mangle a source path into a unique object filename. Return through a global
|
|
@@ -1201,7 +1210,7 @@ compile_signature() {
|
|
|
1201
1210
|
printf '%s ' "${CLANG_CMD[@]}"
|
|
1202
1211
|
printf '\nclangxx='
|
|
1203
1212
|
printf '%s ' "${CLANGXX_CMD[@]}"
|
|
1204
|
-
printf '\ncompiler-version=%s\n' "$MACOS_COMPILER_VERSION"
|
|
1213
|
+
printf '\ncompiler-version=%s\nsdk=%s\n' "$MACOS_COMPILER_VERSION" "$SDKROOT"
|
|
1205
1214
|
printf 'defines='
|
|
1206
1215
|
printf '%s ' "${CXX_DEFINES[@]}"
|
|
1207
1216
|
printf '\nincludes='
|
|
@@ -2027,7 +2036,7 @@ LINK_OUTPUT_TMP="$LINK_OUTPUT.tmp.$$"
|
|
|
2027
2036
|
LINK_SIGNATURE_FILE="$BUILD_DIR/link.sig"
|
|
2028
2037
|
LINK_SIGNATURE_TMP="$LINK_SIGNATURE_FILE.tmp.$$"
|
|
2029
2038
|
{
|
|
2030
|
-
printf 'compiler=%s\n' "$MACOS_COMPILER_VERSION"
|
|
2039
|
+
printf 'compiler=%s\nsdk=%s\n' "$MACOS_COMPILER_VERSION" "$SDKROOT"
|
|
2031
2040
|
printf 'opt=%s\n' "$GEA_MACOS_OPT_LEVEL"
|
|
2032
2041
|
printf 'debug=%s\n' "${GEA_MACOS_DEBUG_INFO:-}"
|
|
2033
2042
|
printf 'link=%s\n' "${MACOS_LINK_FLAGS[@]}"
|
|
@@ -2056,7 +2065,7 @@ if (( LINK_NEEDED != 0 )); then
|
|
|
2056
2065
|
# address-taken ones included, and the runtime tells callables apart by
|
|
2057
2066
|
# entry address (CallableObject::callWithReceiver finds a method's receiver
|
|
2058
2067
|
# check by it), so a folded method template ran its twin's check.
|
|
2059
|
-
macos_run_tracked_child
|
|
2068
|
+
macos_run_tracked_child "$MACOS_CLANGXX" -std=c++20 -ObjC++ -fobjc-arc "$GEA_MACOS_OPT_LEVEL" ${GEA_MACOS_DEBUG_INFO} \
|
|
2060
2069
|
"${MACOS_LINK_FLAGS[@]}" \
|
|
2061
2070
|
"${LINK_FRAMEWORKS[@]}" \
|
|
2062
2071
|
"${OBJ_FILES[@]}" \
|