架构 i386 的未定义符号,为 iOS 构建?

2023-05-18移动开发问题
6

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

问题描述

限时送ChatGPT账号..

我已经下载了 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.

屏幕看起来像这样:

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

The End

相关推荐

硬件音量按钮更改应用程序音量
Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)...
2024-08-12 移动开发问题
10

Cocos2d - 如何检查不同层中对象之间的交集
Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)...
2024-08-12 移动开发问题
8

恢复游戏 cocos2d
Resume game cocos2d(恢复游戏 cocos2d)...
2024-08-12 移动开发问题
6

Cocos2D + 仅禁用 Retina iPad 图形
Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)...
2024-08-12 移动开发问题
10

如何将 32 位 PNG 转换为 RGB565?
How to convert 32 bit PNG to RGB565?(如何将 32 位 PNG 转换为 RGB565?)...
2024-08-12 移动开发问题
21

正确的 cocos2d 场景重启?
Proper cocos2d scene restart?(正确的 cocos2d 场景重启?)...
2024-08-12 移动开发问题
7