Majorsilence.AppleTools
0.6.0
dotnet add package Majorsilence.AppleTools --version 0.6.0
NuGet\Install-Package Majorsilence.AppleTools -Version 0.6.0
<PackageReference Include="Majorsilence.AppleTools" Version="0.6.0" />
<PackageVersion Include="Majorsilence.AppleTools" Version="0.6.0" />
<PackageReference Include="Majorsilence.AppleTools" />
paket add Majorsilence.AppleTools --version 0.6.0
#r "nuget: Majorsilence.AppleTools, 0.6.0"
#:package Majorsilence.AppleTools@0.6.0
#addin nuget:?package=Majorsilence.AppleTools&version=0.6.0
#tool nuget:?package=Majorsilence.AppleTools&version=0.6.0
Majorsilence.AppleTools
Open-source C# stand-ins for the Xcode command-line tools that the .NET net*-ios workload calls,
so iOS apps can be built on Linux, Windows and macOS without Xcode or the Apple SDK.
These builds are for local development only, not App Store or TestFlight distribution.
Setting up a machine? Start with docs/getting-started.md:
dotnet tool install -g Majorsilence.AppleTools.Cli
apple-tools doctor
What is here
| Path | Contents |
|---|---|
src/Majorsilence.AppleTools |
One multi-tool, run as dotnet Majorsilence.AppleTools.dll <tool> [args...] |
src/Majorsilence.AppleTools.Cli |
The same sources packed as the apple-tools .NET tool |
src/Majorsilence.AppleTools.Package |
The Majorsilence.AppleTools MSBuild SDK: build targets, zig resolver, SDK entry point |
src/launcher |
C sources compiled with zig on the build host: the Windows wrapper launcher, the Windows libc.dll shim and the Linux stand-in for the macOS C library |
src/sysroot |
Generated iOS linker stubs (.tbd), made from open-source inputs only |
eng/generate-apple-ios-sysroot.cs |
Regenerates src/sysroot |
tests/Majorsilence.AppleTools.Tests |
Unit tests |
test/ios |
The IBTest app (storyboards and an asset catalog, also used as unit test fixtures) and simulator scripts |
test/mixed |
An iOS app and a StuDev.AotAnywhere macOS tool built in one MSBuild process |
Commands
For people setting up a machine (apple-tools <command>; apple-tools help lists the options):
| Command | What it does |
|---|---|
doctor |
Checks the .NET SDK, the iOS workload, zig, and optionally a .p12, provisioning profile and bundle ID |
install-workload |
Installs the iOS workload's packs on any host, including Linux |
signing-request |
Makes a private key and certificate signing request for the Apple Developer portal |
signing-import |
Combines the portal's certificate with that key into the .p12 builds sign with |
profile-dump |
Shows what a provisioning profile covers, and checks a certificate and bundle ID against it |
The Xcode stand-ins builds run:
| Tool | What it does |
|---|---|
xcrun |
Dispatches to the tools below |
clang, clang++ |
Translates the workload's clang command lines and runs zig cc |
install_name_tool |
Rewrites Mach-O install names |
codesign |
Ad-hoc and certificate signing, including nested frameworks, app extensions and universal binaries; ad hoc signatures are byte-identical to Apple's codesign |
signing-identity |
Reads a .p12 and provisioning profile, with no Keychain |
ibtool |
Compiles storyboards and xibs to nibs |
actool |
Compiles asset catalogs to Assets.car (and, for Mac Catalyst, an .icns app icon) |
ditto |
Merge copy with symlinks and --arch thinning |
lipo |
Creates universal binaries (-create, also -info, -archs, -thin) for builds with several RuntimeIdentifiers |
derq |
Converts entitlements to DER |
zip, ipa-modes |
Zips an app and fixes Unix modes in an .ipa |
synthetic-xcode |
Generates the minimal Xcode.app layout the workload checks for |
objc-shims |
Generates Objective-C declarations from Microsoft.iOS.dll |
strip, dsymutil, mdimport, command |
Small stand-ins for calls the build probes for |
car-dump, nib-dump, vector-render |
Inspect compiled catalogs, nibs and vector images |
The package's MSBuild targets (src/Majorsilence.AppleTools.Package/build) put wrappers named
after each tool first on PATH for the build; docs/reference.md has the
properties and what is covered.
Packages
| Package | For |
|---|---|
Majorsilence.AppleTools.Cli |
The apple-tools .NET tool (dotnet tool install -g) |
Majorsilence.AppleTools |
Builds: an MSBuild SDK (<Sdk Name="Majorsilence.AppleTools" Version="..." />) |
Majorsilence.AppleTools holds the build targets (build/), the tool (tools/), the launcher
sources compiled with zig on the build host (tools/launcher/) and the linker stubs (sysroot/).
AppleToolsDir, AppleToolsLauncherDir and AppleToolsSysroot point the targets at a local
build instead. To pack locally:
dotnet pack src/Majorsilence.AppleTools.Package/Majorsilence.AppleTools.nuproj -c Release -p:Version=0.3.0-dev
dotnet pack src/Majorsilence.AppleTools.Cli -c Release -p:Version=0.3.0-dev
The packages go to artifacts/. Pushing a tag v<version> publishes both to nuget.org
(.github/workflows/publish.yml).
Build and test
dotnet build Majorsilence.AppleTools.slnx -c Release
dotnet run --project tests/Majorsilence.AppleTools.Tests -c Release
eng/generate-apple-ios-sysroot.cs regenerates src/sysroot (any host, with zig on PATH or
--zig <path>); CI fails when the committed stubs differ from its output.
License
The original code is licensed under your choice of MIT (LICENSE-MIT), Apache 2.0
(LICENSE-APACHE) or BSD 3-Clause (LICENSE-BSD). Third-party projects this code follows or was
built from keep their own licenses and notices; see THIRD-PARTY-NOTICES.md.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.