I have a firebase app that uses multiple modules so tests can run without needing to launch a simulator instance.
I've broken out my project into multiple spm targets, so my folder structure resembles the following:
MyApp
--- App
------ iOS
--------- ContentView.swift
--------- GoogleService-Info.plist
--- Sources
------ FirebaseClient
--------- FirebaseClient.swift
--- Tests
----- FirebaseClientTests
--------- FirebaseClientTests.swift
--- Package.swift
Calling FirebaseApp.configure()
from FirebaseClient.swift
works, but only so long as the main app is being run. If I try calling the setup function in FirebaseClient.swift
from FirebaseClientTests.swift
, I get the plist not found error. However, if I create a resources folder inside FirebaseClient, it can't find the plist in either executable. How can I set up the project so both the target and the test can find GoogleService-Info.plist?