【问题标题】:AFNetworking/AFHTTPClient.h:88:10: - iosAFNetworking/AFHTTPClient.h:88:10: - ios
【发布时间】:2013-08-28 02:38:22
【问题描述】:
In file included from /Users/project/API.m:9:
In file included from /Users/project/API.h:9:
/Users/project/../AFNetworking/AFHTTPClient.h:88:10: warning: MobileCoreServices framework not found in project, or not included in precompiled header. Automatic MIME type detection when uploading files in multipart requests will not be available. [-W#warnings]
#warning MobileCoreServices framework not found in project, or not included in precompiled header. Automatic MIME type detection when uploading files in multipart requests will not be available.
  • 非常感谢任何帮助。

【问题讨论】:

  • 嗯...您添加了 MobileCoreServices 吗?
  • 添加MobileCoreServices是什么意思?我是IOS新手抱歉,我应该在哪里添加?

标签: ios warnings afnetworking afhttpclient


【解决方案1】:

从左窗格单击项目名称 -> 在右侧选择摘要 -> 单击“+”按钮 -> 添加“MobileCoresServices.Framework”

保存

清理一下

运行它

【讨论】:

【解决方案2】:

第 1 步 - 按照上面的答案重新链接 MobileCoreServices 框架。根据你的截图,你已经做到了

第 2 步 - 在 PCH(预编译头文件)文件中包含以下行。这个文件应该叫做 PROJECTNAME-Prefix.PCH

 #import <MobileCoreServices/UTCoreTypes.h>
 #import <MobileCoreServices/MobileCoreServices.h>

那你应该好好去!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-24
    • 1970-01-01
    相关资源
    最近更新 更多