1.定位為題:
調(diào)用定位時(shí)在target里設(shè)置兩個(gè)屬性:NSLocationAlwaysUsageDescription? NSLocationWhenInUseUsageDescription
2. 網(wǎng)絡(luò)請(qǐng)求:
Xcode升級(jí)后不支持http訪問(wèn)的解決辦法:在Info.plist中添加NSAppTransportSecurity類型Dictionary。
在NSAppTransportSecurity下添加NSAllowsArbitraryLoads類型Boolean,值設(shè)為YES
3.設(shè)置應(yīng)用名稱(Bundle display name):
CFBundleDisplayName
應(yīng)用程序名稱
4.設(shè)置應(yīng)用程序版本號(hào)(Bundle version):
每次部署應(yīng)用程序的一個(gè)新版本時(shí),將會(huì)增加這個(gè)編號(hào),用于標(biāo)識(shí)不同的版本。
CFBundleVersion
1.0
5.設(shè)置應(yīng)用程序是否支持后臺(tái)運(yùn)行(Application does not run in background)
通過(guò)UIApplicationExitsOnSuspend可以設(shè)置iOS的應(yīng)用程序進(jìn)入到掛起狀態(tài)下是否立即退出,設(shè)置為YES表示不支持后臺(tái)運(yùn)行退出到后臺(tái)立即退出,設(shè)置為NO表示 支持后臺(tái)運(yùn)行。
(1)設(shè)置支持后臺(tái)運(yùn)行
UIApplicationExitsOnSuspend
(2)設(shè)置不支持后臺(tái)運(yùn)行
UIApplicationExitsOnSuspend
6. info.plist的幾個(gè)常見(jiàn)屬性:
Localization native development region : 與本地化設(shè)置有關(guān),為默認(rèn)的開(kāi)發(fā)語(yǔ)言
Executable file:程序安裝包的名稱
Bundle identifier:軟件唯一的標(biāo)識(shí),是根據(jù)公司的標(biāo)識(shí)與項(xiàng)目名稱自動(dòng)生成的,在上傳和測(cè)試的時(shí)候會(huì)用到
InfoDictionary version:版本信息
Bundle name:App安裝后顯示的名稱
Bundle OS Type code:用來(lái)標(biāo)識(shí)軟件包類型
Bundle versions string, short:發(fā)布的版本字符串
Bundle creator OS Type code:創(chuàng)建者的標(biāo)識(shí)
Bundle version:應(yīng)用程序版本號(hào)
Application requires iPhone environment:用于指示程序包是否只能運(yùn)行在iPhone OS 系統(tǒng)上,默認(rèn)為YES
Launch screen interface file base name:歡迎界面的文件名稱
Main storyboard file base name:默認(rèn)情況下程序的主入口
Supported interface orientations:設(shè)置程序默認(rèn)支持的方向