gpt4 book ai didi

ios - 静音 "table of contents is empty"警告

转载 作者:搜寻专家 更新时间:2023-10-30 20:16:42 25 4
gpt4 key购买 nike

是否可以在链接仅包含类别的库时消除“目录为空”警告?

warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning for library: {some library} for architecture: {some architecture} the table of contents is empty (no object file members in the library define global symbols)

我知道在任何实现文件中添加空类都会消除警告,但我不希望添加人工类。

最佳答案

您可以用自己的包装器替换 libtool:

  • 将 libtool 重命名为 libtool.orig
  • 创建具有以下内容的可执行 libtool 脚本:

       /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr /bin/libtool.orig $* 2>&1 | grep -v "the table of contents is empty"
    exit ${PIPESTATUS[0]}

Xcode 将不再显示这条烦人的消息。

关于ios - 静音 "table of contents is empty"警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27602998/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com