AzureAD / microsoft-authentication-library-for-objc

Microsoft Authentication Library (MSAL) for iOS and macOS
http://aka.ms/aadv2
MIT License
263 stars 142 forks source link

Implicit declaration of function 'MSID_LOG_WITH_CTX' is invalid in C99 #935

Closed neildas21 closed 4 years ago

neildas21 commented 4 years ago

Hi, When I build my project on XCode. I get the following error from the MSAL import.

"Implicit declaration of function 'MSID_LOG_WITH_CTX' is invalid in C99"

Screenshot 2020-05-20 at 9 59 16 AM
oldalton commented 4 years ago

Make sure you run git submodule update command after checking out MSAL repository.

oldalton commented 4 years ago

Closing this issue. Please reopen if still active. Thanks!

sahil-75 commented 4 years ago

Hi @oldalton , we're facing the same issue. We tried git submodule update, but it doesn't seem to do anything. Could you help us understand how to resolve this?

wvezey commented 4 years ago

We are in a similar boat. I removed the MDAL pod from the podfile, and am no longer getting this build error, but i have not attempted to publish to the Intune company portal. We shall see.

oldalton commented 4 years ago

We have instructions depending on your way of installing MSAL here: https://github.com/AzureAD/microsoft-authentication-library-for-objc/wiki/Installation

If you're still experiencing the issue after following the steps in the Wiki page, please post your Podfile here.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. Please provide additional information if requested. Thank you for your contributions.

pranayubs commented 3 years ago

Hello, I'm facing same issue. Any idea, How to resolve this issue?

Here is the pod file

target 'MyApp' do
  pod 'MSAL'
end

pod installation

Analyzing dependencies
Downloading dependencies
Installing MSAL (1.1.13)
Generating Pods project
Integrating client project

Compilation error Implicit declaration of function 'MSID_LOG_WITH_CTX' is invalid in C99

Details Xcode 12.1 Swift 5

wvezey commented 3 years ago

@pranayubs We fixed the issue by formatting our podfile MSAL call like this:

pod 'MSAL', :git => 'https://github.com/AzureAD/microsoft-authentication-library-for-objc.git', :submodules => true

stutivaidya commented 2 years ago

Hello, running into the same problem. "Implicit declaration of function 'MSID_LOG_WITH_CTX' is invalid in C99"

Tried out above suggestions but still running into the same error.

dmitry-mikheev commented 1 year ago

Same problem for me. I add it like this (copied from documentation):

pod 'MSAL', :git => 'https://github.com/AzureAD/microsoft-authentication-library-for-objc', :branch => 'master', :submodules => true

Tried to run 'pod update' and also made a clean install. Nothing helps. Does anyone managed to install it?