简体   繁体   English

在iOS应用程序中链接框架时出错

[英]Error in linking framework in ios application

Hello I am having following error in ios project 您好我在ios项目中出现以下错误

ld: warning: ignoring file /Users/Documents/ios5 Examples/FlacPlayerUniversal/opt/iphone-4.3/lib/libFLAC++.a, missing required architecture i386 in file ld:警告:忽略文件/ Users / Documents / ios5示例/FlacPlayerUniversal/opt/iphone-4.3/lib/libFLAC++.a,文件中缺少必需的体系结构i386

I have searched some post related to this error but my issue is not resolved . 我搜索了一些与此错误有关的帖子,但我的问题仍未解决。 This error is coming when I am building project for iphone simulator and for device, it is not giving error. 当我为iPhone模拟器和设备构建项目时,将出现此错误,但没有给出错误。

I checked framework header path , header search path .Don't know how to solve this 我检查了框架标题路径,标题搜索路径。不知道如何解决这个问题

Please help 请帮忙

Thanks in Advance.. 提前致谢..

You've already built (or installed) libFLAC for the iPhone device. 您已经为iPhone设备构建了(或安装了) libFLAC

You simply need to build libFLAC for simulator as well. 您只需要为模拟器构建libFLAC

This question may tell you how to build for i386 , but I think it's for MacOS and not iPhone simulator. 这个问题可能会告诉您如何为i386进行构建 ,但是我认为它是针对MacOS而非iPhone模拟器的。 You'll need to make some tweaks to the CONFIG file. 您需要对CONFIG文件进行一些调整。 Here is another previously asked question which might have useful hints, it seems to point to a wiki for an open source app that uses libFLAC . 这是另一个先前提出的问题 ,可能有有用的提示,它似乎指向使用libFLAC开源应用程序的Wiki。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM