AzureAD/microsoft-authentication-library-for-objc

Add XCode 11.4 recommended project settings

Closed this issue · 4 comments

XCode complains in issue navigator about MSAL project an suggests updating it to recommended settings.
Those recomended settings seem to add the following build configuration:

ENABLE_HARDENED_RUNTIME = YES;

and compiler flags:
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;

Hi @arangato, thank you bringing this up. we are going to address it. Thank you!

Hi @arangato,

Thank you for sharing this with us.

The next MSAL release will have the following options enabled by default:
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED,
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS,
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF.

However, enabling "ENABLE_HARDENED_RUNTIME" breaks MSAL iOS app, and, for that reason, we will keep it disabled for the time being.

Do you have specific reasons for wanting to enable hardened runtime? If so, could you please share them with us?

Thanks,
Peter

@NerevarineRule thanks! Will the IdentityCore library get the same fixes?

Yes, we will make the same changes in IdentityCore.