Darwin vs. iOS

Out of curiosity: When exporting to Android, the folder name is Android. When exporting to iOS, the folder name is Darwin. Why? Isn’t Darwin associated with macOS?

Darwin is the name of the (mach-based) kernel shared (though forked) by both macOS and iOS, however conventionally Darwin does mean macOS on other build systems (cmake for example) and iOS is used for iOS and tvOS for tvOS.

The folders generated by Defold are bit confusing as it generates two folders in the build sub-folder when bundling for macOS and two for iOS.

So, yes, I don’t think it’s right.

EDIT: Also the word “armv7” is misleading as the binary contains both 32- and 64-bit CPU architectures:

% file Movement\ tutorial.app/Movementtutorial
Movement tutorial.app/Movementtutorial: Mach-O universal binary with 2 architectures: [arm_v7:Mach-O executable arm_v7] [arm64]
Movement tutorial.app/Movementtutorial (for architecture armv7): Mach-O executable arm_v7
Movement tutorial.app/Movementtutorial (for architecture arm64): Mach-O 64-bit executable arm64
2 Likes

Wow, I see this also tickled someone else’s curiosity. Thanks for the answer, I feel better now. :smiley:

1 Like