ISIM_LOCATION=lat,lon |
simulated location (default: Apple Park); lat,lon;lat,lon;...@speed follows a route, none has no fix |
ISIM_BEACONS=UUID:MAJOR:MINOR[:PROX[:RSSI]];… |
iBeacons in range at launch (proximity immediate, near, far; the beacon script command changes them while running) |
ISIM_VISIT_SECONDS=N |
how long a stay within 50 m must last to be a CLVisit arrival (default 120) |
ISIM_WIFI_SSID=NAME |
the simulated Wi-Fi network the device is on (default isim): NetworkExtension's NEAppPushManager is active when its matchSSIDs contain it (NetworkExtension) |
ISIM_WEATHER=condition=rain,temperature=12,alert=severe / =unavailable |
WeatherKit's simulated forecast (WeatherKit): the current weather's condition (a WeatherCondition name) and temperature (°C, spread over the day), and an alert of that WeatherSeverity; unavailable fails every request with WeatherError.unknown. Unset: isim's model alone |
ISIM_AUDIO_INPUT=file.wav / =mic |
microphone input for AVAudioRecorder / inputNode / input AudioQueues: a file played in real time, or the host microphone |
ISIM_CAMERA=picture.png / =video.mp4 / =webcam[:/dev/videoN] |
the simulated camera: a still image as a live feed, a video looped in real time, or the host webcam through ffmpeg (opened only when this is set). The device then has a dual-camera iPhone's cameras (back wide, ultra wide, dual wide with depth; front wide, TrueDepth); zoom, torch and exposure change the picture. Unset: no camera, like the Simulator |
ISIM_CAMERA_FRONT=picture.png / =video.mp4 |
what the front cameras show (default: the same as ISIM_CAMERA) |
ISIM_CAMERA_DEPTH=depth.png |
the scene's depth for depth-capable cameras (AVDepthData): grey levels from black (5 m) to white (0.5 m), linear in disparity; unset: a flat wall 1 m away |
ISIM_CAMERA_MATTE=person.png |
the scene's person for portrait effects mattes (AVPortraitEffectsMatte): white is the person; unset: whatever ISIM_CAMERA_DEPTH puts closer than 1 m (no matte without either) |
ISIM_CAMERA_MATTE_HAIR, ISIM_CAMERA_MATTE_SKIN, ISIM_CAMERA_MATTE_TEETH, ISIM_CAMERA_MATTE_GLASSES |
grey images of the scene's hair, skin, teeth and glasses for AVSemanticSegmentationMatte (white: that region); unset: an empty matte |
ISIM_CAMERA_OBJECTS=face:x,y,w,h;humanBody:x,y,w,h |
what the camera sees besides codes (normalized rectangles): face, humanBody, humanFullBody, catBody, dogBody, catHead, dogHead, salientObject, reported by AVCaptureMetadataOutput (there is no detector on the host) |
ISIM_MUSICKIT_DEVELOPER_TOKEN=… |
MusicKit catalog requests go to the Apple Music API with this developer token (yours; iOS gets one for a registered app, isim cannot). Optional: ISIM_MUSICKIT_USER_TOKEN, ISIM_MUSICKIT_STOREFRONT (default us), ISIM_MUSICKIT_API (another server, for tests). Never commit tokens |
ISIM_WHISPER_MODEL=model.bin |
speech recognition (SFSpeechRecognizer) with whisper.cpp's whisper-cli and this ggml model |
ISIM_LLM_URL=http://127.0.0.1:8080/v1 |
Foundation Models' system language model: a local OpenAI-compatible server (llama.cpp's llama-server, Ollama's /v1, LM Studio, vLLM); SystemLanguageModel.default is available on devices with Apple Intelligence |
ISIM_LLM_MODEL=name or ISIM_LLM_MODEL=model.gguf |
with ISIM_LLM_URL: the server's model name; without it, a GGUF model isim serves with llama.cpp's llama-server (started on the host on first use) |
ISIM_LLM_API_KEY=… |
a bearer token for a server that wants one (keep it in your environment, never in a project) |
ISIM_SOUND_MODEL=yamnet.onnx |
Sound Analysis's classifier: an ONNX audio classifier (YAMNet's ONNX export, or any model taking a 16 kHz mono waveform and giving class scores), run with the host's ONNX Runtime; ISIM_SOUND_LABELS=class_map.csv its labels (default: the CSV next to the model); ISIM_ONNXRUNTIME=path the ONNX Runtime library when it is not the host's libonnxruntime. Unset: no classifier |
ISIM_TRANSLATE_URL=http://127.0.0.1:5000 |
Translation's engine: a LibreTranslate-compatible server on the host (LibreTranslate runs Argos Translate's offline models); its languages are the installed pairs. Unset: no pair is supported. ISIM_TRANSLATE_API_KEY=… for a server that wants a key (keep it in your environment) |
ISIM_WORD_VECTORS=dir |
NaturalLanguage's built-in word and sentence embeddings and NLContextualEmbedding: fastText vectors in dir/<language>.vec (or cc.<language>.300.vec); ISIM_WORD_VECTORS_LIMIT=n reads the n most frequent words (default 100000). Unset: NLEmbedding.wordEmbedding(for:) returns nil |
ISIM_VOSK_MODEL=DIR |
speech recognition with vosk-transcriber and this Vosk model (when whisper.cpp is not set up) |
ISIM_AUDIO=1 (headless) |
open an audio device in headless runs too (tests pair it with SDL_AUDIO_DRIVER=dummy for a silent, real-time device) |
ISIM_MIDI_HOST=0 |
CoreMIDI without the host's MIDI ports. By default the host's ALSA sequencer ports (libasound, /dev/snd/seq) appear as MIDI devices: a source for each port that sends and a destination for each port that receives |
ISIM_AR_SCENE=room or a JSON file |
a simulated AR device (ARKit): world, positional and orientation tracking are supported and run in the scene; the device moves with the ar script command (SCRIPTING.md). room is a room seen from 1.4 m above its floor: a floor, a table 1.5 m ahead, a ceiling and three walls. A JSON scene lists planes: {"planes": [{"name", "alignment": "horizontal"|"vertical", "classification", "center": [x, y, z], "normal": [x, y, z], "width", "length", "rotation", "color": "#rrggbb"}], "camera": {"position": [x, y, z], "yaw", "pitch"}}. Without it ARKit behaves like Apple's Simulator: no configuration is supported |
ISIM_AUDIO_TAP=file.f32 |
write a copy of the mixed audio output (raw 32-bit float, stereo, 48 kHz) for tests |
$ISIM_DATA/Media/Music |
the simulated music library (MPMediaLibrary, MusicKit): six generated songs at first; audio files copied in join it (tags read by ffprobe) |
$ISIM_DATA/Library/isim/Volume |
the device volume (0...1; default 0.6), set with the volume script command or Control Center |
ISIM_LAUNCH_URL=MARKER |
isim run: launch the app the way the system would for these (its launch scene's connection options): isim-nfc:readerDetected|presentation (CoreNFC nfcEvent), isim-credential:presentation|readerDetected (SecureElementCredential credentialSessionEvent), isim-marketplace:product:ITEM[:VERSION] / search:QUERY / auth:ACCOUNT (MarketplaceKit marketplaceDisplayOption), isim-workout-recovery (shouldHandleActiveWorkoutRecovery), isim-health-authorization:share=ID,…;read=ID,… (an app extension asking for HealthKit access: applicationShouldRequestHealthAuthorization), isim-intent:PATH/request.plist (an App Intent run request). A plain URL opens it (application(_:open:) / URLContexts) |
ISIM_NETWORK=offline |
no network (NWPathMonitor unsatisfied, URLSession fails); Control Center's Wi-Fi off / Airplane Mode does the same while it is set |
ISIM_MDNS=0 |
Bonjour (NWListener services, NWBrowser, MultipeerConnectivity) in this isim device's local registry only, without multicast DNS on the host's network (the default advertises and browses there too, so other machines and isim devices see the app's services; the test driver sets 0 so parallel tests stay apart) |
$ISIM_DATA/Library/isim/AASA/<domain>.json |
the apple-app-site-association file of an associated domain (applinks:<domain>), used before any download: which paths of the domain open which app |
ISIM_AASA_FETCH=0 |
never download apple-app-site-association files (default: from Apple's CDN, or from the domain itself for ?mode=developer entries, once per process); a domain without a local file then opens the app for every path, as when offline |
ISIM_SUSPEND=0 |
never suspend apps in the background (default: under isim boot an app in the background is suspended — its process stopped — unless a background task, background audio or background location updates keep it running) |
ISIM_SUSPEND_SECONDS=S |
how long an app runs in the background before it is suspended (default 5) |
ISIM_PUSH_REGISTRATION=fail |
registerForRemoteNotifications fails (NSCocoaErrorDomain 3010) instead of giving a device token |
ISIM_NOTIFICATION_SERVICE_SECONDS=S |
how long a Notification Service extension runs before serviceExtensionTimeWillExpire (default 30, like iOS) |
ISIM_BACKGROUND_TASK_SECONDS=S |
how long beginBackgroundTask / BackgroundTasks tasks run in the background before their expiration handler (default 30; processing tasks 180) |
ISIM_GAMEPADS=0 |
ignore host game controllers |
ISIM_MAIL=1, ISIM_MESSAGES=1 |
make MFMailComposeViewController / MFMessageComposeViewController available; sent items are saved under $ISIM_DATA/Library |
ISIM_CONTENTBLOCKER_PERMISSION=allow |
turn on the app's Safari content blockers (iOS: Settings > Safari > Extensions; off by default): SFContentBlockerManager reports them enabled and SFSafariViewController applies them |
ISIM_APPLE_PAY=0 |
leaves the device's Wallet without Apple Pay cards: canMakePayments() is false and payment sheets do not present (by default it has four test cards, PassKit) |
ISIM_GAMECENTER=DIR |
the local Game Center network the isim devices on this computer share (default ~/.local/share/isim-gamecenter): players, friends, scores, challenges, matches (GAMECENTER.md) |
ISIM_SHAREPLAY=DIR |
the local SharePlay bus the isim devices on this computer share (default ~/.local/share/isim-shareplay): calls, their members, shared activities, session messages and journals (GroupActivities) |
ISIM_SHAREPLAY_CALL=NAME |
puts the device in the simulated call NAME at launch (as the shareplay join script command does) |
ISIM_GAMESAVE=DIR |
the simulated iCloud of GameSave's synced directories, shared by the isim devices on this computer (default ~/.local/share/isim-gamesave): each container's latest version and the device that saved it (GameSave) |
ISIM_GAMESAVE_OFFLINE=1 |
starts the device off GameSave's network (the gamesave online script command brings it back) |
ISIM_GAMESAVE_ACCOUNT=none |
the device is signed out of iCloud: synced directories are local |
ISIM_ICLOUD=noAccount |
no iCloud account (also restricted, temporarilyUnavailable): CloudKit fails with notAuthenticated, url(forUbiquityContainerIdentifier:) and ubiquityIdentityToken are nil, NSUbiquitousKeyValueStore keeps nothing |
ISIM_LANGUAGES=ru,en |
preferred languages for one run (overrides Settings > Language & Region): localized strings and plural rules |
ISIM_TERM_OF_ADDRESS=feminine |
the user's term of address (feminine, masculine or neutral; Settings > General > Language & Region > Term of Address on iOS): TermOfAddress.currentUser and automatic grammar agreement (^[Bienvenido](inflect: true)). Also read from the AppleTermOfAddress default |
ISIM_GEOCODER=offline |
every CLGeocoder request fails with CLError.network (default: an offline gazetteer answers) |
ISIM_MAP_TILES=DIR |
draw maps from a local {z}/{x}/{y}.png tile cache (nothing is ever downloaded) |
ISIM_ROUTING_URL=URL |
MKDirections asks this OSRM server (/route/v1/{driving,walking,cycling}/…; one you run, e.g. http://localhost:5000) for routes and ETAs; unset: directionsNotFound, isim never picks a server |
ISIM_LOOKAROUND=DIR |
Look Around panoramas: equirectangular images named LAT,LON.jpg/.png (centre facing north); also read from $ISIM_DATA/Library/Maps/LookAround. A scene request finds the nearest within 50 m |