我有一个 Objective C 项目,它有一个像这样的 podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target 'Linbik' do
pod 'AFNetworking', '~> 2.6.0'
pod 'DateTools', '~> 1.6.1'
pod 'Sentry', :git => 'https://github.com/getsentry/sentry-swift.git', :tag => '2.1.3'
end
DateTools
是一个Objective C库,并且Sentry
是一个Swift库。如果我删除Sentry
pod 和use_frameworks!
line,然后运行pod install
,则 pod 会正确安装并且项目构建得很好。
但是,如果我pod install
使用上面的 podfile运行,则 pod 已正确安装,但我无法构建项目。它给了我这样的错误:
'NSDate+DateTools.h' file not found with <angled> include; use "quotes" instead
导入是这样完成的:
#import <NSDate+DateTools.h>
这只是给我一个错误的代码的一部分。还有一些像这样的进口:
#import <AFNetworking/UIImageView+AFNetworking.h>
这给出了同样的错误。
Xcode建议我在导入时使用双引号,但这无济于事。我能做什么?
我通过删除派生数据找到了解决方案。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句