https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/64bitPorting/building/building.html
https://baike.baidu.com/item/達爾文操做系統/22029670?fr=aladdin
https://blog.csdn.net/hintcnuie/article/details/38468093html
達爾文操做系統是由蘋果公司於2000年所釋出的一個開放原始碼操做系統。達爾文操做系統 是Macosx 操做環境的操做系統。蘋果於2000年把達爾文操做系統釋出給開放原始碼社羣。如今的達爾文操做系統皆能夠在蘋果電腦的PowerPC 架構和X86 架構下執行。
達爾文操做系統是一種Unix-like操做系統,整合數種的技術,包含開放原始碼的XNU核心,以微核心爲基礎的核心架構來實做Machkernel。操做系統的服務和userland 工具是以4.4BSD(柏克萊軟件套件的UNIX),特別是FreeBSD和NetBSD) 爲基礎相似其餘Unix-like, 達爾文操做系統也有對稱多處理器的優勢,高效能的網絡設施和支援多種整合的檔案系統。
一般來講,大多數的計算機制造商都把本身的操做系統(以及大多數的應用程序)看做是私人擁有不會公開的。將源代碼想外界開發人員免費提供是爲了鼓勵全部的開發人員都來修正其中的問題,對其進行改善。在Darwin以外,OS X還包括了本身的用戶接口全部權,以及其餘一些沒有提供開源的特性。
關於Mac OS X的介紹:
https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/OSX_Technology_Overview/About/About.html
總而言之,Mac OS X系統的內核採用的是Darwin系統,屬於Unix-like系統。
參考自:
https://baike.baidu.com/item/達爾文操做系統/22029670?fr=aladdin
https://blog.csdn.net/hintcnuie/article/details/38468093ios
-arch: Darwin options, eg, i386,x86_64, armv7, arm64,powerPC -march: ARM options , eg, armv7, armv8
所以在配置ios平臺編譯選項時,這兩個選項都須要指定;而配置mac平臺編譯時,只須要指定-arch選項。
The build setting VALID_ARCHS defines the architectures for which a given target can be built. This setting should contain a list of architectures separated by spaces. For example, to specify that your target can be built for i386, and x86_64, set VALID_ARCHS to 「i386 x86_64」 (without the quotes) in the Xcode inspector for your target.web
The build setting ARCHS defines the architectures for which the entire project should be built. This setting should also contain a space-delimited list of architectures. This build setting can be defined either on the command-line to xcodebuild, or in a build style in Xcode.
參考自:
https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/64bitPorting/building/building.html#//apple_ref/doc/uid/TP40001064-CH208-BCGECFEJxcode
THE END!網絡