CocoaPods没有与项目链接 [英] CocoaPods not linking with the project

查看:114
本文介绍了CocoaPods没有与项目链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用CocoaPods的项目。它工作正常但有些东西坏了。

I have a project that uses CocoaPods. It was working but something got broken.

如果我定位模拟器它会编译,但如果我定位设计(构建或存档)它会抛出链接器错误。

It does compile if I target the simulator, but If I target the devise (Build or Archive) it throws a linker error.

ld: warning: ignoring file /Users/myuser/ios/share/share/libPods.a, file was built for archive which is not the architecture being linked (armv7s): /Users/myuser/ios/share/share/libPods.a
Undefined symbols for architecture armv7s:
  "_OBJC_CLASS_$_AFHTTPRequestOperationManager", referenced from:
      objc-class-ref in BackendProxy.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我真的需要一些帮助,因为我真的被困了。

I really need some help because I am really stucked.

谢谢!

编辑:我删除了libPods.a,这是一个旧的,现在它是给我:

i deleted that libPods.a, that was an old one, and now it's giving me:

ld: library not found for -lPods

但仅在Archive或Build for iosDevice上,这仍在模拟器上工作。

But only on Archive or Build for iosDevice, this is still working on the simulator.

推荐答案

尝试从有效架构部分删除 armv7s

Build Settings -> Architectures -> Valid Architectures

这篇关于CocoaPods没有与项目链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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