File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,8 @@ struct ContentView: View {
101
101
testBypassAppLimit ( )
102
102
}
103
103
. disabled ( taskRunning)
104
+ } footer: {
105
+ Text ( " Hide free developer apps from installd, so you could install more than 3 apps. You need to apply this for each 3 apps you install or update. " )
104
106
}
105
107
Section {
106
108
Toggle ( " Reboot after finish restoring " , isOn: $reboot)
Original file line number Diff line number Diff line change @@ -83,13 +83,15 @@ struct LogView: View {
83
83
var argv = restoreArgs. map { strdup ( $0) }
84
84
let result = idevicebackup2_main ( Int32 ( restoreArgs. count) , & argv)
85
85
print ( " idevicebackup2 exited with code \( result) " )
86
- guard log. contains ( " crash_on_purpose " ) else { return }
87
86
88
- print ( " Restore succeeded " )
89
-
90
- if willReboot && result == 0 {
91
- isRebooting. toggle ( )
92
- MobileDevice . rebootDevice ( udid: udid)
87
+ if log. contains ( " Domain name cannot contain a slash " ) {
88
+ print ( " ERROR: this iOS version is not supported. " )
89
+ } else if log. contains ( " crash_on_purpose " ) {
90
+ print ( " Restore succeeded " )
91
+ if willReboot && result == 0 {
92
+ isRebooting. toggle ( )
93
+ MobileDevice . rebootDevice ( udid: udid)
94
+ }
93
95
}
94
96
95
97
logPipe. fileHandleForReading. readabilityHandler = nil
Original file line number Diff line number Diff line change @@ -35,8 +35,9 @@ struct Restore {
35
35
guard !bundleID. isEmpty,
36
36
let value = value. value as? [ String : AnyCodable ] ,
37
37
let bundlePath = value [ " Path " ] ? . value as? String ,
38
- // Note: this only works for AltStore/SideStore, need another method for Sideloadly
39
- bundlePath. hasSuffix ( " /App.app " )
38
+ // Find all apps containing mobileprovision
39
+ // while this is not 100% accurate, it ensures this is applied to all sideloaded apps
40
+ access ( bundlePath. appending ( " /embedded.mobileprovision " ) , F_OK) == 0
40
41
else { continue }
41
42
print ( " Found \( bundleID) : \( bundlePath) " )
42
43
files. append ( Directory (
You can’t perform that action at this time.
0 commit comments