個(gè)人理解馬甲包:
基礎(chǔ)馬甲包外殼參數(shù)修改 :?bundleId,appName,appIcon, launchImage 等不同設(shè)置
不一樣的馬甲包:
?相同代碼不同啟動(dòng)落地頁(yè),所需基本功能減少
如何實(shí)現(xiàn)?
理解兩句話:
1.Targets that define the products to build. A target organizes the files and instructions needed to build a product into a sequence of build actions that can be taken.
2.targets之間完全沒(méi)有關(guān)系。但target和project有關(guān)系,target的setting會(huì)從project settings中繼承一部分
基于上述兩點(diǎn)單target根據(jù)配置實(shí)現(xiàn)馬甲包
configurations:
1.設(shè)置不用編譯模式,對(duì)于不同的configurations設(shè)置不同馬甲包的配置。(許多應(yīng)用根據(jù)該配置設(shè)置不同的編譯環(huán)境, 測(cè)試包, 線上包等)
2.添加user-Defined 設(shè)置工程配置項(xiàng)對(duì)應(yīng)到不同的configuration


完成上述操作相當(dāng)于完成了工程級(jí)別上對(duì)于不同的configuration的不同參數(shù)設(shè)置。
target 根據(jù)configuration設(shè)置參數(shù):


設(shè)置完成基礎(chǔ)馬甲包已經(jīng)配置完成。
凡事都有but。
蘋果審核對(duì)于內(nèi)容相同的應(yīng)用會(huì)進(jìn)行審核并不予以上線,打回警告抄襲。(如果不走AppleStore則沒(méi)關(guān)系)
配置文件啟動(dòng)模塊+user defined 設(shè)置啟動(dòng)文件+info.plist設(shè)置${launchFile}