Skip to content

Instantly share code, notes, and snippets.

@modemlooper
Created December 28, 2025 16:34
Show Gist options
  • Select an option

  • Save modemlooper/f8e5ea4d75483260e5fd8c1163b0091f to your computer and use it in GitHub Desktop.

Select an option

Save modemlooper/f8e5ea4d75483260e5fd8c1163b0091f to your computer and use it in GitHub Desktop.
List iOS bundle files
// Print the actual path of the Bundle
let bundlePath = Bundle.main.bundlePath
print("📂 Bundle Path: \(bundlePath)")
do {
// List everything at the root of the bundle
let items = try FileManager.default.contentsOfDirectory(atPath: bundlePath)
print("--------------------------------------------------")
print("Items found in Bundle Root:")
for item in items {
print(" - \(item)")
}
print("--------------------------------------------------")
} catch {
print("Error listing bundle contents: \(error)")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment