架构i386的未定义符号,适用于iOS? [英] Undefined symbols for architecture i386, building for iOS?

查看:82
本文介绍了架构i386的未定义符号,适用于iOS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已下载iProcessing框架(允许您为iPhone构建原生javascript应用程序),当我尝试编译时,我得到:

I have downloaded the iProcessing framework (lets you build native javascript apps for iPhone) and when I try to compile, I get:

Undefined symbols for architecture i386:
  "_ADBannerContentSizeIdentifier320x50", referenced from:
      -[TiUIiOSAdViewProxy SIZE_320x50] in TiUIiOSAdViewProxy.o
  "_ADBannerContentSizeIdentifier480x32", referenced from:
      -[TiUIiOSAdViewProxy SIZE_480x32] in TiUIiOSAdViewProxy.o
  "_OBJC_CLASS_$_ADBannerView", referenced from:
      objc-class-ref in TiUIiOSAdView.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status

这三个构建错误阻止了应用程序正确编译。有谁知道如何解决它们?

These three build errors are preventing the app from compiling properly. Does anyone have an idea how I can fix them?

其他信息:我是Obj-C的新手,你可以看到,我希望用这个框架作为跳板让我进入真正的iOS编程。

Other info: I'm new to Obj-C, as you can see, and I'm hoping to use this framework as a springboard to get me into real iOS programming.

推荐答案

确保在iAd框架中链接到项目。通过转到Xcode中的项目设置来完成此操作。然后选择您的目标,在右侧窗格中转到构建阶段。然后在Link Binary with Libraries部分点击+按钮添加更多框架。选择iAd.framework,然后单击添加,然后重建。

Make sure you link in the iAd framework to your project. Do this by going to your project settings in Xcode. Then select your target and in the right pane go to "Build Phases." Then in the "Link Binary with Libraries" section hit the "+" button to add more frameworks. Select iAd.framework click "Add" and then rebuild.

屏幕看起来像这样:

< img src =https://i.stack.imgur.com/tHso8.pngalt =在此处输入图像说明>

这篇关于架构i386的未定义符号,适用于iOS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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