- 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
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed 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 scanned
Verified clean 2 days ago
- Passed all security checks, Safe to install
Requires