升级到Xcode 7后缺少Ar [英] Ar is missing after upgrade to Xcode 7

查看:70
本文介绍了升级到Xcode 7后缺少Ar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm using Yosemite. Just upgraded Xcode 7 and command line

在为iOS交叉编译C项目时出现此错误.

I'm getting this error when cross-compile C project for iOS.

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar:无此类文件或目录

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar: No such file or directory

推荐答案

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

Xcode 7.0 appears to have changed the default location for these tools:

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/

默认情况下,它可能不包括所有命令行工具,因此您也可以尝试下载它们:

It may not include all command line tools by default, so you can also try downloading them:

用于Xcode 7的命令行工具OS X 10.10

Command Line Tools OS X 10.10 for Xcode 7

现在以前位置中仅有的工具是:

The only tools now in the former location are:

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

这篇关于升级到Xcode 7后缺少Ar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆