我有一个看起来像这样的podfile:
platform :ios, '6.0'
xcodeproj 'NetApp.xcodeproj'
pod 'AFNetworking'
pod 'TTTAttributedLabel'
pod '[x]'
决定从我的podfile中删除pod '[x]'
,然后我运行了pod install
和pod update
。但现在我收到以下警告:
SystemConfiguration framework not found in project, or not included in precompiled header. Network reachability functionality will not be available.
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.
我试图在Pods和我的Xcode-projplace
中手动添加框架。但它似乎不起作用,并且缺少一些功能。
我该如何解决这个问题?是否有可能以某种方式重新安装所有播客?
更新
似乎不是删除导致它的Pod。做过git revert
。但当我运行pod update
(更新AFNetworking
)时,警告又回来了。
答案 0 :(得分:5)
只需导入 PROJECTNAME-Prefix.pch
中的头文件#ifdef __OBJC__
...
#import <SystemConfiguration/SystemConfiguration.h>
#import <MobileCoreServices/MobileCoreServices.h>
#endif