xcode26 Assertion failed: (it != _dylibToOrdinal.end()), function dylibToOrdinal

16 阅读1分钟

image.png

  1. 在你的项目 Build Settings 中搜索 Other Linker Flags,找到并删除以下两项(如果存在):
  • -ld_classic
  • -ld64
  1. 添加新的链接参数
    为了确保兼容性,建议添加以下参数:
  • -Xlinker
  • -dead_strip