xCode: Library not found - lPods-Bolts - Exit Code 1

前端 未结 3 352
庸人自扰
庸人自扰 2021-01-19 00:46

Hi I\'m having this issue:

ld: library not found for -lPods-Bolts

clang: error: linker command failed with exit code 1 (use -v to see in

相关标签:
3条回答
  • 2021-01-19 01:12

    My problem was that I changed the name of the project, so I reinstalled pods and in "Link Binary With Libraries" I had to delete "libPods-(old_pods_name).a" and also "Bolts.framework" and "Restkit.framework". Then reinstalled pods That worked for me!!!

    0 讨论(0)
  • 2021-01-19 01:15

    I resolved this problem, by switching scheme to Pods-xxx, and build it first. Then, switch back to original project, and build it.

    Let Pods-xxx build the necessary xxx.a first, resolve the dependency problem.

    Switch scheme

    On the toolbar, select

    Product -> Scheme -> (Pods-xxx or original target)

    0 讨论(0)
  • 2021-01-19 01:16

    Typically this can happen sometimes when one of your pod dependencies is accidentally added to the Build Phases pane under "Link Binary With Libraries" of your Targets settings.

    Removing the library ".a" file from the Build Phase should do the trick.

    0 讨论(0)
提交回复
热议问题