我正在尝试使用 UIImagePickerController
,但我需要包含 MobileCoreServices
框架才能这样做。
我已将导入语句放入我的 ViewController.h 文件中:
#import <MobileCoreServices/MobileCoreServices.h>
但是我得到一个错误:
"Could not build module MobileCoreServices.h".
我也已经在项目构建短语中链接了 MobileCoreServices
框架,我在 frameworks 文件夹的边栏上看到了它,但它仍然给我一个错误。
有人知道解决办法吗?
最佳答案
没关系大家!
此问题已由另一个 SO 用户在另一个线程上解决:
Could not build module 'UIKit" in cocoapods since Xcode 5.1
转到您的 DerivedData 目录并删除 ModuleCache 目录。
在终端中:
cd ~/Library/Developer/Xcode/DerivedData
rm -rf ModuleCache/
保持此线程处于事件状态,以防将来其他人遇到此问题。
谢谢!
关于objective-c - 导入框架时 Xcode "Could Not Build Module MobileCoreServices.h",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26707252/