mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
[skip ci] Add more information to staging errors (#468)
* Point to my forks and attempt to add more information to staging errors * Improve error message a bit * Revert fetch-prebuilt.sh changes * Undo some whitespace changes * missed one * oops * [skip ci] * [skip ci] * [skip ci] remove staging directory from install app error Signed-off-by: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> --------- Signed-off-by: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Co-authored-by: Dadoum <dadoum@protonmail.com>
This commit is contained in:
@@ -4,8 +4,8 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>ALTAppGroups</key>
|
<key>ALTAppGroups</key>
|
||||||
<array>
|
<array>
|
||||||
<string>group.com.SideStore.SideStore</string>
|
|
||||||
<string>group.$(APP_GROUP_IDENTIFIER)</string>
|
<string>group.$(APP_GROUP_IDENTIFIER)</string>
|
||||||
|
<string>group.com.SideStore.SideStore</string>
|
||||||
</array>
|
</array>
|
||||||
<key>ALTDeviceID</key>
|
<key>ALTDeviceID</key>
|
||||||
<string>00008101-000129D63698001E</string>
|
<string>00008101-000129D63698001E</string>
|
||||||
|
|||||||
@@ -198,22 +198,15 @@ final class InstallAppOperation: ResultOperation<InstalledApp>
|
|||||||
UIApplication.shared.perform(#selector(NSXPCConnection.suspend))
|
UIApplication.shared.perform(#selector(NSXPCConnection.suspend))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var attempts = 10
|
|
||||||
while (attempts != 0){
|
do {
|
||||||
print("Install ipa attempts left: \(attempts)")
|
try install_ipa(installedApp.bundleIdentifier)
|
||||||
do {
|
installing = false
|
||||||
try install_ipa(installedApp.bundleIdentifier)
|
installedApp.refreshedDate = Date()
|
||||||
installing = false
|
self.finish(.success(installedApp))
|
||||||
installedApp.refreshedDate = Date()
|
} catch let error {
|
||||||
self.finish(.success(installedApp))
|
installing = false
|
||||||
break
|
self.finish(.failure(error))
|
||||||
} catch {
|
|
||||||
attempts -= 1
|
|
||||||
if (attempts <= 0){
|
|
||||||
installing = false
|
|
||||||
self.finish(.failure(MinimuxerError.InstallApp))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -138,8 +138,8 @@ extension MinimuxerError: LocalizedError {
|
|||||||
return self.createService(name: "AFC")
|
return self.createService(name: "AFC")
|
||||||
case .RwAfc:
|
case .RwAfc:
|
||||||
return NSLocalizedString("AFC was unable to manage files on the device", comment: "")
|
return NSLocalizedString("AFC was unable to manage files on the device", comment: "")
|
||||||
case .InstallApp:
|
case .InstallApp(let message):
|
||||||
return NSLocalizedString("Unable to install the app from the staging directory", comment: "")
|
return NSLocalizedString("Unable to install the app: \(message.toString())", comment: "")
|
||||||
case .UninstallApp:
|
case .UninstallApp:
|
||||||
return NSLocalizedString("Unable to uninstall the app", comment: "")
|
return NSLocalizedString("Unable to uninstall the app", comment: "")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user