- Home
- Skills
- Mobile Development
- macOS App Without Xcode
macOS App Without Xcode
Build, sign and ship a real native Mac app from a single Swift file.
$6.99
Works with the AI Agents you already use
macOS App Without Xcode
Example session with this skill installed
Turn my single MyApp.swift SwiftUI file into a real double-clickable Mac app with no Xcode project, and make its floating panel show proper glass instead of a flat dark card.
- Read your context and instructions
- Compiled the macos app without
Example session (illustrative; paths and names will match your project).
1. Build script (build.sh)
#!/bin/bash
set -euo pipefail
APP=MyApp.app
rm -rf "$APP"
mkdir -p "$APP/Contents/MacOS" "$APP/Contents/Resources"
swiftc -O -parse-as-library MyApp.swift -o "$APP/Contents/MacOS/MyApp"
cp Info.plist "$APP/Contents/Info.plist"
cp AppIcon.icns "$APP/Contents/Resources/" 2>/dev/null || true
codesign --force --sign - "$APP"
echo "Built $APP"
2. Info.plist essentials
CFBundleExecutable MyApp, CFBundleIdentifier com.example.myapp, CFBundleIconFile AppIcon, LSUIElement true for a menu-bar or panel app with no Dock icon.
3. Glass fix
The panel looked flat because .ultraThinMaterial inside a borderless NSPanel blends with the window's own background, not the desktop. The fix is to host the SwiftUI view on an NSVisualEffectView with blendingMode = .behindWindow and state = .active, and make the panel non-opaque with a clear background.
4. Panel behaviour
A borderless, non-activating NSPanel that floats above other windows, resizes from the top edge in step with the SwiftUI spring animation, and closes on Esc.
5. Rebuild loop
Run ./build.sh && open MyApp.app. If the old icon still shows, touch the bundle and re-register it with LaunchServices.
Next steps
- Add a menu-bar item, or a native admin prompt for one privileged action.
Connects securely to your tools. The creator never sees your data.
About this skill
An Xcode project is a large, opaque artifact for what is often a few hundred lines of SwiftUI. This skill shows your agent how to compile with swiftc, assemble the .app bundle, write the Info.plist and ad-hoc codesign, all from one reviewable source file.
It includes the full floating HUD and Dynamic Island style panel recipe: a borderless non-activating NSPanel, top-anchored resizing synced to a SwiftUI spring, and Esc handling. It also covers the fix for the most common glass bug, where .ultraThinMaterial renders as a flat card inside a borderless panel and you need behind-window vibrancy. Icon caching, LaunchServices registration and a fast rebuild loop are covered too.
Use cases
- Ship a menu-bar or floating-panel utility without an Xcode project
- Fix a glass panel that renders flat and dark
- Add a native admin password prompt for one specific privileged action
- Set up a one-command reproducible build script
Requires macOS and Swift CLI tools. Top-level code must be in main.swift. Apple Silicon requires manual codesign --force. Native glass requires specific blending modes.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 month ago
Requires
Permissions
Compiles Swift with swiftc and writes the .app bundle in your project folder.