Skip to content

Commit a93e165

Browse files
committed
Workaround for iOS 18+ users
1 parent 58f5d5d commit a93e165

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

MuffinStoreJailed/ContentView.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,13 @@ struct ContentView: View {
7272
.textFieldStyle(RoundedBorderTextFieldStyle())
7373
.padding()
7474
Button("Authenticate") {
75-
if appleId.isEmpty || password.isEmpty || code.isEmpty {
75+
if appleId.isEmpty || password.isEmpty {
76+
return
77+
}
78+
if code.isEmpty {
79+
// we can just try to log in and it'll request a code, very scuffed tho.
80+
ipaTool = IPATool(appleId: appleId, password: password)
81+
ipaTool?.authenticate(requestCode: true)
7682
return
7783
}
7884
let finalPassword = password + code

MuffinStoreJailed/IPATool.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class StoreClient {
110110
return false
111111
}
112112

113-
func authenticate() -> Bool {
113+
func authenticate(requestCode: Bool = false) -> Bool {
114114
if self.guid == nil {
115115
self.guid = generateGuid(appleId: appleId)
116116
}
@@ -186,6 +186,10 @@ class StoreClient {
186186
if ret {
187187
break
188188
}
189+
if requestCode {
190+
ret = false
191+
break
192+
}
189193
}
190194
return ret
191195
}
@@ -284,11 +288,10 @@ class IPATool {
284288
storeClient = StoreClient(appleId: appleId, password: password)
285289
}
286290

287-
func authenticate() -> Bool {
291+
func authenticate(requestCode: Bool = false) -> Bool {
288292
print("Authenticating to iTunes Store...")
289293
if !storeClient.tryLoadAuthInfo() {
290-
// storeClient.authenticate()
291-
return storeClient.authenticate()
294+
return storeClient.authenticate(requestCode: requestCode)
292295
} else {
293296
return true
294297
}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ The UI is a bit scuffed, there's no progress bar during downgrading so just wait
99
I am not responsible for any issues caused by the usage of this tool, it's experimental and I will not be held accountable if anything happens. Use at your own risk. Although nothing should happen, just putting this here just in case.
1010

1111
The app you want to downgrade will need to be uninstalled, however, you can preserve app data by offloading the app first, and then downgrading it.
12+
13+
You should request a 2fa code BEFORE logging in, via the Settings app, however, if the settings app doesn't show the option ( iOS 18+ ), you can leave the code field empty, and then you should get a popup, accept it, and copy the code from there. If it doesn't log you in fully close and re-open the app and try again.

0 commit comments

Comments
 (0)