feat: remove reliance on Info.plist for getting udid

This commit is contained in:
junepark678
2023-11-25 20:03:57 +09:00
committed by nythepegasus
parent 2e613e6d15
commit 88ab8fa8d7
2 changed files with 5 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ import Network
import AltStoreCore
import AltSign
import minimuxer
enum AuthenticationError: LocalizedError
{
@@ -593,7 +594,7 @@ private extension AuthenticationOperation
func registerCurrentDevice(for team: ALTTeam, session: ALTAppleAPISession, completionHandler: @escaping (Result<ALTDevice, Error>) -> Void)
{
guard let udid = Bundle.main.object(forInfoDictionaryKey: Bundle.Info.deviceID) as? String else {
guard let udid = fetch_udid()?.toString() else {
return completionHandler(.failure(OperationError.unknownUDID))
}