Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit b0e2edb

Browse files
committed
commented all print statements and suppressed some weird log warnings
1 parent 894c5c5 commit b0e2edb

4 files changed

Lines changed: 18 additions & 11 deletions

File tree

FetchInstallerPkg.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@
373373
CODE_SIGN_IDENTITY = "Apple Development";
374374
CODE_SIGN_STYLE = Automatic;
375375
COMBINE_HIDPI_IMAGES = YES;
376-
CURRENT_PROJECT_VERSION = 17;
376+
CURRENT_PROJECT_VERSION = 18;
377377
DEVELOPMENT_ASSET_PATHS = "\"FetchInstallerPkg/Preview Content\"";
378378
DEVELOPMENT_TEAM = JME5BW3F3R;
379379
ENABLE_APP_SANDBOX = YES;
@@ -409,7 +409,7 @@
409409
CODE_SIGN_IDENTITY = "Apple Development";
410410
CODE_SIGN_STYLE = Automatic;
411411
COMBINE_HIDPI_IMAGES = YES;
412-
CURRENT_PROJECT_VERSION = 17;
412+
CURRENT_PROJECT_VERSION = 18;
413413
DEVELOPMENT_ASSET_PATHS = "\"FetchInstallerPkg/Preview Content\"";
414414
DEVELOPMENT_TEAM = JME5BW3F3R;
415415
ENABLE_APP_SANDBOX = YES;

FetchInstallerPkg.xcodeproj/xcshareddata/xcschemes/FetchInstallerPkg.xcscheme

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@
5151
ReferencedContainer = "container:FetchInstallerPkg.xcodeproj">
5252
</BuildableReference>
5353
</BuildableProductRunnable>
54+
<EnvironmentVariables>
55+
<EnvironmentVariable
56+
key = "OS_ACTIVITY_MODE"
57+
value = "disable"
58+
isEnabled = "YES">
59+
</EnvironmentVariable>
60+
</EnvironmentVariables>
5461
</LaunchAction>
5562
<ProfileAction
5663
buildConfiguration = "Release"

FetchInstallerPkg/Model/Product.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class Product: Codable, Identifiable, ObservableObject {
103103
if let buildManifest = try? decoder.decode(BuildManifest.self, from: data) {
104104
self.buildVersion = buildManifest.productBuildVersion
105105
self.productVersion = buildManifest.productVersion
106-
print(" Build Version: \(self.buildVersion ?? "<none>")")
106+
//print(" Build Version: \(self.buildVersion ?? "<none>")")
107107
}
108108
}
109109

@@ -156,8 +156,8 @@ class Product: Codable, Identifiable, ObservableObject {
156156
self.installerVersion = delegate.installerVersion
157157
self.isLoading = false
158158
self.hasLoaded = true
159-
print(self.title ?? "<no title>")
160-
print(self.buildVersion ?? "<no buildversion>")
159+
//print(self.title ?? "<no title>")
160+
//print(self.buildVersion ?? "<no buildversion>")
161161
}
162162

163163
enum CodingKeys: String, CodingKey {

FetchInstallerPkg/Model/SUCatalog.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class SUCatalog: ObservableObject {
2222

2323
func load() {
2424
let catalogURL = catalogURL(for: Prefs.seedProgram)
25-
print(catalogURL.absoluteString)
25+
//print(catalogURL.absoluteString)
2626

2727
let sessionConfig = URLSessionConfiguration.ephemeral
2828
let session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
@@ -60,22 +60,22 @@ class SUCatalog: ObservableObject {
6060
self.catalog = try! decoder.decode(Catalog.self, from: data)
6161

6262
if let products = self.products {
63-
print("loaded catalog with \(products.count) products")
63+
//print("loaded catalog with \(products.count) products")
6464

6565
for (productKey, product) in products {
6666
product.key = productKey
6767
if let metainfo = product.extendedMetaInfo {
6868
if metainfo.sharedSupport != nil {
6969
// this is an installer, add to list
7070
self.installers.append(product)
71-
print("\(productKey) is an installer")
72-
print(" BuildManifest: \(product.buildManifestURL ?? "<no>")")
73-
print(" InstallAssistant: \(String(describing: product.installAssistantURL))")
71+
//print("\(productKey) is an installer")
72+
//print(" BuildManifest: \(product.buildManifestURL ?? "<no>")")
73+
//print(" InstallAssistant: \(String(describing: product.installAssistantURL))")
7474
product.loadDistribution()
7575
}
7676
}
7777
}
78-
print("found \(self.installers.count) installer pkgs")
78+
//print("found \(self.installers.count) installer pkgs")
7979
installers.sort { $0.postDate > $1.postDate }
8080
}
8181
}

0 commit comments

Comments
 (0)