- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我为自己的内部使用构建了自己的 pod。 pod spec lint 工作正常,但当我尝试实际使用它时,它给了我以下编译错误:
Undefined symbols for architecture armv7:
"___gxx_personality_sj0", referenced from:
_GetConvertedData in libPods.a(ExtAudioFileConvert.o)
"vtable for __cxxabiv1::__class_type_info", referenced from:
typeinfo for CAXException in libPods.a(ExtAudioFileConvert.o)
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"std::__throw_bad_alloc()", referenced from:
std::_Vector_base<AudioBufferList*, std::allocator<AudioBufferList*> >::_M_allocate(unsigned long) in libPods.a(ExtAudioFileConvert.o)
"CAStreamBasicDescription::CAStreamBasicDescription()", referenced from:
_GetConvertedData in libPods.a(ExtAudioFileConvert.o)
"___cxa_allocate_exception", referenced from:
_GetConvertedData in libPods.a(ExtAudioFileConvert.o)
"___cxa_throw", referenced from:
_GetConvertedData in libPods.a(ExtAudioFileConvert.o)
"operator new[](unsigned long)", referenced from:
_GetConvertedData in libPods.a(ExtAudioFileConvert.o)
"___cxa_begin_catch", referenced from:
_GetConvertedData in libPods.a(ExtAudioFileConvert.o)
"operator new(unsigned long)", referenced from:
_GetConvertedData in libPods.a(ExtAudioFileConvert.o)
std::_Vector_base<AudioBufferList*, std::allocator<AudioBufferList*> >::_M_allocate(unsigned long) in libPods.a(ExtAudioFileConvert.o)
"std::__throw_length_error(char const*)", referenced from:
std::vector<AudioBufferList*, std::allocator<AudioBufferList*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<AudioBufferList**, std::vector<AudioBufferList*, std::allocator<AudioBufferList*> > >, AudioBufferList* const&) in libPods.a(ExtAudioFileConvert.o)
"___cxa_free_exception", referenced from:
_GetConvertedData in libPods.a(ExtAudioFileConvert.o)
"_OBJC_CLASS_$_MPMusicPlayerController", referenced from:
objc-class-ref in libPods.a(AudioManager.o)
"___cxa_end_catch", referenced from:
_GetConvertedData in libPods.a(ExtAudioFileConvert.o)
"std::terminate()", referenced from:
_GetConvertedData in libPods.a(ExtAudioFileConvert.o)
"operator delete(void*)", referenced from:
_GetConvertedData in libPods.a(ExtAudioFileConvert.o)
std::vector<AudioBufferList*, std::allocator<AudioBufferList*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<AudioBufferList**, std::vector<AudioBufferList*, std::allocator<AudioBufferList*> > >, AudioBufferList* const&) in libPods.a(ExtAudioFileConvert.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我怀疑 podspec 中的框架设置不正确,因为这是我编写的第一个 pod,我可能在那里有一些错误。
提前致谢。
最佳答案
正式回答我发布的问题。我需要执行以下操作来修复它:
s.library = 'stdc++'
添加到 podspecs.frameworks = 'MediaPlayer'
添加到 podspec关于ios - 使用自定义 cocoapod 会出现编译错误(架构 armv7 的 undefined symbol :),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18451740/
我只是有一个更琐碎的问题。 为什么undefined == undefined 返回true,而undefined >= undefined 为false? undefined 等于 undefine
用PHP 7.2编写套接字服务器。根据Firefox 60中的“网络”选项卡,服务器的一些HTTP响应的第一行随机变为undefined undefined undefined。因此,我尝试记录套接字
在 JavaScript 中这是真的: undefined == undefined 但这是错误的: undefined <= undefined 起初我以为<=运算符包含第一个,但我猜它试图将其转换
在回答这个问题 (Difference between [Object, Object] and Array(2)) 时,我在 JavaScript 数组中遇到了一些我以前不知道的东西(具有讽刺意味的
来自https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/of , Note: thi
我正在运行 PHP 脚本并继续收到如下错误: Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php
我正在运行 PHP 脚本并继续收到如下错误: Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php
当我添加 到我的 PrimeFaces Mobile 页面,然后我在服务器日志中收到以下警告 WARNING: JSF1064: Unable to find or serve resource, u
我正在运行 PHP 脚本并继续收到如下错误: Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php
我正在运行 PHP 脚本并继续收到如下错误: Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php
我正在运行 PHP 脚本并继续收到如下错误: Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php
我正在运行 PHP 脚本并继续收到如下错误: Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php
我正在运行 PHP 脚本并继续收到如下错误: Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php
我正在运行 PHP 脚本并继续收到如下错误: Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php
我正在运行 PHP 脚本并继续收到如下错误: Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php
我正在运行 PHP 脚本并继续收到如下错误: Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php
我正在运行 PHP 脚本并继续收到如下错误: Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php
我正在运行 PHP 脚本并继续收到如下错误: Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php
我正在运行 PHP 脚本并继续收到如下错误: Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php
我正在运行 PHP 脚本并继续收到如下错误: Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php
我是一名优秀的程序员,十分优秀!