Skip to content

Commit

Permalink
Removed objective c try catch in AppleBridge and replaced with an alt…
Browse files Browse the repository at this point in the history
…ernative check. Should fix blocker from processing file update
  • Loading branch information
azevedco committed Feb 6, 2025
1 parent 749b28d commit 353ff72
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ FString UAppleBridge::AppleEncrypt(const FString& StringIn)
FString UAppleBridge::AppleDecrypt(const FString& StringIn)
{
FString Result = "";



#if PLATFORM_IOS || PLATFORM_MAC
NSString * _ToDecrypt = StringIn.GetNSString();
NativeAppleEncryptor * Encryptor = [[NativeAppleEncryptor alloc] init];

@try {

if (StringIn.IsEmpty() == false)
{
char * CharResult = [Encryptor Decrypt:_ToDecrypt];
Result = FString(UTF8_TO_TCHAR(CharResult));
}
@catch (NSException *exception) {
// Handle the exception and log the error
NSLog(@"Caught exception: %@ - Reason: %@", exception.name, exception.reason);
}

#endif
return Result;
Expand Down

0 comments on commit 353ff72

Please sign in to comment.