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
177 stars 113 forks source link

Error while re-building local library ADAL.framework #1572

Closed nechal closed 3 years ago

nechal commented 3 years ago

I am trying to generate a library locally using the command in root folder: /usr/bin/xcodebuild -workspace ADAL.xcworkspace -scheme "ADAL iOS" -configuration Release "ARCHS=x86_64" -sdk iphonesimulator "VALID_ARCHS=x86_64" ONLY_ACTIVE_ARCH=NO CONFIGURATION_BUILD_DIR=../build/emulator build GCC_GENERATE_TEST_COVERAGE_FILES=NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO

In settings change ADAL Mach-O Type build setting from Dynamic Library to Static Library:

image

But on the output I get an error: BUILD FAILED

The following build commands failed: CompileC /Users/apple/Library/Developer/Xcode/DerivedData/ADAL-gjiuoserokqnylbsyxxuxstgmzbp/Build/Intermediates.noindex/IdentityCore.build/Release-iphonesimulator/IdentityCore\ iOS.build/Objects-normal/x86_64/MSIDWebviewFactory.o src/oauth2/MSIDWebviewFactory.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure)