AzureAD / azure-activedirectory-library-for-objc

The ADAL SDK for Objective C gives you the ability to add support for Work Accounts to your iOS and macOS applications with just a few lines of additional code. This SDK gives your application the full functionality of Microsoft Azure AD, including industry standard protocol support for OAuth2, Web API integration with user level consent, and two factor authentication support.
MIT License
178 stars 113 forks source link

ADAL builds broken on macOS 12.3 #1591

Closed GeorgeSealy closed 2 years ago

GeorgeSealy commented 2 years ago

With macOS 12.3, Apple no longer provides a link to python at /usr/bin/python. At least one build script for ADAL references this path when building for iOS, and so the builds are failing.

We have attempted installing python separately, but then we hit the problem that symbolic linking in /usr/bin is not allowed by Apple's System Integrity Protection (see https://superuser.com/questions/1168773/how-to-create-symbolic-links-in-usr-bin-on-a-mac).

Can we have a fix / suggested work around for this build failure that doesn't require disabling System Integrity Protection?

juan-arias commented 2 years ago

Hi @GeorgeSealy, we see Python 2.7 was removed on macOS 12.3 and now Python 3 should be used, ir order to bypass the build error, please update the Python version that is used: ADAL Mac target -> Build Phases -> Run Script change from /usr/bin/pyhton "${PROJECT_DIR}... to /usr/bin/pyhton3 "${PROJECT_DIR}...

image
GrebeniukLA commented 2 years ago

Hi @juan-arias, I can see that you created a release branch 6.0.2 with this changes. Could you make the same changes for ADAL iOS target as well?

juan-arias commented 2 years ago

Hi @GrebeniukLA, thanks for bringing this into our attention. The change has been made for the iOS target as well on the release branch.

bhargavbajani-simformsolutions commented 2 years ago

Any update on this. this is blocker to many projects.

juan-arias commented 2 years ago

Hi @bhargavbajani-simformsolutions, these changes are scheduled for the upcoming April release.

juan-arias commented 2 years ago

A new ADAL version 6.0.2 has been released. Please feel free to reopen this issue in case you are still experiencing the problem.