Xcode:ld:未找到-lAFNetworking的库 [英] Xcode: ld: library not found for -lAFNetworking
问题描述
因为这个原因,构建总是失败...对我可以尝试什么想法?
和Adlair Cerecedo-Mendez
- 删除Xcode左侧面板上的Pods项目。
- 关闭Xcode并在查找器中删除此文件。
- 再次安装pod。
- 打开Xcode
- 验证您的项目的构建选项仅构建活动架构是否设置为否,您的Pods项目(左侧面板选择)也会设置为否。
- 点击您的项目计划(顶部,靠近停止按钮)和管理计划。
- 然后,对于所有库,选择它们(滚动列表)并手动生成
- Delete the "Pods" project on the left panel of Xcode.
- Close Xcode and delete this file in the finder too.
- Install pods again.
- Open Xcode and clean.
- Verify that the build option "Build Active Architecture Only" is set to "NO" for your project but also for your Pods project (selection with left panel).
- Click on your project Scheme (top, near the stop button) and "Manage Scheme".
- Check, select all your pods libraries and close.
- Then, for all libs, select them (scroll the list) and build manually for the selected architecture.
$ b
每次更改架构(模拟器,设备或归档(通用iOS设备))时,您必须执行上述操作步骤:即,通过在滚动列表中逐个选择它们来手动地构建每个库,并且只构建和运行你的主项目。
看起来有点WTF,但是它是我解决这个问题的唯一方法...
Because of this one reason, build always fails...Any ideas about what I could try?
Have the same issue.
What I did with the help of https://premium.wpmudev.org/forums/topic/anybody-solved-this-linker-command-failed-with-exit-code-1 and Adlair Cerecedo-Mendez
Every time you change your architecture (simulator, device or for archive(Generic iOS Device)) you must do the above step: namely, manually build each libraries by selecting them in your scroll list one by one, and only than build and run your main project.
Seems a bit WTF, but it is the only way I resolve this issue...
这篇关于Xcode:ld:未找到-lAFNetworking的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!