1.新增target
如果已存在所需要的target,则跳过此步骤
可以点击左下角加号按钮创建,新的target
也可以 拷贝主项目的target,修改名称

2.新增Configuration

3.新增Scheme


-
3.1 如果使用了SVN或者git,则点击Manage Schemes,把右边的Shared选项勾选,否则在svn或者git上无法同步


-
3.2 切换scheme,在Edit Scheme里面把Run和Archive模式改成对应新建的Build Configuration
不改Configuration时默认是这样的

修改Configuration是这样的

4.3.新增AppIcon和LaunchImage(或LaunchScrenn.storyboard)
-
4.1
也可以把 马甲包的AppIcon和LaunchImage 和主App的AppIcon和LaunchImage 放到同一个 Assets中,但是这样做会导致主app增加一些多余的图片素材,会导致打包后安装包的容量变大,不可取,所以新增一个Assets存放马甲包特有的资源图片,原来的Assets里面放公共的资源图片


网友评论