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

Commit 11eebd8

Browse files
authored
Minor bug fixes
1 parent 2c8f087 commit 11eebd8

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

Sources/prostore/prostore.swift

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,16 @@ struct ContentView: View {
2828
@State private var activityURL: URL? = nil
2929
@State private var showPickerFor: PickerKind?
3030

31-
enum PickerKind { case ipa, p12, prov }
31+
enum PickerKind: Identifiable {
32+
case first, second // your cases
33+
34+
var id: Int {
35+
switch self {
36+
case .first: return 0
37+
case .second: return 1
38+
}
39+
}
40+
}
3241

3342
var body: some View {
3443
NavigationView {
@@ -115,7 +124,7 @@ struct ContentView: View {
115124

116125
// unzip IPA -> tmp
117126
let archive = try Archive(url: localIPA, accessMode: .read)
118-
try archive.extract(to: tmp)
127+
try archive.extract(entry, to: tmp)
119128

120129
// find Payload/*.app
121130
let payload = tmp.appendingPathComponent("Payload")

0 commit comments

Comments
 (0)