转载:https://www.jianshu.com/p/30202f0b1a0a

现象:React0.54版本导入libc++.tbd、libz.tbd两个文件报错

libc++.tbd is not an object file(not allowed in a library)

 

 

libc++.tbd is not an object file(not allowed in a library)

解决办法:

搜索linking,Other Linker Flags选项

libc++.tbd is not an object file(not allowed in a library)

libc++.tbd is not an object file(not allowed in a library)

 接下来继续,将你工程中这两tbd的删除,我的已经改好所以不是tbd了

libc++.tbd is not an object file(not allowed in a library)

 

 删除之后,点击+号---->点击Add Other...如图:输入/usr/lib

libc++.tbd is not an object file(not allowed in a library)

 

 libc++.tbd is not an object file(not allowed in a library)

 

 libc++.tbd is not an object file(not allowed in a library)

 

 找到libz和libc的dylib就ok了,然后编译成功!!!
需要注意的是,在我们构建静态库时是不支持tbd文件,所以需要改成dylib!!

相关文章:

  • 2022-12-23
  • 2021-05-18
  • 2021-05-31
  • 2021-11-18
  • 2021-10-25
  • 2021-11-16
  • 2021-12-14
猜你喜欢
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-03
  • 2022-12-23
相关资源
相似解决方案