facebook / facebook-sdk-for-unity

The facebook sdk for unity.
https://developers.facebook.com/docs/unity
Other
492 stars 257 forks source link

Error building project with ./setup script #611

Open adiohaion opened 2 years ago

adiohaion commented 2 years ago

I'm running the script and whatever I do I'm getting:

Time Elapsed 00:00:04.55 Microsoft (R) Build Engine version 16.9.0 for Mono Copyright (C) Microsoft Corporation. All rights reserved. Build started 5/4/2022 6:30:35 PM. Project "/Users/adiohaion/Downloads/facebook-sdk-for-unity-sdk-version-12.0.0/UnitySDK/Assembly-CSharp.csproj" on node 1 (default targets). /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(832,5): error : The BaseOutputPath/OutputPath property is not set for project 'Assembly-CSharp.csproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Release' Platform='AnyCPU'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [/Users/adiohaion/Downloads/facebook-sdk-for-unity-sdk-version-12.0.0/UnitySDK/Assembly-CSharp.csproj] Done Building Project "/Users/adiohaion/Downloads/facebook-sdk-for-unity-sdk-version-12.0.0/UnitySDK/Assembly-CSharp.csproj" (default targets) -- FAILED. Build FAILED. "/Users/adiohaion/Downloads/facebook-sdk-for-unity-sdk-version-12.0.0/UnitySDK/Assembly-CSharp.csproj" (default target) (1) -> (_CheckForInvalidConfigurationAndPlatform target) -> /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(832,5): error : The BaseOutputPath/OutputPath property is not set for project 'Assembly-CSharp.csproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Release' Platform='AnyCPU'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [/Users/adiohaion/Downloads/facebook-sdk-for-unity-sdk-version-12.0.0/UnitySDK/Assembly-CSharp.csproj] 0 Warning(s) 1 Error(s) Time Elapsed 00:00:00.54 FATAL: Failed to build SDK DLL

Looking into the Assembly-CSharp.csproj, it does seem like it doesn't have a Release configuration, but since this file is being overwritten while the script is running I can't fix it manually.

Any Idea?

binouze commented 2 years ago

Hi, I have the same problem, did you find a solution ? Any help appreciated as it seems that logins start to fail with the SDK v11. Many users complains about Facebook login issues sine last week.

fahall commented 2 years ago

bump

jianfeng82 commented 2 years ago

Download the source code zip instead of using v12 release. I tried and able to build successfully.

fahall commented 2 years ago

I posted this on their tech support forum awhile back. Maybe traffic there will push the dev team to get this SDK working again 🤷

https://developers.facebook.com/community/threads/5313337695388980/

owaisfb commented 2 years ago

You should be able to compile the package using the ./setup.sh script as there is a release configuration present in Assembly-CSharp.csproj

You can download the source code zip in the v12 tagged release or find the compiled package in the downloads section here: https://developers.facebook.com/docs/unity/downloads

We apologize for the delays here and thank you for your patience, we've been resource starved the past months but this will change and we will have renewed support for the SDK going forward. Let us know if you still face this issue!

shawnpan333 commented 1 year ago

I am having the same issue building with scripts/setup.sh. No matter how I edited Assembly-CSharp.csproj, I got the same error.