To chat offline with the open-source mobileLLM app on Mac, build the SwiftUI project at kosaai/mobilellm in Xcode and load a local model. It is not the similarly named App Store product or Meta’s MobileLLM model family. The repository’s release page has no prebuilt installer; this is a developer build.

Install on your Mac

Requirements: An Apple Silicon Mac for the MLX route, macOS 14 or later at runtime, plus Xcode and Homebrew for the build. The fork README lists Xcode 16 or newer, but current upstream build instructions require Xcode supplying the macOS 26 (or newer) SDK for the Mac build, and the iOS 26 (or newer) SDK for iOS. Use a toolchain that satisfies the checked-out revision. The SDK requirement is distinct from the app’s deployment target. The first build needs internet and can take a while.

  1. Review the source repository and build instructions, then clone that specific GitHub project.
  2. Install XcodeGen and CMake with Homebrew. In the checked-out repository, review and run the project’s llama.cpp framework build script. This creates the framework not included in the clone. Follow the repository’s signing setup by copying its example signing configuration and filling in your own Xcode team.
  3. In the project folder, the documented build sequence is below. Edit the new signing file before starting Xcode:
brew install xcodegen cmake
./scripts/build-llama-xcframework.sh
cp Signing.xcconfig.example Signing.xcconfig
xcodegen generate
open mobileLLM.xcodeproj
  1. Select the macOS destination in Xcode and build/run. Pick and download a small supported local model. Leave the optional online-model setting off; do not enter cloud API credentials for this setup.

Check that it works

Disconnect Wi-Fi after the model is ready and ask a new short question while the local model is selected. If the app builds but cannot load the model, verify that its framework was generated and test on the actual Mac, not an iOS simulator. The project explains that its simulator does not exercise the MLX/Metal inference path.

Confirm the repository and build destination first

Keep the Xcode project, the fork’s revision and its upstream instructions together. The names “mobileLLM” and “MobileLLM” can refer to several projects. For this guide, use the SwiftUI fork named in the install section. Record its commit and whether you are building the fork or following a newer upstream revision. Scripts, generated project files and their SDK expectations can change. A command copied from one repository is usable in another only where the selected revision documents it.

Separate the Mac used to compile the project from the minimum version that can run the resulting application. The earlier requirement names Xcode and a current build SDK, while the runtime requirement is the target macOS deployment setting. To inspect the toolchain selected in the shell, run the standard Xcode commands below after installing the appropriate Xcode and developer tools. Check the actual Xcode application and destination in the UI as well before generating a project.

xcode-select -p
xcodebuild -version
xcodebuild -showsdks

If the correct SDK is absent from the results, check which Xcode your environment uses before changing project settings. A newer SDK present in one Xcode installation does not mean another installation or shell sees it. Use the version documented for the checked-out source. Lowering the app’s deployment target does not install an SDK or make unsupported APIs available to the compiler.

Keep the build command and generated files traceable

Start in the selected repository folder. Confirm the framework build script and the XcodeGen configuration belong to that revision. An older generated Xcode project can refer to files or settings that no longer match the source. Follow the documented sequence for generating the framework and project, retain the last successful line of output and open the project produced by those steps. If you return to another revision, keep its generated output identifiable.

For signing, use the intended Xcode team and the template documented by the repository. Keep personal team details and any private configuration out of examples shared with support. If the source compiles and the target reports a signing failure, treat that as the next independent stage. Changing the model cannot fix a build that has not produced a launchable Mac application. Keep the exact message and whether Xcode showed it during build, signing or launch.

Build for the actual Mac path before downloading a model

Choose the Mac target in Xcode and confirm the run destination is the intended computer. The repository’s note about the simulator matters when checking the MLX and Metal execution path. A UI that loads in a simulator only demonstrates that particular UI state. Use an eligible Mac to assess whether the local runtime can open a package and finish a prompt. Keep the previous build output separate if you are comparing revisions.

When Xcode reports an unavailable destination, examine the scheme and installed SDK. If the destination is correct and the build fails around a missing framework or dependency, get the error from that phase and compare the generated outputs with the repository instructions. If the compile succeeds and the app fails to open, keep the launch error and confirm the intended signed app is the one you opened. This sequence minimizes changes while the source of a problem is still uncertain.

Verify a small local model before depending on it offline

Once the app opens normally, select a documented local package for its supported runtime. Complete the download while online and record the exact model name. In the initial chat use a short practice input such as “Sample K-18 moved from Thursday to Tuesday at 09:15.” Ask for the sample ID and the approved time. The expected answer contains K-18 and 09:15. Watch for a complete response and read it against the source. Finding a model in a catalog and generating an accurate reply are separate outcomes.

Use another harmless input when checking the offline route. Quit normally, disconnect the internet paths you control when safe, reopen the app and select the downloaded entry. Ask for new values so an older displayed conversation cannot stand in for a fresh answer. If the app opens and asks for an additional model file, make a record of the missing component. Finish the documented preparation while connected, then restart the test from the same disconnected state.

Diagnose the earliest failure instead of rebuilding every time

If project generation fails, inspect the generated dependency and XcodeGen step. If the Xcode compile fails, verify the selected SDK and framework showed up. If launch fails after a successful compile, read the actual launch or signing error. If the app opens but the selected model cannot load, look at its format, package location and compatibility. If generation finishes with the wrong number or ignores a revision, keep the input and output to investigate model behavior rather than rebuilding Xcode.

For a Mac with limited memory, start with the smallest documented compatible example that can answer a text task. If a larger package fails and the smaller one works, retain both outcomes. Record the model and context conditions and try a shorter representative input before concluding that the entire build failed. A successful small answer belongs in the build record even when the intended production model is still under evaluation.

Hand off a build record another developer can use

Record the fork and commit, Xcode and SDK versions, Mac destination, framework build result, signing stage, chosen model package and exact offline answer check. For a shared example, include the minimal source command or UI selection without private credential or team information. If the other developer uses a different macOS version or Xcode, have them verify the supported target before reproducing the failure. Preserve a known small successful request so a new build can be compared stage by stage.

After changing Xcode or source code, start with the existing harmless task and repeat it on the new build. Keep the same package and local route if possible. Then try a new input and an offline restart if that is part of the intended use. Changes in the build and changes in runtime behavior can be reviewed independently when the accepted baseline and tested inputs are preserved.

Work through common build and runtime outcomes

Suppose a teammate opens the Xcode project and sees references to the framework, but the build log reports that it cannot find it. First verify which repository directory supplied the project and whether the documented framework build ran there successfully. Compare the generated artifact with the expected project reference. If the framework step failed, capture what the script reported and complete that stage in a prepared environment before trying Xcode again. That condition is separate from whether the selected Mac supports a model.

In another case, the build and launch succeed and a prompt in the local catalog waits for a model download. Keep the compile and launch outcomes. Confirm the network-dependent preparation and the exact selected local model before using the test offline. Then start with a fresh two-field prompt after quitting and opening again. If a model already downloaded does pass, use it as a small baseline while investigating what was missing for the new one.

Preserve a repeatable change during an SDK upgrade

When moving the build to another Xcode release, record the original scheme, framework source, SDK and model that worked. Open the intended revision with the new toolchain and verify the selected Mac destination before changing any project settings. If the project now fails before signing, inspect its error while retaining the original working configuration. If both builds launch, try the same model and answer key. The change may affect only the build path or it may affect the runtime. A staged comparison helps locate where the first difference occurs.

After handing off the source, have the recipient check the app they built on the machine where it will run. Give them a small source phrase and spellings to verify after its local model loads. A screenshot of an Xcode success screen supports a build outcome. A finished fresh response after disconnecting is the evidence for the offline task under the prepared configuration.

Keep the working built app and the source revision distinguishable while developing. After an update, open the actual app produced in the updated run so an older copy in Applications cannot satisfy the test. Record the version visible in that launch, the model that answered and which components were reused. A small before-and-after note can prevent troubleshooting an older build by mistake. Choose a new practice source value each time to flush out stale chat history.

Who makes it, and since when?

The kosaai repository is a public fork of nanguoyu/mobileLLM. These are GitHub maintainer identifiers, not company names. Neither the fork’s release page nor its build docs establishes a founder or first release date.