Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
f1shy-dev committed Aug 7, 2023
1 parent 279367d commit 7348125
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
4 changes: 2 additions & 2 deletions ControlConfig.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@
CODE_SIGN_ENTITLEMENTS = ControlConfig/ControlConfig.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = "KfdExploit-Testing-8";
CURRENT_PROJECT_VERSION = "KfdExploit-Testing-9";
DEVELOPMENT_ASSET_PATHS = "\"ControlConfig/Preview Content\"";
DEVELOPMENT_TEAM = ZV2PLXMRSB;
ENABLE_PREVIEWS = YES;
Expand Down Expand Up @@ -996,7 +996,7 @@
CODE_SIGN_ENTITLEMENTS = ControlConfig/ControlConfig.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = "KfdExploit-Testing-8";
CURRENT_PROJECT_VERSION = "KfdExploit-Testing-9";
DEVELOPMENT_ASSET_PATHS = "\"ControlConfig/Preview Content\"";
DEVELOPMENT_TEAM = ZV2PLXMRSB;
ENABLE_PREVIEWS = YES;
Expand Down
17 changes: 9 additions & 8 deletions ControlConfig/ControlConfigApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ struct ControlConfigApp: App {
switch localPatchState {
case .LoadingBackups:
BareLoading(animateRotate: true, title: "Loading Backups", msg: "Please wait patiently, this can take upto a minute, depending on your device...").onAppear {
#if targetEnvironment(simulator)
DispatchQueue.main.async {
withAnimation {
localPatchState = .Escaped
}
}
#else
// #if targetEnvironment(simulator)
// DispatchQueue.main.async {
// withAnimation {
// localPatchState = .Escaped
// }
// }
// #else
DispatchQueue.global(qos: .userInitiated).async {
BackupManager.shared.loadBackupList()
if BackupManager.shared.backups.count == 0 {
Expand All @@ -100,7 +100,7 @@ struct ControlConfigApp: App {
}
}
}
#endif
// #endif
}
case .Detecting:
BareLoading(animateRotate: true, title: "Patching", msg: "Please wait patiently, this can take a second. Also, please accept any access popups...")
Expand Down Expand Up @@ -144,6 +144,7 @@ struct ControlConfigApp: App {
let appVersion = ((Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "Unknown") + " (" + (Bundle.main.infoDictionary?["CFBundleVersion"] as? String ?? "Unknown") + ")")
print("🚀 ControlConfig - v\(appVersion)")
#if targetEnvironment(simulator)
print("📱 Simulator mode - running as KFD")
localPatchState = .LoadingBackups
activeExploit = .KFD
#else
Expand Down
4 changes: 1 addition & 3 deletions ControlConfig/Models/BackupManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,7 @@ class BackupManager {
dictionary["cm_moduleFill"] = cm_moduleFill != nil
dictionary["cm_moduleStroke"] = cm_moduleStroke != nil

// print the dictionary
print("bss", dictionary)


if let moduleConfiguration = moduleConfiguration,
let moduleAllowedList = moduleAllowedList,
let defaultModuleSettings = defaultModuleSettings,
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ WORKING_LOCATION := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
TARGET = ControlConfig
CONFIGURATION = Release
SDK = iphoneos

XCPRETTY = $(shell command -v xcpretty 2> /dev/null)
build:
echo "Building $(TARGET) for $(SDK)..."
# xcodebuild -project $(PROJECT) -scheme $(TARGET) -configuration $(CONFIGURATION) -sdk $(SDK) CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO SYMROOT=$(PWD)/build clean
# xcodebuild -project $(PROJECT) -scheme $(TARGET) -configuration $(CONFIGURATION) -sdk $(SDK) CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO SYMROOT=$(PWD)/build -resolvePackageDependencies
xcodebuild -project $(PROJECT) -scheme $(TARGET) -configuration $(CONFIGURATION) -sdk $(SDK) CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO SYMROOT=$(PWD)/build build

time xcodebuild -project $(PROJECT) -scheme $(TARGET) -configuration $(CONFIGURATION) -sdk $(SDK) CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO SYMROOT=$(PWD)/build clean build | $(XCPRETTY) -c
# xcodebuild -project $(PROJECT) -scheme $(TARGET) -configuration $(CONFIGURATION) -sdk $(SDK) CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO SYMROOT=$(PWD)/build build
echo "Build finished!"

entitlements:
Expand Down

0 comments on commit 7348125

Please sign in to comment.