您的位置:首页 > 移动开发 > Swift

Undefined symbols for architecture x86_64

2016-12-08 09:46 1661 查看
Undefined symbols for architecture x86_64:
"_Decoder_Interface_Decode", referenced from:
DecodeAMRFileToWAVEFile(char const*, char const*) in amrFileCodec.o
"_Decoder_Interface_exit", referenced from:
DecodeAMRFileToWAVEFile(char const*, char const*) in amrFileCodec.o
"_Decoder_Interface_init", referenced from:
DecodeAMRFileToWAVEFile(char const*, char const*) in amrFileCodec.o
"_Encoder_Interface_Encode", referenced from:
EncodeWAVEFileToAMRFile(char const*, char const*, int, int) in amrFileCodec.o
"_Encoder_Interface_exit", referenced from:
EncodeWAVEFileToAMRFile(char const*, char const*, int, int) in amrFileCodec.o
"_Encoder_Interface_init", referenced from:
EncodeWAVEFileToAMRFile(char const*, char const*, int, int) in amrFileCodec.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


* 选中Targets—>Build Settings—>Architectures。双击Architectures,选择other,删除$(ARCH_STANDARD)(点’-’),然后增加armv7和armv7s(点‘+’)。clean一下再编译就行了。*

转载自 https://my.oschina.net/asjoker/blog/634510
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  swift x86
相关文章推荐