Xcode:ld:未找到-lAFNetworking的库 [英] Xcode: ld: library not found for -lAFNetworking

查看:1389
本文介绍了Xcode:ld:未找到-lAFNetworking的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因为这个原因,构建总是失败...对我可以尝试什么想法?



和Adlair Cerecedo-Mendez


  1. 删除Xcode左侧面板上的Pods项目。

  2. 关闭Xcode并在查找器中删除此文件。

  3. 再次安装pod。

  4. 打开Xcode

  5. 验证您的项目的构建选项仅构建活动架构是否设置为否,您的Pods项目(左侧面板选择)也会设置为否。

  6. 点击您的项目计划(顶部,靠近停止按钮)和管理计划。

  7. 然后,对于所有库,选择它们(滚动列表)并手动生成

  8. $ 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

    1. Delete the "Pods" project on the left panel of Xcode.
    2. Close Xcode and delete this file in the finder too.
    3. Install pods again.
    4. Open Xcode and clean.
    5. 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).
    6. Click on your project Scheme (top, near the stop button) and "Manage Scheme".
    7. Check, select all your pods libraries and close.
    8. Then, for all libs, select them (scroll the list) and build manually for the selected architecture.

    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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆