Tag

macOS Development

0 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Jan 22, 2025 · Mobile Development

A Comprehensive Guide to Swift Macros and SwiftSyntax Implementation

This guide explains Swift 5.9 macros—both attached and freestanding—detailing how the compiler expands them using SwiftSyntax’s AST manipulation, walks through creating and declaring macros, and demonstrates a PeerMacro that automatically generates async counterparts for completion‑handler functions, reducing boilerplate and improving code clarity.

CompilerMacro ExpansionSwift 5.9
0 likes · 29 min read
A Comprehensive Guide to Swift Macros and SwiftSyntax Implementation
Sohu Tech Products
Sohu Tech Products
Dec 27, 2023 · Mobile Development

Mac App Store Development: App Sandbox and Security Essentials

Developers targeting the Mac App Store must enable the mandatory App Sandbox and configure appropriate entitlements, privacy descriptions, and security‑scoped bookmarks to control file, hardware, network, and inter‑process access, while using App Groups, ATS, and supported IPC methods for secure, compliant macOS apps.

ATSApp GroupsApp Sandbox
0 likes · 12 min read
Mac App Store Development: App Sandbox and Security Essentials