此篇文章將要引見A.networking報錯"_UTTypeCopyPreferredTagWithClass", referenced from: _AFContentTypeForPathExtens的相關引見,詳細實例請看下文
問題: 在和Unity交互的進程中,從Unity開發工具打包出來的項目文件,在添加A.networking庫,運轉時報出以下錯誤:
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(此框架定義一致類型標識符 (UTIs)運用的底層類型)
處理:Build Phase ->Link Binary With Libraries()下添加MobileCoreServices.framework。添加成功後運轉順序成功。
通本學習您是不是更理解IOS開發了呢.感激關注本站
【AFNetworking報錯"_UTTypeCopyPreferredTagWithClass", referenced from: _AFContentTypeForPathEx】的相關資料介紹到這裡,希望對您有所幫助! 提示:不會對讀者因本文所帶來的任何損失負責。如果您支持就請把本站添加至收藏夾哦!