Skip to content

Commit

Permalink
Skip Keychain tests on macOS and SPM
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard committed Oct 18, 2023
1 parent 7f995f3 commit 0e14f36
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@
* limitations under the License.
*/

#import <TargetConditionals.h>

// Tests that use the Keychain require a host app and Swift Package Manager
// does not support adding a host app to test targets.
#if !SWIFT_PACKAGE

// Skip keychain tests on Catalyst and macOS. Tests are skipped because they
// involve interactions with the keychain that require a provisioning profile.
// See go/firebase-macos-keychain-popups for more details.
#if !TARGET_OS_MACCATALYST && !TARGET_OS_OSX

#import <XCTest/XCTest.h>

#import <OCMock/OCMock.h>
Expand Down Expand Up @@ -172,3 +183,7 @@ - (void)assertIndependentSetGetForStoragesWithAppName1:(NSString *)appName1
}

@end

#endif // !TARGET_OS_MACCATALYST && !TARGET_OS_OSX

#endif // !SWIFT_PACKAGE

0 comments on commit 0e14f36

Please sign in to comment.