Majorsilence.AppleTools 0.6.0

dotnet add package Majorsilence.AppleTools --version 0.6.0
                    
NuGet\Install-Package Majorsilence.AppleTools -Version 0.6.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Majorsilence.AppleTools" Version="0.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Majorsilence.AppleTools" Version="0.6.0" />
                    
Directory.Packages.props
<PackageReference Include="Majorsilence.AppleTools" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Majorsilence.AppleTools --version 0.6.0
                    
#r "nuget: Majorsilence.AppleTools, 0.6.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Majorsilence.AppleTools@0.6.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Majorsilence.AppleTools&version=0.6.0
                    
Install as a Cake Addin
#tool nuget:?package=Majorsilence.AppleTools&version=0.6.0
                    
Install as a Cake Tool

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.

There are no supported framework assets in this package.

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.

Version Downloads Last Updated
0.6.0 50 11/28/2026
0.5.0 56 11/28/2026
0.4.1 51 11/28/2026
0.4.0 52 11/28/2026
0.3.0 57 11/27/2026
0.2.0 49 11/27/2026
0.1.0 58 11/27/2026