Undefined symbols for architecture armv7: "std::basic_string 类型错误

导入一个静态库的时候,发现一系列错误

Undefined symbols for architecture armv7:

"std::string::resize(unsigned long, char)", referenced from:

类似这样的  最后在网上找了好多文章  有这篇

http://stackoverflow.com/questions/12968369/undefined-symbols-for-architecture-armv7-when-using-zxing-library-in-xcode-4-5

有这篇:

http://blog.csdn.net/kaizi318/article/details/10362673

两篇参考着 这样解决了:

添加libstdc++.dylib这个库 没有解决问题。苦闷了几个小时。最后在这个文件上点击右键finder里显示的时候 发现它是一个库的替身。将这个替身:libstdc++.6.0.9.dylib加入进去。问题解决。

时间: 2024-10-10 14:01:05

Undefined symbols for architecture armv7: "std::basic_string 类型错误的相关文章

iOS出现 Undefined symbols for architecture armv7 std::basic_string<char, std::char_traits<char>

Undefined symbols for architecture i386: “_OBJC_CLASS_$_XXX”, referenced from: objc-class-ref in XXX ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) 如果真机调试就是 undefined symb

xcode编译出错:Undefined symbols for architecture armv7

在xcode中编译oc和c++代码时出现如下错误: Undefined symbols for architecture armv7 "std::basic_ostream<char, std::char_traits<char> >& std::operator<<<char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<

Undefined symbols for architecture armv7

This problem has been driving me crazy, and i can't work out how to fix it... Undefined symbols for architecture armv7: "_deflateEnd", referenced from: -[ASIDataCompressor closeStream] in ASIDataCompressor.o "_OBJC_CLASS_$_ASIDataDecompress

Undefined symbols for architecture armv7错误解决方法

Undefined symbols for architecture armv7: "_OBJC_CLASS_$_BriefMainModel", referenced from: objc-class-ref in BriefMainViewController.o "_OBJC_CLASS_$_DDXMLDocument", referenced from: objc-class-ref in BriefDetailViewController.o objc-c

iOS工程集成支付宝错误Undefined symbols for architecture armv7

问题描述: 新工程中需要集成支付宝功能,于是咱就把支付宝的库给集成了进入然后就出现了下面这种错误了说,错误信息如下: Undefined symbols for architecture armv7: "CreateRSADataVerifier(NSString*)", referenced from: -[AppDelegate parseURL:application:] in AppDelegate.o ld: symbol(s) not found for architect

cocoapods Undefined symbols for architecture armv7: referenced from:

开开心心的从网上导个库,提示 很伤心有没有,到这个下面 点+号加库,看看有没有这种 把带libPods的加进去就ok 了

iOS导入高德地图出现缺失armv7--&quot;Undefined symbols for architecture armv7&quot;

在已有项目中使用pod导入高德地图,报了以下错误: ld: warning: directory not found for option '-L/Users/paul/iOS/yun-hui-yi/libs/Release-iphoneos' Undefined symbols for architecture armv7: "_OBJC_CLASS_$_MAMapView", referenced from: objc-class-ref in SingleLocationView

Undefined symbols for architecture x86_64: ( linker command failed with exit code 1)

当出现  linker command failed with exit code 1 (use -v to see invocation) 的错误总结,具体内容如下: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_AppDelegate", referenced from: objc-class-ref in main.o ld: symbol(s) not found for architecture x86_6

Xcode编译Undefined symbols for architecture xxx 错误总结

每次遇到这种错误就头痛,不知道要害死多少脑细胞了,就在这里做个总结吧 可能会遇到这几种错误:Undefined symbols for architecture armv7Undefined symbols for architecture armv7sUndefined symbols for architecture arm64Undefined symbols for architecture i386Undefined symbols for architecture x86_64 错误