Skip to content

Instantly share code, notes, and snippets.

View xerrortm's full-sized avatar
:atom:
Scripting

xerrortm xerrortm

:atom:
Scripting
View GitHub Profile
@rileytestut
rileytestut / ExportIPA.swift
Last active September 8, 2026 16:26
Export Swift Playgrounds .ipa
import Foundation
// Export running app as .ipa, then return path to exported file.
// Returns String because app crashes when returning URL from async function for some reason...
func exportIPA() async throws -> String
{
// Path to app bundle
let bundleURL = Bundle.main.bundleURL
// Create Payload/ directory