OGeek|极客世界-中国程序员成长平台

标题: ios - 升级到 Xcode 7 后缺少 Ar [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 08:54
标题: ios - 升级到 Xcode 7 后缺少 Ar

我正在使用优胜美地。刚刚升级了 Xcode 7 和命令行

我在为 iOS 交叉编译 C 项目时遇到此错误。

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar:没有这样的文件或目录



Best Answer-推荐答案


Xcode 7.0 似乎更改了这些工具的默认位置:

nm
size
libtool
pagestuff
ar
codesign_allocate
dsymutil
install_name_tool
ld
ctf_insert
as
otool
strings
strip
redo_prebinding
lipo
nmedit

工具链位置:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/

默认可能不包含所有命令行工具,你也可以试试下载:

Command Line Tools OS X 10.10 for Xcode 7

现在在原位置的唯一工具是:

texturetool
csent
unwinddump
dyldinfo
dsymutil-classic
rebase
pngcrush
dwarfdump
PackageApplication
iphoneos-optimize

关于ios - 升级到 Xcode 7 后缺少 Ar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32638016/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4