ios - 静默警告“无法为[symbol]创建紧凑展开:堆栈subl指令与侏儒堆栈大小太大不同”

标签 ios swift xcode clang watchos

在使用Swift编写的WatchOS应用程序上,我最近在Xcode中收到以下警告:
Could not create compact unwind for [symbol]: stack subl instruction is too different from dwarf stack size
如何修复或静音?

最佳答案

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

LDFLAGS="-Wl,-no_compact_unwind"

Xcode在哪里?选择要获得警告的目标,然后搜索“链接器”,以便可以将Other Linker Flags设置为-Wl,-no_compact_unwind:

Screenshot of "Other Linker Flags" set to "-Wl,-no_compact_unwind"

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

这为我消除了警告。如果有人知道解决或解决潜在问题的更好方法,我很乐意听到!

关于ios - 静默警告“无法为[symbol]创建紧凑展开:堆栈subl指令与侏儒堆栈大小太大不同”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60683702/

相关文章:

ios - 如何更改 iphone 应用程序中的语言运行时?

ios - 应用程序存储分配和低存储通知

ios - 将 Stackview 添加到 UIScrollView

swift - 快速使用DispatchWorkItem有什么好处?

javascript - 如何更改 JavaScript 中日期选择的语言?

Xcode 4 首选项 Pane 缺少 "Source Trees"选项卡?

ios - 无法使计时器 swift 失效

iphone - 触摸事件 (touchesMoved) 不适用于 UIScrollView 内的 UIViews

Xcode Interface Builder - "correct"删除/重命名错误接线的 IBOutlets/IBActions 的方法?

ios - 在 iOS 7 中呈现 UIImagePickerController 的问题