xcode build settings

來源:互聯網
上載者:User

build settings以些參數1.Installation Directory:安裝路徑靜態庫編譯時間,在Build Settings中Installation Directory設定“$(BUILT_PRODUCTS_DIR)”Skip Install設為YESInstallation Directory預設為/usr/local/lib因為Build Location預設時,.a檔案會放在很長(比如:/Users/xxx/Library/Developer/Xcode/DerivedData/xxxProgramdalrvzehhtesxdfqhxixzafvddwe/Build/Products/Debug-iPhoneos)的路徑下,或是我們target指定的路徑Skip Install如果是NO,可能會被安裝到預設路徑/usr/local/lib2.Public Headers Folder Path:對外公開標頭檔路徑設為“include”(具體的標頭檔路徑為:$(BUILT_PRODUCTS_DIR)/include/xx.h)在最終檔案.a同級目錄下產生一個include目錄預設:/usr/local/includePublic Headers Folder Path這個路徑就是使用這lib的某工程需要依賴的外部標頭檔.匯入這路徑後,#include/import "xx.h"才能看到3.User Header Search Paths:依賴的外部標頭檔搜尋路徑設定為“$(BUILT_PRODUCTS_DIR)/include”和2中路徑對應4.Per-configuration Build Products Path:最終檔案路徑比如設為“../app”,就會在工程檔案.xcodeproj上一層目錄下的app目錄裡,建立最終檔案預設為$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 等於$(BUILT_PRODUCTS_DIR)5.Per-configuration Intermediate Build Files Path:臨時中間檔案路徑預設為:$(PROJECT_TEMP_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)6.Code Signing Identity:真機調試的認證選擇選一個和Bundle identifier相對應的認證Library Search Paths:庫搜尋路徑Architectures:架構,設為 armv6 或 armv7Valid Architectures:應用程式框架,可以設為 armv6、 armv7 或i386Product Name:工程檔案名稱,預設為$(TARGET_NAME)Info.plist File:info檔案路徑Build Variants:預設為normalOther Linker Flags:其他連結標籤設為“-ObjC”當匯入的靜態庫使用了類別,需要設為-ObjCiOS Deployment Target:ios部署對象比如可以選擇設為,ios3到ios5的一種版本Prefix Header:預編標頭檔(比如:UtilLib/UtilLib-Prefix.pch)Precompile Prefix Header:設為“Yes”,表示允許加入先行編譯頭OpenGL ES iPhone:iPhone 3G以下(包括iPhone 3G)版本裝置只支援OpenGL ES1.1,iPhone 3GS以上(包括iPhone 3GS)版本裝置既支援OpenGL ES1.1,也支援OpenGL ES2.0。iPad:iPad所有版本裝置既支援OpenGL ES1.1,也支援OpenGL ES2.0。iPod Touch:iPod Touch2代以下(包括iPod Touch2代)版本裝置只支援OpenGL ES1.1,iPod Touch3代以上(包括iPod Touch3代)版本裝置既支援OpenGL ES1.1,也支援OpenGL ES2.0,但8GB版的iPod Touch3代不支援OpenGL ES2.0。 armv6和armv7,armv7s armv6:iPhone 2G/3G,iPod 1G/2Garmv7:iPhone 3GS/4/4s,iPod 3G/4G,iPad 1G/2G/3Garmv7s:iPhone5 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.