mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-19 19:53:25 +01:00
[AltServer] Renames NSError+ALTServerError category methods to avoid runtime conflicts
This commit is contained in:
@@ -21,19 +21,19 @@ NSErrorUserInfoKey const ALTProvisioningProfileBundleIDErrorKey = @"bundleIdenti
|
|||||||
[NSError setUserInfoValueProviderForDomain:AltServerErrorDomain provider:^id _Nullable(NSError * _Nonnull error, NSErrorUserInfoKey _Nonnull userInfoKey) {
|
[NSError setUserInfoValueProviderForDomain:AltServerErrorDomain provider:^id _Nullable(NSError * _Nonnull error, NSErrorUserInfoKey _Nonnull userInfoKey) {
|
||||||
if ([userInfoKey isEqualToString:NSLocalizedFailureReasonErrorKey])
|
if ([userInfoKey isEqualToString:NSLocalizedFailureReasonErrorKey])
|
||||||
{
|
{
|
||||||
return [error alt_localizedFailureReason];
|
return [error altserver_localizedFailureReason];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ([userInfoKey isEqualToString:NSLocalizedRecoverySuggestionErrorKey])
|
if ([userInfoKey isEqualToString:NSLocalizedRecoverySuggestionErrorKey])
|
||||||
{
|
{
|
||||||
return [error alt_localizedRecoverySuggestion];
|
return [error altserver_localizedRecoverySuggestion];
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil;
|
return nil;
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (nullable NSString *)alt_localizedFailureReason
|
- (nullable NSString *)altserver_localizedFailureReason
|
||||||
{
|
{
|
||||||
switch ((ALTServerError)self.code)
|
switch ((ALTServerError)self.code)
|
||||||
{
|
{
|
||||||
@@ -98,7 +98,7 @@ NSErrorUserInfoKey const ALTProvisioningProfileBundleIDErrorKey = @"bundleIdenti
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (nullable NSString *)alt_localizedRecoverySuggestion
|
- (nullable NSString *)altserver_localizedRecoverySuggestion
|
||||||
{
|
{
|
||||||
switch ((ALTServerError)self.code)
|
switch ((ALTServerError)self.code)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user