Xcode 9.1 (9B55) 导出失败,Stripping extended attributes failed
错误信息如下:
/usr/bin/xattr -crs /var/folders/mm/h01jykrs7gv9w7jjb0yt609w0000gp/T/XcodeDistPipeline.FZT/Root/Payload/GitSmartHome.app" exited with a non-zero status. The /usr/bin/xattr tool may be damaged.
在 IDEDistributionPipeline.log 中,可以看到以下错误:
2017-11-01 14:02:24 +0000
2017-11-01 14:02:24 +0000 Running /usr/bin/xattr '-crs' '/var/folders/mm/h01jykrs7gv9w7jjb0yt609w0000gp/T/XcodeDistPipeline.U1x/Root/Payload/GitSmartHome.app'
2017-11-01 14:02:24 +0000 option -c not recognized
usage: xattr [-lz] file [file ...]
xattr -p [-lz] attr_name file [file ...]
xattr -w [-z] attr_name attr_value file [file ...]
xattr -d attr_name file [file ...]
The first form lists the names of all xattrs on the given file(s).
The second form (-p) prints the value of the xattr attr_name.
The third form (-w) sets the value of the xattr attr_name to attr_value.
The fourth form (-d) deletes the xattr attr_name.
options:
-h: print this help
-l: print long format (attr_name: attr_value)
-z: compress or decompress (if compressed) attribute value in zip format
2017-11-01 14:02:24 +0000 2017-11-01 14:02:24 +0000
2017-11-01 14:02:24 +0000 /usr/bin/xattr exited with 64
在看到这个错误之前,我从网上搜索并尝试了很多,问题是如何修复或重新安装原始 MacOS 的 xattr 或 python?重新安装 High Sierra 会解决这个问题吗?
感谢您的建议。