Undefined symbols for architecture arm64:
"_Decoder_Interface_init", referenced from:
DecodeAMRFileToWAVEFile(char const*, char const*) in amrFileCodec.o
"_Decoder_Interface_Decode", referenced from:
DecodeAMRFileToWAVEFile(char const*, char const*) in amrFileCodec.o
"_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
根據分析是因為,sdk7.1識別出插入的測試機為5s(64位)。在音頻轉化的時候原本的amrFileCodec.mm出錯。於是乎就是在用到不支持64位的開源程序的時候需要修改一下編譯選項,經測試可以改成如下
選 中Targets—>Build Settings—>Architectures。雙擊Architectures,選擇other,刪除$(ARCH_STANDARD) (點’-’),然后增加armv7和armv7s(點‘+’)。clean一下再編譯就行了。