Code Monkey home page Code Monkey logo

xcconfigortarget's Introduction

Configs VS Targets

multiple config files VS multiple targets for different environments

开发环境

macOS High Sierra 10.13.4(17E199)

Xcode Version 9.3 (9E145)

说明

正常来说,一个project对应一个target,但苹果证书体系和开发过程、测试、发布等因素,很多时候一个project需要应付不同的需求,这个时候,通常有两种选择

  1. 多target
  2. 单target,多*.xcconfig配置文件

分析

根据个人爱好和实际需求,可以选择以上任一方案解决多环境和多渠道发布等问题。相对来说,个人更偏向于第二种方案,更简洁明了,方便管理。

注意

如果选择第二种方案,修改xcconfig文件后重新编译,很可能不会立即生效(demo中由脚本beforeBuildShell.sh清除缓存实现实时生效)。

xcconfigortarget's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.