xcode 7 中的 libtool 去了哪里?

Where has libtool gone in xcode 7?

我用于创建嵌入式框架的外部构建脚本依赖于 libtool,它位于 /Applications/Xcode 6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin

为了正确构建框架,我必须手动将 libtool 复制到 /Applications/Xcode7.app/Contents/Developer/Platforms/iPhoneOS.platform/usr

使此永久化的最佳方法是什么?使用 Travis CI 时怎么样?我觉得编辑 xcode 不太理想。

答案可能为时已晚,但无论如何,它可能会在将来帮助其他人。调用 libtool(或 Xcode 工具链中的任何其他二进制文件)的正确方法是使用 xcrun 来定位它:

xcrun -sdk iphoneos libtool <libtool_args>

或者您也可以通过使用标志 -f 调用 xcrun 来获取它的实际绝对路径,然后随意使用它:

LIBTOOL_PATH=$(xcrun -sdk iphoneos -f libtool)