unity3d匯出xcode專案使用afnetworking 3框架導致_kUTTagClassMIMEType 問題解決方案
unity3d匯出xcode專案使用afnetworking 3框架導致如下問題出現:
Undefined symbols for architecture armv7:
"_kUTTagClassMIMEType", referenced from:
-[AFStreamingMultipartFormData appendPartWithFileURL:name:error:] in AFURLRequestSerialization.o
"_kUTTagClassFilenameExtension", referenced from:
-[AFStreamingMultipartFormData appendPartWithFileURL:name:error:] in AFURLRequestSerialization.o
"_UTTypeCreatePreferredIdentifierForTag", referenced from:
-[AFStreamingMultipartFormData appendPartWithFileURL:name:error:] in AFURLRequestSerialization.o
"_UTTypeCopyPreferredTagWithClass", referenced from:
-[AFStreamingMultipartFormData appendPartWithFileURL:name:error:] in AFURLRequestSerialization.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解決過程:
這是缺少MobileCoreServices.framework導致
引入MobileCoreServices.framework即可
-------------------------------------------------------------
參考連結:
http://blog.csdn.net/wsk_123_123/article/details/17301355
(雖然是不同的框架,但都是一樣的問題引起)