【问题标题】:Silence warning "Could not create compact unwind for [symbol]: stack subl instruction is too different from dwarf stack size"静音警告“无法为 [symbol] 创建紧凑展开:stack subl 指令与 dwarf 堆栈大小相差太大”
【发布时间】:2020-03-14 14:18:19
【问题描述】:

在使用 Swift 编写的 WatchOS 应用程序上工作时,我最近在 Xcode 中收到以下警告:

Could not create compact unwind for [symbol]: stack subl instruction is too different from dwarf stack size

我怎样才能修复它或让它静音?

【问题讨论】:

    标签: ios swift xcode clang watchos


    【解决方案1】:

    感谢this discussion,我找到了设置以下链接器标志的建议:

    LDFLAGS="-Wl,-no_compact_unwind"
    

    这在 Xcode 中的什么地方?选择您收到警告的目标,然后搜索“链接器”,以便您可以将Other Linker Flags 设置为-Wl,-no_compact_unwind

    (这对应于.pbxproj 文件中的OTHER_LDFLAGS 设置。)

    这对我来说是无声的警告。如果有人知道解决或解决潜在问题的更好方法,我很想听听!

    【讨论】:

      猜你喜欢
      • 2017-01-28
      • 2017-04-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-10
      • 2014-02-04
      • 1970-01-01
      • 2014-06-09
      相关资源
      最近更新 更多