Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit c4d345b

Browse files
authored
More minor bug fixes
1 parent b923eb4 commit c4d345b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Sources/prostore/prostore.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ struct ContentView: View {
2929
@State private var showPickerFor: PickerKind?
3030

3131
enum PickerKind: Identifiable {
32-
case first, second // your cases
32+
case ipa, p12, prov
3333

3434
var id: Int {
3535
switch self {
36-
case .first: return 0
37-
case .second: return 1
36+
case .ipa: return 0
37+
case .p12: return 1
38+
case .prov: return 2
3839
}
3940
}
4041
}
@@ -124,7 +125,9 @@ struct ContentView: View {
124125

125126
// unzip IPA -> tmp
126127
let archive = try Archive(url: localIPA, accessMode: .read)
127-
try archive.extract(entry, to: tmp)
128+
for entry in archive {
129+
try archive.extract(entry, to: tmp)
130+
}
128131

129132
// find Payload/*.app
130133
let payload = tmp.appendingPathComponent("Payload")

0 commit comments

Comments
 (0)