facebook-sdk-for-unity icon indicating copy to clipboard operation
facebook-sdk-for-unity copied to clipboard

DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead

Open jonathanNitiparsong opened this issue 1 year ago • 4 comments

Checklist

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] version 17.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.

jonathanNitiparsong avatar Oct 30 '23 17:10 jonathanNitiparsong

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

EcoEditor avatar Nov 21 '23 09:11 EcoEditor

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.

jonathanNitiparsong avatar Nov 27 '23 16:11 jonathanNitiparsong

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: image

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.

EcoEditor avatar Dec 11 '23 10:12 EcoEditor

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.

jonathanNitiparsong avatar Mar 11 '24 01:03 jonathanNitiparsong