Comments (3)
i have a similar use case but have 3 targets
ApplicationProd
ApplicationStage
ApplicationDebug
in the file structure i have
YourApp//Configurations/Debug <- which has all debug specifig files
YourApp/Configurations/Stage <- which has all stage specifig files
YourApp/Configurations/Production <- which has all prod specifig files
under sources
on the production target you'd do like this..
sources:
- path: YourApp
excludes:
- Configurations/Debug/**
- Configurations/Stage/**
and mimick for the others similarly
thats how i solved it atleast
from xcodegen.
another solution could be to use the createIntermediateGroups on the sources and then have different configurations
from xcodegen.
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 folder
(as @alessdiimperio mentioned, createIntermediateGroups option). Please notice that the build phase option none
will not apply to 'info.plist' files but it will work on folder
type.
![Screen Shot 2023-12-30 at 11 00 51](https://private-user-images.githubusercontent.com/126375828/293448707-633fb6ff-6d78-4eea-92c9-fb68188fa592.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTAyMjE5MjUsIm5iZiI6MTcxMDIyMTYyNSwicGF0aCI6Ii8xMjYzNzU4MjgvMjkzNDQ4NzA3LTYzM2ZiNmZmLTZkNzgtNGVlYS05MmM5LWZiNjgxODhmYTU5Mi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMzEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDMxMlQwNTMzNDVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02N2YwYTRhYjM5Mjc1OGE4NjBlYWQ4OGZmZGZkOWEwMGRmYTczZGE3OGI4MTdhMjRlZTAxMTA1ODJmMjZmNGYzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Iq8zecI8Y1jaGhnvWw5NRSISF8LQmcVAVTC--5NmXIE)
This is what it looks like after it. It's an intermediate group referenced directly from disk with no target membership. This worked for me.
from xcodegen.
Related Issues (20)
- info.plist with settings HOT 2
- Support input files for build rules HOT 1
- Swift Macros support HOT 1
- Add shell to ExecutionAction
- How to make a target extension via xcodegen ? HOT 2
- VSCode extension HOT 3
- X1 HOT 1
- Generate acknowledgement in Settings bundle HOT 5
- Local Packages Not Displayed in Project Package Dependencies List HOT 2
- supportedDestinations doesn't work, all platforms are displayed in Xcode HOT 2
- `swift run xcodegen` fails HOT 1
- Why Isn't watchOS a Supported Destination? HOT 2
- Add DESTDIR support to Makefile HOT 2
- Can't specify preferredScreenCaptureFormat in scheme's test actions HOT 1
- XcodeGenKit/resource_bundle_accessor.swift:44: Fatal error: unable to find bundle named XcodeGen_XcodeGenKit HOT 17
- XcodeGen doesn't support the full set of C++ file extensions that Xcode itself does
- [BUG] Optional source path doesn't work if executing xcodegen from outer directory
- Where should I set the App version? HOT 2
- Specify additional build/run targets for target-scheme HOT 2
- Xcodegen cache bug? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xcodegen.