From e7e8b0abf3fb44fda3ebcdfd6236db0b47c01d5f Mon Sep 17 00:00:00 2001 From: spacedandy-agents-simplex <342056592+spacedandy-agents-simplex@users.noreply.github.com> Date: Wed, 21 Oct 2026 18:31:15 +0000 Subject: [PATCH] ci: the iOS simulator tests set private routing to unknown servers only, so the app can reach the test names server Master's 3126d9b54 made the iOS app's default private routing "always". Name lookups then go through a preset server, which can't reach the test SMP server on the runner's localhost, so every iOS case that resolves a SimpleX name would fail. The desktop and Android tests already set "unknown" before the first launch; the iOS smoke test now writes the same into the app group's defaults after installing the app, and the app applies it when its chat starts. --- scripts/ci/ios-sim/smoke-test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/ci/ios-sim/smoke-test.sh b/scripts/ci/ios-sim/smoke-test.sh index dd9feed0d1..de8d8da927 100755 --- a/scripts/ci/ios-sim/smoke-test.sh +++ b/scripts/ci/ios-sim/smoke-test.sh @@ -339,6 +339,10 @@ search_in_new_chat() { } xcrun simctl install "$SIM_UDID" "$app" +# private routing to unknown servers only: the preset servers that would proxy name lookups can't reach the test SMP +# server on localhost +prefs=$(xcrun simctl get_app_container "$SIM_UDID" "$bundle_id" group.chat.simplex.app)/Library/Preferences/group.chat.simplex.app +xcrun simctl spawn "$SIM_UDID" defaults write "$prefs" networkSMPProxyMode -string unknown xcrun simctl launch "$SIM_UDID" "$bundle_id" # onboarding to the chat list