Xcode cannot find Bolts framework even there is

落花浮王杯 提交于 2021-01-27 07:01:29

问题


I reopened a xCode project after 1 month. I tried to compile, but I run into this error:

"linker command failed with exit code 1 (use -v to see invocation)"

Please, see the image below:

enter image description here

It seems that Xcode is not able to find Bolts Framework even if it is inside the project directory. I tried to delete and re-add it but it didn't work. I checked also the Framework search path but it is correct.

Any suggestion? Thanks in advance


回答1:


If you already have -ObjC linked, verify if Bolts is included in your Link Binary with Libraries section of the Build Phases. If it is, try to remove the frameworks from the project and re-adding them, download the frameworks again, but without copying it to your project folder.

If it still doesn't work, try using CocoaPods in your project and add this to your Podfile:

pod 'Bolts'


来源:https://stackoverflow.com/questions/27635966/xcode-cannot-find-bolts-framework-even-there-is

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!