facebook-sdk-for-unity
facebook-sdk-for-unity copied to clipboard
DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead
Checklist
- [x] I've updated to the latest released version of the SDK
- [x] I've searched for existing GitHub issues
- [x] I've looked for existing answers on Stack Overflow, the Facebook Developer Community Forum and the Facebook Developers Group
- [x] I've read the Code of Conduct
- [x] This issue is not security related and can safely be disclosed publicly on GitHub
Environment
Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:
- Mac OS: 14.1 (23B74)
- Unity Editor Version:
2020.3.48
- Unity SDK Version:
16.0.2
- Installation Platform & Verison:
[iOS]
version17.0.2
- XCode version: 15.0.1 (15A507)
- Cocoapods version 1.14.2
Goals
What do you want to achieve? Attempted to install build onto an iOS device running iOS 17, using XCode version 15.0.1
Expected Results
What do you expect to happen? Expected build to successfully install to the device
Actual Results
What actually happened? Can you provide a stack trace? The build fails with the error that:
FBSDKGamingServicesKit: DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead
Steps to Reproduce
What are the steps necessary to reproduce this issue? Should be reproducible by making a new ios build with the facebook sdk and then attempting to build with the latest version of xcode.
Hey, what solved this for me was upgrading cocoapods to newer version 1.16.3 I believe these are good commands: [sudo] gem install cocoapods or brew install cocoapods
Hey, what solved this for me was upgrading cocoapods to newer version 1.16.3 I believe these are good commands: [sudo] gem install cocoapods or brew install cocoapods
1.16.3? I believe the latest is only up to 1.14.3? I tried updating to the 1.14.3 version of cocoapods, but I am still getting the same error.
Hey, what solved this for me was upgrading cocoapods to newer version 1.16.3 I believe these are good commands: [sudo] gem install cocoapods or brew install cocoapods
1.16.3? I believe the latest is only up to 1.14.3? I tried updating to the 1.14.3 version of cocoapods, but I am still getting the same error.
it is in pretty strange. I get this when checking version: pod --version command:
so I try to install running this command found on stack overflow: gem install ffi --version 1.16.3 --user-install but install failed.
Maybe it is related to updating the OS of the mac.
While I was never able to solve this properly, I do have a workaround to any future users with the issue. Once the app is built in Unity, open the Pods folder, open the Target Support Files folder, open the FBSDKGamingServicesKit folder, and then open both the FBSDKGamingServicesKit.debug and FBSDKGamingServicesKit.release files in a code editor of your choice.
Modify the DT_TOOLCHAIN_DIR references in each file to TOOLCHAIN_DIR.
Then in xcode, under build phases, move the Unity Process Symbols stage to the very bottom.
This has to be repeated for every build, but it gets around the issue.