Forum Visual Studio

Xamarin.iOS.Common.targets(3,3): Error MSB4018: The "DetectSdkLocations" task failed unexpectedly.

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(547,3): error MSB4018:   at Microsoft.Build.BackEnd.TaskBuilder+<ExecuteInstantiatedTask>d__26.MoveNext () [0x002bf] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/msbuild-15.0/src/XMakeBuildEngine/BackEnd/Components/RequestBuilder/TaskBuilder.cs:787 

Done executing task "DetectSdkLocations" -- FAILED.
Done building target "_DetectSdkLocations" in project "app3.iOS.csproj" -- FAILED.

Done building project "app3.iOS.csproj" -- FAILED.

Best Answer


  • Ashish_sharmaAshish_sharma INMember ✭✭✭

    Hello guy's
    i'm facing this error
    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(3,3): Error: Could not locate SDK bin directory (project name.iOS)

    but i check in my xamarin ios sdk there is showing "/Application/" . i don'd know why this happen please give me solution.

  • drewfusdrewfus Member

    I'm getting the exact same error as Ashish_sharma

  • drewfusdrewfus Member

    Fixed by checking for updates in Visual Studio

  • jaimboxjaimbox Member

    did you try to update Xcode?

    I had the exact same errors today. What I did:
    1. Closed Visual Studio Mac
    2. Opened Xcode
    3. Xcode asked to update additional components
    4. Closed Xcode after the update finished
    5. Opend VS again, cleaned the solution and compiled my project successfully

    I guess the cleaning was not necessary, but it didn't hurt so I did it anyway.

    This was not the first time I ran into this error, but I always forget about it. Would be nice to get a hint from the VS compiler, but unfortunately there is none. :wink:

    I hope this helped.

Sign In or Register to comment.