Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .agents/skills/firebase-cpp-test-runner/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ To build iOS testapps for a specific product (e.g., `auth`):
python3 scripts/gha/build_testapps.py --t auth --p iOS
```

_Note:_ You must have a Mac environment with Xcode and Cocoapods to build iOS
tests successfully.
_Note:_ You must have a Mac environment with Xcode to build iOS tests
successfully (Swift Package Manager is used for iOS testapp dependencies).

### Building for Desktop

Expand Down
21 changes: 0 additions & 21 deletions analytics/integration_test/Podfile

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
objects = {

/* Begin PBXBuildFile section */
1A0000012D75000000000001 /* FirebaseAnalytics in Frameworks */ = {isa = PBXBuildFile; productRef = 1A0000022D75000000000001 /* FirebaseAnalytics */; };
1A0000012D75000000000002 /* FirebaseAnalytics in Frameworks */ = {isa = PBXBuildFile; productRef = 1A0000022D75000000000002 /* FirebaseAnalytics */; };
520BC0391C869159008CFBC3 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 520BC0381C869159008CFBC3 /* GoogleService-Info.plist */; };
529226D61C85F68000C89379 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 529226D51C85F68000C89379 /* Foundation.framework */; };
529226D81C85F68000C89379 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 529226D71C85F68000C89379 /* CoreGraphics.framework */; };
Expand Down Expand Up @@ -38,7 +40,6 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
08BEC1E1347C2FECB5DCC35B /* libPods-integration_test.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-integration_test.a"; sourceTree = BUILT_PRODUCTS_DIR; };
520BC0381C869159008CFBC3 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
529226D21C85F68000C89379 /* integration_test.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = integration_test.app; sourceTree = BUILT_PRODUCTS_DIR; };
529226D51C85F68000C89379 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
Expand All @@ -51,7 +52,6 @@
BC1D66692668D4AE005DC2DA /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS14.5.sdk/System/Library/Frameworks/CoreGraphics.framework; sourceTree = DEVELOPER_DIR; };
BC1D666B2668D4B3005DC2DA /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS14.5.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; };
BC1D666D2668D4BB005DC2DA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS14.5.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; };
C72064CD0A7906E678F38564 /* libPods-integration_test_tvos.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-integration_test_tvos.a"; sourceTree = BUILT_PRODUCTS_DIR; };
D61C5F8C22BABA9B00A79141 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
D61C5F8D22BABA9C00A79141 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
D61C5F9222BABAD100A79141 /* integration_test.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = integration_test.cc; path = src/integration_test.cc; sourceTree = "<group>"; };
Expand All @@ -77,6 +77,7 @@
529226D81C85F68000C89379 /* CoreGraphics.framework in Frameworks */,
529226DA1C85F68000C89379 /* UIKit.framework in Frameworks */,
529226D61C85F68000C89379 /* Foundation.framework in Frameworks */,
1A0000012D75000000000001 /* FirebaseAnalytics in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -87,6 +88,7 @@
BC1D666E2668D4BB005DC2DA /* Foundation.framework in Frameworks */,
BC1D666C2668D4B3005DC2DA /* UIKit.framework in Frameworks */,
BC1D666A2668D4AE005DC2DA /* CoreGraphics.framework in Frameworks */,
1A0000012D75000000000002 /* FirebaseAnalytics in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -126,8 +128,6 @@
529226D71C85F68000C89379 /* CoreGraphics.framework */,
529226D91C85F68000C89379 /* UIKit.framework */,
529226EE1C85F68000C89379 /* XCTest.framework */,
08BEC1E1347C2FECB5DCC35B /* libPods-integration_test.a */,
C72064CD0A7906E678F38564 /* libPods-integration_test_tvos.a */,
);
name = Frameworks;
sourceTree = "<group>";
Expand Down Expand Up @@ -175,7 +175,6 @@
isa = PBXNativeTarget;
buildConfigurationList = 529226F91C85F68000C89379 /* Build configuration list for PBXNativeTarget "integration_test" */;
buildPhases = (
AD3D1FDEE4CF418AF7FD6E76 /* [CP] Check Pods Manifest.lock */,
529226CE1C85F68000C89379 /* Sources */,
529226CF1C85F68000C89379 /* Frameworks */,
529226D01C85F68000C89379 /* Resources */,
Expand All @@ -185,6 +184,9 @@
dependencies = (
);
name = integration_test;
packageProductDependencies = (
1A0000022D75000000000001 /* FirebaseAnalytics */,
);
productName = testapp;
productReference = 529226D21C85F68000C89379 /* integration_test.app */;
productType = "com.apple.product-type.application";
Expand All @@ -193,7 +195,6 @@
isa = PBXNativeTarget;
buildConfigurationList = BC1D66612668D10A005DC2DA /* Build configuration list for PBXNativeTarget "integration_test_tvos" */;
buildPhases = (
8958A3A33BBDC5DD317A123E /* [CP] Check Pods Manifest.lock */,
BC1D66482668D109005DC2DA /* Sources */,
BC1D66492668D109005DC2DA /* Frameworks */,
BC1D664A2668D109005DC2DA /* Resources */,
Expand All @@ -203,6 +204,9 @@
dependencies = (
);
name = integration_test_tvos;
packageProductDependencies = (
1A0000022D75000000000002 /* FirebaseAnalytics */,
);
productName = integration_test_tvos;
productReference = BC1D664C2668D109005DC2DA /* integration_test_tvos.app */;
productType = "com.apple.product-type.application";
Expand Down Expand Up @@ -239,6 +243,9 @@
Base,
);
mainGroup = 529226C91C85F68000C89379;
packageReferences = (
1A0000032D75000000000001 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */,
);
productRefGroup = 529226D31C85F68000C89379 /* Products */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -272,53 +279,6 @@
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
8958A3A33BBDC5DD317A123E /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-integration_test_tvos-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
AD3D1FDEE4CF418AF7FD6E76 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-integration_test-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
529226CE1C85F68000C89379 /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand Down Expand Up @@ -622,6 +582,30 @@
};
/* End XCBuildConfiguration section */

/* Begin XCRemoteSwiftPackageReference section */
1A0000032D75000000000001 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/firebase/firebase-ios-sdk.git";
requirement = {
kind = exactVersion;
version = 12.19.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
1A0000022D75000000000001 /* FirebaseAnalytics */ = {
isa = XCSwiftPackageProductDependency;
package = 1A0000032D75000000000001 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
productName = FirebaseAnalytics;
};
1A0000022D75000000000002 /* FirebaseAnalytics */ = {
isa = XCSwiftPackageProductDependency;
package = 1A0000032D75000000000001 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
productName = FirebaseAnalytics;
};
/* End XCSwiftPackageProductDependency section */

/* Begin XCConfigurationList section */
529226CD1C85F68000C89379 /* Build configuration list for PBXProject "integration_test" */ = {
isa = XCConfigurationList;
Expand Down
16 changes: 6 additions & 10 deletions analytics/integration_test/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,16 @@ Building and Running the sample
-------------------------------

### iOS
- Link your iOS app to the Firebase libraries.
- Get CocoaPods version 1 or later by running,
- Set up the test framework and dependencies:
- From the SDK root directory, run the setup script for the integration test:
```
sudo gem install cocoapods --pre
python3 setup_integration_tests.py analytics/integration_test
```
- From the sample directory, install the CocoaPods listed in the Podfile
by running,
- Open the Xcode project:
```
pod install
```
- Open the generated Xcode workspace (which now has the CocoaPods),
```
open sample.xcworkspace
open integration_test.xcodeproj
```
Xcode will automatically resolve the required Swift Package dependencies (e.g. `firebase-ios-sdk`).
- For further details please refer to the
[general instructions for setting up an iOS app with Firebase](https://firebase.google.com/docs/ios/setup).
- Register your iOS app with Firebase.
Expand Down
15 changes: 0 additions & 15 deletions app/integration_test/Podfile

This file was deleted.

28 changes: 28 additions & 0 deletions app/integration_test/integration_test.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
1A40472D010000000001 /* FirebaseAnalytics in Frameworks */ = {isa = PBXBuildFile; productRef = 1A40472D020000000001 /* FirebaseAnalytics */; };
520BC0391C869159008CFBC3 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 520BC0381C869159008CFBC3 /* GoogleService-Info.plist */; };
529226D61C85F68000C89379 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 529226D51C85F68000C89379 /* Foundation.framework */; };
529226D81C85F68000C89379 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 529226D71C85F68000C89379 /* CoreGraphics.framework */; };
Expand Down Expand Up @@ -55,6 +56,8 @@
529226D81C85F68000C89379 /* CoreGraphics.framework in Frameworks */,
529226DA1C85F68000C89379 /* UIKit.framework in Frameworks */,
529226D61C85F68000C89379 /* Foundation.framework in Frameworks */,

1A40472D010000000001 /* FirebaseAnalytics in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -136,6 +139,9 @@
dependencies = (
);
name = integration_test;
packageProductDependencies = (
1A40472D020000000001 /* FirebaseAnalytics */,
);
productName = testapp;
productReference = 529226D21C85F68000C89379 /* integration_test.app */;
productType = "com.apple.product-type.application";
Expand Down Expand Up @@ -166,6 +172,9 @@
en,
);
mainGroup = 529226C91C85F68000C89379;
packageReferences = (
1A40472D030000000001 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */,
);
productRefGroup = 529226D31C85F68000C89379 /* Products */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -352,6 +361,25 @@
};
/* End XCBuildConfiguration section */

/* Begin XCRemoteSwiftPackageReference section */
1A40472D030000000001 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/firebase/firebase-ios-sdk.git";
requirement = {
kind = exactVersion;
version = 12.19.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
1A40472D020000000001 /* FirebaseAnalytics */ = {
isa = XCSwiftPackageProductDependency;
package = 1A40472D030000000001 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
productName = FirebaseAnalytics;
};
/* End XCSwiftPackageProductDependency section */

/* Begin XCConfigurationList section */
529226CD1C85F68000C89379 /* Build configuration list for PBXProject "integration_test" */ = {
isa = XCConfigurationList;
Expand Down
28 changes: 0 additions & 28 deletions app_check/integration_test/Podfile

This file was deleted.

Loading
Loading