Skip to content

Instantly share code, notes, and snippets.

@pilgwon
Created November 30, 2020 06:21
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save pilgwon/9ea4ee494f041a9b84661f691b775506 to your computer and use it in GitHub Desktop.
XcodeGen project.yml
name: PROJECT_NAME
options:
minimumXcodeGenVersion: 2.18.0
createIntermediateGroups: true
developmentLanguage: en
usesTabs: true
indentWidth: 4
tabWidth: 4
xcodeVersion: 12.0
deploymentTarget:
iOS: "13.0"
defaultConfig: Release
groupSortPosition: top
groupOrdering:
- order: [Generated, Resources, Sources]
postGenCommand: pod install
configs:
Release: release
Debug: debug
packages:
Geppetto:
url: git@github.com:geppetto-ios/Geppetto.git
from: 0.2.3
SnapKit:
url: git@github.com:SnapKit/SnapKit.git
from: 5.0.1
Toast:
url: git@github.com:scalessec/Toast-Swift.git
from: 5.0.1
JGProgressHUD:
url: git@github.com:JonasGessner/JGProgressHUD.git
from: 2.2.0
targets:
PROJECT_NAME:
type: application
platform: iOS
sources:
- path: PROJECT_NAME/Sources
- path: PROJECT_NAME/Resources
- path: PROJECT_NAME/Generated
configFiles:
- Release: Release.xcconfig
- Debug: Debug.xcconfig
attributes:
ProvisioningStyle: Manual
postBuildScripts:
- name: SwiftGen
script: |
(cd $PROJECT_DIR/Scripts && ./swiftgen.sh)
- name: SwiftLint
script: swiftlint
settings:
base:
INFOPLIST_FILE: PROJECT_NAME/Resources/Info.plist
PRODUCT_BUNDLE_IDENTIFIER: APP_BUNDLE_IDENTIFIER
PRODUCT_DISPLAY_NAME: APP_DISPLAY_NAME
DEVELOPMENT_TEAM: DEVELOPMENT_TEAM
CODE_SIGN_STYLE: Manual
configs:
Release:
CODE_SIGN_IDENTITY: iPhone Distribution
PROVISIONING_PROFILE_SPECIFIER: match AppStore APP_BUNDLE_IDENTIFIER
Debug:
CODE_SIGN_IDENTITY: iPhone Developer
PROVISIONING_PROFILE_SPECIFIER: match Development APP_BUNDLE_IDENTIFIER
dependencies:
- package: Geppetto
- package: SnapKit
- package: Toast
- package: JGProgressHUD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment