Files
ios-client/.github
Zoltan Papp b2c3fe5b7d Fix broken tests and enable tests workflows (#148)
* ci: re-enable Test workflow on push and pull_request

Run the iOS test suite on PRs again to check whether the previously reported test crash still reproduces.

* fix(ios): raise NetBirdTests deployment target to iOS 15.0

The NetBirdTests target was iOS 14.0 while the NetBird app module requires iOS 15.0, so `@testable import NetBird` failed to build ("Compiling for iOS 14.0, but module 'NetBird' has a minimum deployment target of iOS 15.0"). Match the test target to the app so the test bundle compiles and the suite can run.

* ci(ios): use valid GOOGLE_APP_ID in dummy Firebase plist

The dummy GoogleService-Info.plist used a GOOGLE_APP_ID of "dummy",
which fails Firebase's app-ID format validation. At launch the host app
calls FirebaseApp.configure(options:), and +[FIRApp addAppToAppDictionary:]
raised an uncaught NSException, aborting the host before the test runner
could establish a connection ("Test crashed with signal abrt before
establishing connection"). This blocked all hosted tests, not just the
new profile-migration ones.

Give the dummy app ID a well-formed value so configure() succeeds.

* fix(ios): skip Firebase configuration under unit tests

The host app calls FirebaseApp.configure() at launch. When launched purely
to host unit tests, this aborted the process before the test runner could
connect because FirebaseApp.configure() raises an uncaught ObjC exception on
an invalid app ID (the CI dummy plist).

Gate both the iOS and tvOS configure paths on the XCTestConfigurationFilePath
environment variable so Firebase is never initialized in the test host, and
fold the duplicated configure logic into a single helper.
2026-06-28 12:19:01 +02:00
..