苹果密保问题多次错误Mach-O链接错误问题,怎么解决

19:43 提问
编译idoubs出错:Apple Mach-O Linker Error
Undefined symbols for architecture i386:
"_th_comment_clear", referenced from:
_encode_init in libavcodec.a(libtheoraenc.o)
"_th_comment_init", referenced from:
_encode_init in libavcodec.a(libtheoraenc.o)
"_th_encode_alloc", referenced from:
_encode_init in libavcodec.a(libtheoraenc.o)
"_th_encode_ctl", referenced from:
_submit_stats in libavcodec.a(libtheoraenc.o)
_get_stats in libavcodec.a(libtheoraenc.o)
_encode_init in libavcodec.a(libtheoraenc.o)
"_th_encode_flushheader", referenced from:
_encode_init in libavcodec.a(libtheoraenc.o)
"_th_encode_free", referenced from:
_encode_close in libavcodec.a(libtheoraenc.o)
"_th_encode_packetout", referenced from:
_encode_frame in libavcodec.a(libtheoraenc.o)
"_th_encode_ycbcr_in", referenced from:
_encode_frame in libavcodec.a(libtheoraenc.o)
"_th_info_clear", referenced from:
_encode_init in libavcodec.a(libtheoraenc.o)
"_th_info_init", referenced from:
_encode_init in libavcodec.a(libtheoraenc.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
以上是编译idoubs目标时候的错误,用的Xcode6.1,添加了一些框架,感觉不应该是缺少框架了吧,请各位大神们赐教啊!!!
按赞数排序
【libtheoraenc】跟这个名字相关得文件,是不是没放到程序里~编译的时候缺少文件了~先看看有没有引入,然后编译的配置里再看看有没有
其他相关推荐
其他相似问题3794人阅读
iOS(170)
关闭xcode文档,然后再打开xcode选择已经之前的项目,CMD+R发现出现不行,提示说Apple Mach-O Linker Error。
(2)解决办法
点击上面那个错误,发现有个提示说,SevenSwitch,这是我们之前使用cocoapods导入的第三方类库,给UISwitch做实验的,记得当时导入后说打开文件时需要打开后缀是.xcworkspace的那个文件,而不是我们之前的那个.xcodeproj文件。
猜测,可能是我们打开的文件不对。深入到存储目录中,直接打开那个.xcworkspace文件:
A:成功,CMD+R正常。
B:打开.xcodeproj文件果然出现那个错误。
(3)调整你打开的”姿势“
其实上面两个文件,出现错误的那个.xcodeproj文件是我们最早时候的文件,是个蓝颜色的文件;打开正确地那个.xcworkspace文件是我们导入第三方类库产生的文件,是一个白颜色的。
所以我们再看一看下面这个xcode启动界面,我们选择右边那个白色的hello项目文件,打开就是正确的,打开那个蓝色的hello项目文件就会出错误。
这可能是出现这种错误提示的一种情况,做个记录,遇到其他的再说。OVER。
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:421354次
积分:6865
积分:6865
排名:第3402名
原创:275篇
评论:40条
(15)(3)(8)(2)(1)(3)(2)(11)(20)(2)(3)(1)(9)(1)(1)(2)(22)(17)(18)(15)(55)(54)(6)(3)(2)iOS`Apple&Mach-O&Linker&Error&Group错误的解决方法
开始做项目,本人做二开,昨天刚拿到源代码,然后打开配置好就报错(44个),经昨天一天的调试加分析到底是哪出错结果我快绝望了<img TYPE="face" src="/blog7style/images/common/sg_trans.gif" real_src ="/uc/myshow/blog/misc/gif/E___6706EN00SIGG.gif"
ALT="iOS`Apple&Mach-O&Linker&Error&Group错误的解决方法"
TITLE="iOS`Apple&Mach-O&Linker&Error&Group错误的解决方法" />。
&今天早上来了继续干,然后终于终于发现了原来iOS项目中引入c++库,编译链接时报如下错:
& &"std::string::_Rep::_M_destroy(std::allocator
const&)", referenced from:
"std::_List_node_base::hook(std::_List_node_base*)", referenced
&"std::string::push_back(char)", referenced
&"std::string::append(char const*, unsigned
long)", referenced from:
"std::string::_Rep::_S_empty_rep_storage", referenced
&很明显,以上都是stdc++标准库函数。
首先检查Build Phases-&Link Binary With Libraries
也包含了libstdc++.dylib库
最终调试发现:libstdc++.dylib实际不是一个库,而是一个快捷方式。
实际使用时,可能出现找不到库的情况,也可能找得到,人品问题;
然后,解决方案里,直接把libstdc++.dylib换成libstdc++.6.0.9.dylib即可,但是我的项目里面并没有libstdc++.dylib这个库,所以直接添加了libstdc++.6.0.9.dylib就&Build
Succeeded~<img TYPE="face" src="/blog7style/images/common/sg_trans.gif" real_src ="/uc/myshow/blog/misc/gif/E___6708EN00SIGG.gif"
ALT="iOS`Apple&Mach-O&Linker&Error&Group错误的解决方法"
TITLE="iOS`Apple&Mach-O&Linker&Error&Group错误的解决方法" />
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

我要回帖

更多关于 苹果报告问题退款链接 的文章

 

随机推荐