我想创建一组文件.cpp和.hpp在xcode中。静态库C++与XCode
所有文件都在模拟器和没有库的设备中运行。
我创建了库,我已经在模拟器(体系结构x86)中运行它,运行得非常好。
当我试图运行与设备我得到一个错误,就像我会忘记任何文件库中的应用:
Undefined symbols for architecture armv7:
"ssm::partialSortGreater(int, std::__1::vector<float, std::__1::allocator<float> > const&, std::__1::vector<int, std::__1::allocator<int> >&)", referenced from:
但它在与同一文件的模拟器中运行,它的精神:小号
谢谢:)
更新:
BuildSettings: 库和App
更新2:
而且如果我归档应用程序和我一起iTunnes安装,工程!在设备:S非常怪异
向我们展示该库及其链接的应用程序的构建设置;特别是架构特定条目。 – Till
已更新@Till。谢谢 – xarly