Skip to content

Latest commit

 

History

History
57 lines (48 loc) · 1.21 KB

INSTALL_XCODEGEN.md

File metadata and controls

57 lines (48 loc) · 1.21 KB

Installation using XcodeGen

After either installing it using Carthage, CocoaPods or manually you have to setup your XcodeGen's project.yml file

Here's an example I've been using with my projects using both Natrium and XcodeGen in combination with CocoaPods:

schemeTemplates:
  TestScheme:
    build:
      targets:
        MyAppUITests: 
          - test
        MyAppTests:
          - test
    test:
      targets:
        - MyAppUITests
        - MyAppTests
        
  NatriumScheme:
    build:
      targets:
        MyApp: all
      preActions:
        - script: "\"${PROJECT_DIR}/Pods/Natrium/Natrium/natrium\" ${environment}"
          settingsTarget: MyApp
    archive:
      config: ${archiveConfig}

schemes:
  "MyApp (appstore-release)": 
    templates:
      - NatriumScheme
      - TestScheme
    templateAttributes:
      environment: Production
      archiveConfig: Release    
      
  "MyApp (production)":
    templates:
      - NatriumScheme
      - TestScheme
    templateAttributes:
      environment: Production
      archiveConfig: Adhoc
      
  "MyApp (staging)":
    templates:
      - NatriumScheme
      - TestScheme
    templateAttributes:
      environment: Staging
      archiveConfig: Adhoc