-
Notifications
You must be signed in to change notification settings - Fork 819
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
Customize GoogleService-Info.plist
target membership
#1423
Comments
**Info.plist
s target membership is checkedGoogleService-Info.plist
target membership
i have a similar use case but have 3 targets ApplicationProd in the file structure i have YourApp//Configurations/Debug <- which has all debug specifig files under sources on the production target you'd do like this.. and mimick for the others similarly |
another solution could be to use the createIntermediateGroups on the sources and then have different configurations |
- path: MyApp/Resources
excludes:
- "GoogleService-Infos"
- "GoogleService-Infos/**"
- "GoogleService-Infos/**/*.*"
- path: MyApp/Resources/GoogleService-Infos/DEV
type: folder
buildPhase: none
- path: MyApp/Resources/GoogleService-Infos/INT
type: folder
buildPhase: none
- path: MyApp/Resources/GoogleService-Infos/PROD
type: folder
buildPhase: none I managed to solve it by defining those path types as This is what it should look like. It's an intermediate group referenced directly from disk with no target membership. This worked for me. |
Hello,
I have used XcodeGen the Great 🥇 in our application and it works flawlessly unless there is one little issue with GoogleService-Info.plist files.
I have three GoogleService-Info.plist files, each related to a separate application environment (develop, stage, and production) and I have to use them in a single Xcode target. Following is the MyApp structure.
I added a script in the build phases to select the proper Info.plist file and then copy it inside my app's bundle directory. In this case, I have to set an unselected target membership on them and don't need to have them on copy bundle sources inside build phases.
I tried to set
buildphases: none
for them but it didn't work. This note inside the project spec > buildPhase already mentioned it I guessNote that Info.plist files will never be added to any build phases, no matter what this setting is.
.I'm using the 2.38.0 version of XcodeGen.
I'm encountering the opposite case of #1045 please help me THX. 🙏
The text was updated successfully, but these errors were encountered: