Skip to content

Commit 83055a3

Browse files
committed
App Testing
1 parent e74fbe7 commit 83055a3

4 files changed

Lines changed: 40 additions & 42 deletions

File tree

StikDebug.xcodeproj/project.pbxproj

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88

99
/* Begin PBXBuildFile section */
1010
17C744F02E20BED000834F17 /* Pipify in Frameworks */ = {isa = PBXBuildFile; productRef = 17C744EF2E20BED000834F17 /* Pipify */; };
11-
68AA2E4D2E8214A1008342E8 /* StikDebug.storekit in Resources */ = {isa = PBXBuildFile; fileRef = 68AA2E4C2E8214A1008342E8 /* StikDebug.storekit */; };
12-
68AD80462E6B65DA00DE9112 /* ZsignSwift in Frameworks */ = {isa = PBXBuildFile; productRef = 68AD80452E6B65DA00DE9112 /* ZsignSwift */; };
13-
68AD80482E6B65DA00DE9112 /* zsign in Frameworks */ = {isa = PBXBuildFile; productRef = 68AD80472E6B65DA00DE9112 /* zsign */; };
11+
687843662E8765D1002D0813 /* ZSignApple in Frameworks */ = {isa = PBXBuildFile; productRef = 687843652E8765D1002D0813 /* ZSignApple */; };
12+
687843682E8765FA002D0813 /* StikDebug.storekit in Resources */ = {isa = PBXBuildFile; fileRef = 687843672E8765FA002D0813 /* StikDebug.storekit */; };
1413
68D1FA402E847E4A0028A0EA /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 68D1FA3F2E847E4A0028A0EA /* StoreKit.framework */; };
1514
68D569BE2E1B415700A5BA36 /* CodeEditorView in Frameworks */ = {isa = PBXBuildFile; productRef = 68D569BD2E1B415700A5BA36 /* CodeEditorView */; };
1615
68D569C02E1B415700A5BA36 /* LanguageSupport in Frameworks */ = {isa = PBXBuildFile; productRef = 68D569BF2E1B415700A5BA36 /* LanguageSupport */; };
@@ -70,7 +69,7 @@
7069
/* End PBXCopyFilesBuildPhase section */
7170

7271
/* Begin PBXFileReference section */
73-
68AA2E4C2E8214A1008342E8 /* StikDebug.storekit */ = {isa = PBXFileReference; lastKnownFileType = text; path = StikDebug.storekit; sourceTree = "<group>"; };
72+
687843672E8765FA002D0813 /* StikDebug.storekit */ = {isa = PBXFileReference; lastKnownFileType = text; path = StikDebug.storekit; sourceTree = "<group>"; };
7473
68D1FA3F2E847E4A0028A0EA /* StoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = StoreKit.framework; path = System/Library/Frameworks/StoreKit.framework; sourceTree = SDKROOT; };
7574
DC139F6C2DE97EA400F63846 /* DebugWidgetExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = DebugWidgetExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; };
7675
DC139F6D2DE97EA400F63846 /* WidgetKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WidgetKit.framework; path = System/Library/Frameworks/WidgetKit.framework; sourceTree = SDKROOT; };
@@ -160,12 +159,11 @@
160159
files = (
161160
DCBA85862E3897BD00E88C06 /* StikImporter in Frameworks */,
162161
17C744F02E20BED000834F17 /* Pipify in Frameworks */,
163-
68AD80462E6B65DA00DE9112 /* ZsignSwift in Frameworks */,
164-
68AD80482E6B65DA00DE9112 /* zsign in Frameworks */,
165162
68D569C02E1B415700A5BA36 /* LanguageSupport in Frameworks */,
166163
68D1FA402E847E4A0028A0EA /* StoreKit.framework in Frameworks */,
167164
68D569BE2E1B415700A5BA36 /* CodeEditorView in Frameworks */,
168165
68E714E62E6AA2B00025610F /* ZIPFoundation in Frameworks */,
166+
687843662E8765D1002D0813 /* ZSignApple in Frameworks */,
169167
);
170168
runOnlyForDeploymentPostprocessing = 0;
171169
};
@@ -197,8 +195,8 @@
197195
DC6F1D2E2D94EADD0071B2B6 = {
198196
isa = PBXGroup;
199197
children = (
198+
687843672E8765FA002D0813 /* StikDebug.storekit */,
200199
DC139F862DE97F2000F63846 /* DebugWidgetExtension.entitlements */,
201-
68AA2E4C2E8214A1008342E8 /* StikDebug.storekit */,
202200
DC6F1D392D94EADD0071B2B6 /* StikJIT */,
203201
DC6F1D4B2D94EADF0071B2B6 /* StikJITTests */,
204202
DC6F1D552D94EADF0071B2B6 /* StikJITUITests */,
@@ -282,8 +280,7 @@
282280
17C744EF2E20BED000834F17 /* Pipify */,
283281
DCBA85852E3897BD00E88C06 /* StikImporter */,
284282
68E714E52E6AA2B00025610F /* ZIPFoundation */,
285-
68AD80452E6B65DA00DE9112 /* ZsignSwift */,
286-
68AD80472E6B65DA00DE9112 /* zsign */,
283+
687843652E8765D1002D0813 /* ZSignApple */,
287284
);
288285
productName = StikJIT;
289286
productReference = DC6F1D372D94EADD0071B2B6 /* StikDebug.app */;
@@ -402,7 +399,7 @@
402399
17C744EE2E20BED000834F17 /* XCRemoteSwiftPackageReference "swiftui-pipify" */,
403400
DCBA85842E3897BD00E88C06 /* XCRemoteSwiftPackageReference "StikImporter" */,
404401
68E714E42E6AA2B00025610F /* XCRemoteSwiftPackageReference "ZIPFoundation" */,
405-
68AD80442E6B65DA00DE9112 /* XCRemoteSwiftPackageReference "Zsign-Package" */,
402+
687843642E8765D0002D0813 /* XCRemoteSwiftPackageReference "zsign-swift" */,
406403
);
407404
preferredProjectObjectVersion = 77;
408405
productRefGroup = DC6F1D382D94EADD0071B2B6 /* Products */;
@@ -423,7 +420,7 @@
423420
isa = PBXResourcesBuildPhase;
424421
buildActionMask = 2147483647;
425422
files = (
426-
68AA2E4D2E8214A1008342E8 /* StikDebug.storekit in Resources */,
423+
687843682E8765FA002D0813 /* StikDebug.storekit in Resources */,
427424
);
428425
runOnlyForDeploymentPostprocessing = 0;
429426
};
@@ -1014,11 +1011,11 @@
10141011
kind = branch;
10151012
};
10161013
};
1017-
68AD80442E6B65DA00DE9112 /* XCRemoteSwiftPackageReference "Zsign-Package" */ = {
1014+
687843642E8765D0002D0813 /* XCRemoteSwiftPackageReference "zsign-swift" */ = {
10181015
isa = XCRemoteSwiftPackageReference;
1019-
repositoryURL = "https://github.com/khcrysalis/Zsign-Package/";
1016+
repositoryURL = "https://github.com/loyahdev/zsign-swift";
10201017
requirement = {
1021-
branch = package;
1018+
branch = main;
10221019
kind = branch;
10231020
};
10241021
};
@@ -1054,15 +1051,10 @@
10541051
package = 17C744EE2E20BED000834F17 /* XCRemoteSwiftPackageReference "swiftui-pipify" */;
10551052
productName = Pipify;
10561053
};
1057-
68AD80452E6B65DA00DE9112 /* ZsignSwift */ = {
1058-
isa = XCSwiftPackageProductDependency;
1059-
package = 68AD80442E6B65DA00DE9112 /* XCRemoteSwiftPackageReference "Zsign-Package" */;
1060-
productName = ZsignSwift;
1061-
};
1062-
68AD80472E6B65DA00DE9112 /* zsign */ = {
1054+
687843652E8765D1002D0813 /* ZSignApple */ = {
10631055
isa = XCSwiftPackageProductDependency;
1064-
package = 68AD80442E6B65DA00DE9112 /* XCRemoteSwiftPackageReference "Zsign-Package" */;
1065-
productName = zsign;
1056+
package = 687843642E8765D0002D0813 /* XCRemoteSwiftPackageReference "zsign-swift" */;
1057+
productName = ZSignApple;
10661058
};
10671059
68D569BD2E1B415700A5BA36 /* CodeEditorView */ = {
10681060
isa = XCSwiftPackageProductDependency;

StikDebug.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 5 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

StikJIT/Views/MainTabView.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ struct MainTabView: View {
4040
ScriptListView()
4141
.tabItem { Label("Scripts", systemImage: "scroll") }
4242
.tag(1)
43-
43+
44+
IPAAppManagerView()
45+
.tabItem { Label("Testing", systemImage: "square.grid.2x2.fill") }
46+
.tag(2)
47+
4448
DeviceInfoView()
4549
.tabItem { Label("Device Info", systemImage: "info.circle.fill") }
4650
.tag(3)

StikJIT/Views/Testing.swift

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Testing.swift
3-
// StikDebug 2
3+
// StikDebug
44
//
55
// Created by Stephen Bove on 8/8/25.
66
//
@@ -9,7 +9,7 @@ import SwiftUI
99
import Foundation
1010
import UniformTypeIdentifiers
1111
import ZIPFoundation
12-
import Zsign
12+
import ZSign
1313
import StikImporter
1414
import UIKit
1515
import PhotosUI
@@ -364,6 +364,18 @@ final class AppSignerManager: ObservableObject {
364364
try? FileManager.default.copyItem(at: icon1024URL, to: previewDest)
365365
}
366366

367+
let pw = KeychainHelper.shared.readPassword(forKey: cert.id.uuidString) ?? ""
368+
let rc = zsign(
369+
appFolder.path,
370+
cert.p12URL.path,
371+
cert.p12URL.path,
372+
cert.mobURL?.path ?? "",
373+
pw
374+
)
375+
guard rc == 0 else {
376+
throw NSError(domain: "zsign", code: Int(rc),
377+
userInfo: [NSLocalizedDescriptionKey: "zsign returned \(rc)"])
378+
}
367379

368380
let outDir = docs.appendingPathComponent("SignedApps/\(newName)", isDirectory: true)
369381
if FileManager.default.fileExists(atPath: outDir.path) { try FileManager.default.removeItem(at: outDir) }
@@ -540,7 +552,7 @@ enum ManagerSection: String, CaseIterable, Identifiable {
540552

541553
struct GlassLiquidTabSwitcher: View {
542554
@Binding var selection: ManagerSection
543-
var accent: Color = .blue
555+
var accent: Color = .white
544556
var height: CGFloat = 56
545557

546558
private let pad: CGFloat = 6
@@ -685,9 +697,8 @@ private struct ManageCertsView: View {
685697

686698
struct IPAAppManagerView: View {
687699
@AppStorage("customAccentColor") private var customAccentColorHex: String = ""
688-
@Environment(\.themeExpansionManager) private var themeExpansion
689700
private var accent: Color {
690-
themeExpansion?.resolvedAccentColor(from: customAccentColorHex) ?? .blue
701+
customAccentColorHex.isEmpty ? .white : Color(hex: customAccentColorHex) ?? .white
691702
}
692703

693704
@StateObject private var mgr = AppSignerManager()

0 commit comments

Comments
 (0)