-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix(crashlytics): Rename test target's host app scheme #1788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Summary of ChangesHello @ncooke3, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on standardizing the naming conventions within the Crashlytics example project. It renames the host application scheme and its associated test targets across different platforms and build configurations. The primary goal is to simplify and clarify the project's internal references by removing redundant descriptors like 'SwiftUI' and '(iOS)' from the main app name and ensuring consistent naming for the watchOS target. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request aims to rename the test target's host app scheme, but the changes in the project.pbxproj file are incomplete and introduce inconsistencies that will likely break the UI tests for iOS and watchOS. I've pointed out the specific mismatches in TEST_TARGET_NAME and productName that need to be addressed. Manually editing Xcode project files is error-prone, and it seems some related settings were missed during the rename. Please review the comments to ensure the project remains in a buildable state.
| SWIFT_VERSION = 5.0; | ||
| TARGETED_DEVICE_FAMILY = "1,2"; | ||
| TEST_TARGET_NAME = "CrashlyticsSwiftUIExample (iOS)"; | ||
| TEST_TARGET_NAME = "CrashlyticsExample"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TEST_TARGET_NAME build setting must match the PRODUCT_NAME of the host application target. The host target CrashlyticsExample has its PRODUCT_NAME set to CrashlyticsSwiftUIExample (on lines 996 and 1031). Changing TEST_TARGET_NAME to CrashlyticsExample will cause a mismatch and tests will fail to launch. To fix this, TEST_TARGET_NAME should be CrashlyticsSwiftUIExample to match the host's product name.
TEST_TARGET_NAME = "CrashlyticsSwiftUIExample";
| SWIFT_VERSION = 5.0; | ||
| TARGETED_DEVICE_FAMILY = 4; | ||
| TEST_TARGET_NAME = "CrashlyticsSwiftUIExample_(watchOS)"; | ||
| TEST_TARGET_NAME = "CrashlyticsExample (watchOS)"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a mismatch between the new TEST_TARGET_NAME and the product name of the host target. The host target is CrashlyticsExample_(watchOS), and its PRODUCT_NAME resolves to CrashlyticsExample_(watchOS) (with an underscore). The new value CrashlyticsExample (watchOS) (with a space) will cause a mismatch and tests will fail to launch. Please use an underscore to match the host target's product name.
TEST_TARGET_NAME = "CrashlyticsExample_(watchOS)";
| 8D00BB762D3B0AFF00F6F6DD /* FirebaseCrashlytics */, | ||
| ); | ||
| productName = "CrashlyticsSwiftUIExample (iOS)"; | ||
| productName = "CrashlyticsExample"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change to productName is inconsistent with the PRODUCT_NAME build setting for this target. The build setting is still CrashlyticsSwiftUIExample in the Debug (line 996) and Release (line 1031) configurations. Since the build setting takes precedence, the final product will still be named CrashlyticsSwiftUIExample.app. This makes the change here confusing and ineffective. To complete the rename, you should also update the PRODUCT_NAME build setting.
No description provided.