的iOS模拟器连接器命令失败 [英] iOS simulator linker command failed

查看:385
本文介绍了的iOS模拟器连接器命令失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图发动对模拟器我的iOS应用,但它不工作。运行于手机的工作原理应用程序正常不过。它是与我的admon整合。在模拟器中运行平稳。我用X code 6.1。

我添加了所有必需的框架:

  AdSupport
AudioToolbox
AVFoundation
CoreGraphics中
CoreTelephony
EventKit
EventKitUI
MessageUI
StoreKit
系统配置
以及libGoogleAdMobAds.a
 

我得到的错误是:

  LD:警告:忽略文件/Users/XXXXXXX/Documents/app1/app1/AdSupport.framework/AdSupport,在文件中缺少必需的架构I386 /用户/ XXXXXXX /文档/ APP1 / APP1 / AdSupport.framework / AdSupport(3片)
未定义符号i386硬件架构:
  _OBJC_CLASS _ $ _ ASIdentifierManager,从引用:
      objc类-REF的libGoogleAdMobAds.a(GADDevice.o)
LD:符号(S)未找到i386硬件架构
铿锵:错误:连接器命令失败,退出code 1(使用-v看看调用)
 

解决方案

你从哪里得到的AdSupport.framework?我现在认识到它在你的文档目录。

通常情况下,你应该从x code连接的目标,通过将目标设置:

然后生成阶段>链接的二进制库:

搜索AdSupport,它应该是i​​OS8.1下:

图书馆应该有:

I am trying to launch my iOS app on the simulator but it does not work. Running the app on the phone works normally though. It has something to do with my admon integration. Before the simulator was running smoothly. I am using Xcode 6.1.

I added all required frameworks:

AdSupport  
AudioToolbox  
AVFoundation  
CoreGraphics  
CoreTelephony  
EventKit
EventKitUI 
MessageUI
StoreKit
SystemConfiguration
as well as libGoogleAdMobAds.a

The error I get is:

ld: warning: ignoring file /Users/XXXXXXX/Documents/app1/app1/AdSupport.framework/AdSupport, missing required architecture i386 in file /Users/XXXXXXX/Documents/app1/app1/AdSupport.framework/AdSupport (3 slices)
Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_ASIdentifierManager", referenced from:
      objc-class-ref in libGoogleAdMobAds.a(GADDevice.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

解决方案

Where did you get the AdSupport.framework from? I now realize it's in your Documents directory.

Normally you should link the target from Xcode, by going in the target settings:

then Build phases > Link binary with libraries:

search for "AdSupport", it should be under iOS8.1:

the library should be there:

这篇关于的iOS模拟器连接器命令失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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