惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
Last Week in AI
Last Week in AI
T
Tailwind CSS Blog
WordPress大学
WordPress大学
B
Blog RSS Feed
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
C
Check Point Blog
P
Proofpoint News Feed
H
Help Net Security
月光博客
月光博客
博客园_首页
Stack Overflow Blog
Stack Overflow Blog
博客园 - 三生石上(FineUI控件)
Martin Fowler
Martin Fowler
Recent Announcements
Recent Announcements
人人都是产品经理
人人都是产品经理
U
Unit 42
美团技术团队
I
InfoQ
A
About on SuperTechFans

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Building a Universal Binary (Intel + Apple Silicon) with ...
hiyoyo · 2026-04-30 · via DEV Community
All tests run on an 8-year-old MacBook Air (Intel). Ships as universal binary. A universal binary runs natively on both Intel Macs and Apple Silicon. Not via Rosetta — actually natively, with the CPU running its own instruction set. With Tauri and Rust, building one is surprisingly straightforward. Add both targets rustup target add x86_64-apple-darwin rustup target add aarch64-apple-darwin That's the Intel target and the Apple Silicon target respectively. Build both and combine # Build for Intel cargo build --release --target x86_64-apple-darwin # Build for Apple Silicon cargo build --release --target aarch64-apple-darwin # Combine into a universal binary lipo -create \ target/x86_64-apple-darwin/release/myapp \ target/aarch64-apple-darwin/release/myapp \ -output target/universal/myapp lipo is Apple's tool for combining architecture slices into a single binary. It ships with Xcode Command Line Tools. Tauri's built-in support Tauri v2 handles this for you: cargo tauri build --target universal-apple-darwin One command. Tauri builds both architectures, runs lipo , packages the DMG. Done. The sidecar problem If your app bundles sidecar binaries (Swift CLIs, ADB, ffmpeg, etc.), each one also needs to be a universal binary. For binaries you compile yourself: # Build Swift CLI for both architectures swiftc -target x86_64-apple-macosx10.15 MyUtil.swift -o MyUtil-x86 swiftc -target arm64-apple-macosx11.0 MyUtil.swift -o MyUtil-arm64 lipo -create MyUtil-x86 MyUtil-arm64 -output MyUtil For third-party binaries (like ADB): check if the vendor provides a universal binary. If not, you'll need to bundle both and select the right one at runtime based on std::env::consts::ARCH . Verifying the output file target/universal/myapp # myapp: Mach-O universal binary with 2 architectures: # [x86_64:Mach-O 64-bit executable x86_64] # [arm64:Mach-O 64-bit executable arm64] lipo -info target/universal/myapp # Architectures in the fat file: x86_64 arm64 If you see both architectures, you're done. Binary size Universal binaries are roughly 2x the size of a single-architecture binary. For a typical Tauri app this means going from ~5MB to ~10MB. Acceptable for a DMG download. Hiyoko PDF Vault → https://hiyokoko.gumroad.com/l/HiyokoPDFVault X → @hiyoyok