-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
Add SWIFT_COMPILATION_MODE and CODE_SIGN_IDENTITY build settings #417
Conversation
dangthaison91
commented
May 3, 2019
- Add SWIFT_COMPILATION_MODE:
- Debug: Incremental
- Release: Whole Module
- Update CODE_SIGN_IDENTITY:
- Debug: iPhone Developer
- Release: iPhone Distribution
- Fix SWIFT_ACTIVE_COMPILATION_CONDITIONS :
- Debug: "DEBUG"
- Actual Release: "DEBUG"
- Expected Release: "RELEASE"
@dangthaison91 could you update the changelog? We can merge afterwards 😛 |
good find @dangthaison91 ! Thanks for fixing it. By default in Xcode when making a new project, the release configuration doesn't contain any Is there a need to specify a build setting if it's the default specified by Xcode? e.g. In Debug The code signing settings by default are also |
@pepibumur @kwridan For CODE_SIGN_IDENTITY , IMHO "iPhone Distribution" for Release is fine because we often use it for archive. |
5014ae0
to
27d5357
Compare
6374c7d
to
e14fdab
Compare
This is an interesting one - often Release is tied with archiving & distribution but isn't strictly necessary, for example when profiling the app on a device, you may choose to profile with the release configuration. Developers may not have the distribution certificate available to them locally, thus this would prevent them from profiling / archiving locally. This is often the case on bigger teams. This setting can easily be overridden for each use case e.g. in Tuist each manifest can override this setting. let release = Configuration(settings: ["CODE_SIGN_IDENTITY": "iPhone Distribution"])
let project = Project(name: "App",
targets: [
Target(name: "App",
platform: .iOS,
product: .app,
bundleId: "io.tuist.App",
infoPlist: "Info.plist",
sources: "Sources/**",
dependencies: [
// ...
],
settings: Settings(release: release)), As such for Thanks again for the updates and apologies for the back and forth. |
I think it's fine defaulting to this one in this component because it's an opt-in feature of XcodeProj. If developers would like to use a different value for that setting, they can override or not use the settings provider. |
Codecov Report
@@ Coverage Diff @@
## master #417 +/- ##
==========================================
- Coverage 78.95% 78.94% -0.02%
==========================================
Files 140 140
Lines 6819 6820 +1
==========================================
Hits 5384 5384
- Misses 1435 1436 +1
Continue to review full report at Codecov.
|
8d337f8
to
9a2afe0
Compare
Hey @pepibumur @kwridan I restored |
Awesome 🎉! PR merged |
…21) (#364) ### Short description Update XcodeProj version to point to current master 6029dac06eb48cc29c762965efebddb5d6c2a496 (2019-05-21). Includes "Add SWIFT_COMPILATION_MODE and CODE_SIGN_IDENTITY build settings" tuist/XcodeProj#417.