2017-05-25 89 views
1

喜队,我使用下面的吊舱文件在我的单一视图的应用程序项目OBJC_META_CLASS问题

source 'https://github.com/CocoaPods/Specs.git' 
platform :ios, '8.0' 

target 'projectbase' do 
# Uncomment this line if you're using Swift or would like to use dynamic frameworks 
# use_frameworks! 

# Pods for projectbase 

target 'projectbaseTests' do 
inherit! :search_paths 
pod 'AFNetworking' 
pod 'LGSideMenuController' 
pod 'SDWebImage' 
pod 'MBProgressHUD' 
end 

target 'projectbaseUITests' do 
inherit! :search_paths 
# Pods for testing 
end 

end 

但正如我在viewcontroller.hi使用“LGSideMenuController”我收到之后的元级的错误代码和屏幕错误的投篮

#import <UIKit/UIKit.h> 
#import <LGSideMenuController.h> 

@interface ViewController : LGSideMenuController 
@end 

enter image description here

编译与下面一行是OK

#import <LGSideMenuController.h> 

但为我所用发生

@interface ViewController : LGSideMenuController 

错误的任何一个可以帮我解决这个问题 版本的Xcode 8.3.2是

回答

0

请替换为以下荚文件码。

source 'https://github.com/CocoaPods/Specs.git' 
platform :ios, '8.0' 

target 'projectbase' do 
# Uncomment this line if you're using Swift or would like to use dynamic frameworks 
# use_frameworks! 

pod 'AFNetworking' 
pod 'LGSideMenuController' 
pod 'SDWebImage' 
pod 'MBProgressHUD' 

target 'projectbaseTests' do 
inherit! :search_paths 
end 

target 'projectbaseUITests' do 
inherit! :search_paths 
# Pods for testing 
end 

end 
+0

感谢您的回复。 –