Created
December 28, 2025 16:34
-
-
Save modemlooper/f8e5ea4d75483260e5fd8c1163b0091f to your computer and use it in GitHub Desktop.
List iOS bundle files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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