Sign in Join
Wiki copytemporary

Target Darwin: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
1-*(macOS only)*
1+[![macOSlogo.png](/wiki-images/1/15/macOSlogo.png)](</File:macOSlogo.png>)
22
3-*(iOS only)*
3+This article applies to [macOS](</Category:macOS> "Category:macOS") only.
44
5+See also: [[Multiplatform Programming Guide]]
6+
7+[![Apple iOS new.svg](https://upload.wikimedia.org/wikipedia/commons/thumb/4/48/Apple_iOS_new.svg/60px-Apple_iOS_new.svg.png)](</File:Apple_iOS_new.svg>)
8+
9+This article applies to [iOS](</Category:iOS> "Category:iOS") only.
10+
11+See also: [[Multiplatform Programming Guide]]
12+
13+│ **English (en)** │
14+
15+![<translate> Warning: </translate>](https://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/20px-OOjs_UI_icon_notice-destructive.svg.png) **Warning **| In Lazarus 2.2.0/FPC 3.2.2 and later, the target for building iOS applications was changed from Darwin to iOS due to the advent of the Apple Silicon M1 (ARM64) processor in Mac computers.
16+---|---
17+
18+
519## Introduction
620
7-Darwin is the target for macOS and iOS, both PowerPC, ARM and ARM64, i386 and X86_64. Programs may also be run on a machine with only Darwin installed.
21+Darwin is the target for macOS and iOS, both PowerPC, ARM and ARM64, i386 and X86_64. Programs may also be run on a machine with only Darwin installed.
822
923## Installation
1024
11-See [[Installing Lazarus on macOS]].
25+See [[Installing Lazarus on macOS]].
1226
1327## Usage
1428
15-1\) [Lazarus IDE](http://forum.lazarus.freepascal.org)
29+1) [Lazarus IDE](<http://forum.lazarus.freepascal.org>)
1630
17-Lazarus is a Delphi-style RAD environment
31+Lazarus is a Delphi-style RAD environment
1832
19-2\) [Lightweight IDE](http://www.ragnemalm.se/lightweight/)
33+2) [Lightweight IDE](<http://www.ragnemalm.se/lightweight/>)
2034
21-A free IDE in the classic Mac style
35+A free IDE in the classic Mac style
2236
23-3\) Any Editor (AlphaX, BBedit, ...) and command line (fpc your_pascal_program.pas)
37+3) Any Editor (AlphaX, BBedit, ...) and command line (fpc your_pascal_program.pas)
2438
2539## Universal binaries
2640
27-Normally for each processor - operating system combination there is one executable, but in macOS you can combine an aarch64 (ARM64) binary and an x86_64 binary into a so-called "universal binary" or "multi-architecture binary" that will run on both Apple ARM64 processors and Intel 64 bit processors. To do this the ARM64 and x86_64 executables have to be compiled separately and then combined using the `lipo` command line utility.
41+Normally for each processor - operating system combination there is one executable, but in macOS you can combine an aarch64 (ARM64) binary and an x86_64 binary into a so-called "universal binary" or "multi-architecture binary" that will run on both Apple ARM64 processors and Intel 64 bit processors. To do this the ARM64 and x86_64 executables have to be compiled separately and then combined using the `lipo` command line utility.
2842
29-It is also possible to combine a PowerPC binaries and an x86 binaries into a single combined binary using the `lipo` command line tool. You would need to first [download the PowerPC cross-compiler](https://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/) so you only need to use `ppcppc` instead of `fpc` to build your project to generate the PowerPC binary. If you have a PowerPC computer, then the simplest solution is to build the x86 binary on a different computer with x86 architecture.
43+It is also possible to combine a PowerPC binaries and an x86 binaries into a single combined binary using the `lipo` command line tool. You would need to first [download the PowerPC cross-compiler](<https://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/>) so you only need to use `ppcppc` instead of `fpc` to build your project to generate the PowerPC binary. If you have a PowerPC computer, then the simplest solution is to build the x86 binary on a different computer with x86 architecture.
3044
3145## See also
3246
33-- [[Portal:Mac|Mac Portal]].
34-- [[macOS Big Sur changes for developers|Creating a universal binary for aarch64 and x86_64]].
35-- [[Target MacOS]] for PowerPC processors.
47+ * [[Portal:Mac|Mac Portal]].
48+ * [[macOS Big Sur changes for developers|Creating a universal binary for aarch64 and x86_64]].
49+ * [[Target MacOS]] for PowerPC processors.
3650
3751---
38-*From the Free Pascal wiki, page "Target Darwin", as it stood on 2022-03-28 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
39-Category: iOS
40-Category: macOS
52+*From the Free Pascal wiki, page "Target Darwin", as the Internet Archive kept it on 2025-06-16, last changed on 2022-03-29. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history