构建XMLRPC.framework:错误的体系结构? [英] Building XMLRPC.framework: Wrong Architecture?

查看:73
本文介绍了构建XMLRPC.framework:错误的体系结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我又遇到了iOS问题.我终于设法建立了这个XML-RPC框架的主分支 https://github.com/eczarny/xmlrpc 为我生成了XMLRPC.framework.我设法将这个框架包含在我的iOS项目中,一切都很好,但是当我构建它时...

it's me again with my iOS trouble. I've finally managed to build the master branch of this XML-RPC framework https://github.com/eczarny/xmlrpc which produced an XMLRPC.framework for me. I managed to include that framework in my iOS project, all good, but when I build it...

ld: warning: ignoring file /Users/kovshenin/Library/Developer/Xcode/DerivedData/XMLRPC-emidbddzjlofthfgowywcfscewgd/Build/Products/Development/XMLRPC.framework/XMLRPC, 
file was built for unsupported file format which is not the architecture being linked (i386)

因此,我回到了XMLRPC项目,并尝试为目标选择不同的基本SDK和体系结构,但是没有运气,似乎它只是为64位Intel构建的.甚至尝试了iOS SDK,该SDK给了我一个所选的运行目标对该操作无效".错误.

So I went back to the XMLRPC project and tried to select different Base SDKs and Architectures for the target, but with no luck, seems like it's only building it for 64-bit Intel. Even tried the iOS SDK which gives me a "The selected run destination is not valid for this action." error.

再次抱歉我的"newbish"演讲,但官方的dev论坛似乎无法帮助我.谢谢!

Sorry again for my "newbish" talk, but the official dev forums can't seem to help me out. Thanks!

P.S.我正在使用Xcode 4.

P.S. I'm using Xcode 4.

推荐答案

体系结构与您要在其上运行代码的处理器有关.如果要构建模拟器,那么就构建Mac,这是Intel i386.如果要为物理iOS设备构建,则要为arm6或arm7构建,这取决于设备的更新程度.第四代iPhone 4和iPad是第一批arm7设备.

Architecture is related to the processor on which you are running your code. If you are building for the simulator, then you are building for your Mac, which is Intel, i386. If you are building for a physical iOS device, then you are building for arm6 or arm7, depending on how new the devices are. Fourth generation iPhone 4 and iPad were the first arm7 devices.

就设置构建设置而言,我建议您看一下构建设置.在Xcode中.这是屏幕截图:

As far as setting the build settings, I'd recommend taking a look at the build settings. In Xcode. Here's a screenshot:

单击您的项目,然后单击您的构建.在体系结构部分下,您可以根据需要配置体系结构. 不过,您应该注意,原始开发人员必须为模拟器和设备都构建了它,否则您将无法在模拟器上运行它.

Click on your project, then on your build. Under the architectures section, you can configure your architectures as necessary. You should note though, that the original developer would have to have built it for the simulator as well as the device, or you won't be able to run it on the simulator.

这篇关于构建XMLRPC.framework:错误的体系结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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