1

嗨团队我在我的单视图应用程序项目中使用以下 pod 文件

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”时,我得到了 Meta 类错误,下面是错误的代码和屏幕截图

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

@interface ViewController : LGSideMenuController
@end

在此处输入图像描述

使用以下行编译是可以的

#import <LGSideMenuController.h>

但正如我使用的

@interface ViewController : LGSideMenuController

发生了错误

谁能帮我解决这个问题 Xcode 版本是 8.3.2

4

1 回答 1

0

请用以下代码替换 pod 文件。

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
于 2017-05-25T13:10:23.510 回答