Ios 如何创建AppDelegate到第三方框架桥文件
我有一个项目是用Objective C编写的,新功能是用Swift 3.1编写的 我的要求是访问AppDelegate.h文件中声明的变量。所以我在我的网桥文件中导入AppDelegate。现在我可以在Swift类文件中声明Appdelegate对象,也可以访问Appdelegate中声明的变量 问题是,将AppDelegate导入桥接文件后,AppDelegate.h文件中导入的框架中出现错误。“找不到文件” 如果我从桥文件中删除AppDelegate.h,它就可以正常工作 谢谢你的帮助Ios 如何创建AppDelegate到第三方框架桥文件,ios,objective-c,swift3,cocoapods,appdelegate,Ios,Objective C,Swift3,Cocoapods,Appdelegate,我有一个项目是用Objective C编写的,新功能是用Swift 3.1编写的 我的要求是访问AppDelegate.h文件中声明的变量。所以我在我的网桥文件中导入AppDelegate。现在我可以在Swift类文件中声明Appdelegate对象,也可以访问Appdelegate中声明的变量 问题是,将AppDelegate导入桥接文件后,AppDelegate.h文件中导入的框架中出现错误。“找不到文件” 如果我从桥文件中删除AppDelegate.h,它就可以正常工作 谢谢你的帮助 #i
#import <UIKit/UIKit.h>
#import "DCPathButton.h" <- ERROR IN THIS FRAMEWORK
#import <CoreLocation/CoreLocation.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property NSInteger addUserFlag;
@property NSInteger addDeviceFlag;
@property NSInteger userProfileFlag;
@property NSInteger backToAddHomeFlag;
@property (strong, nonatomic) NSArray *loginResponseArray;
@property NSInteger AcFlag;
@property (strong,nonatomic) NSDictionary *FCM_Dict;
@property (strong,nonatomic) NSString *supportPhone;
@property (strong,nonatomic) NSString *FCM_Key;
@property DCPathButton *dcPathButtonInAppDelgt;
@property (strong,nonatomic) NSString *disableAddHomeBtn;
@property (strong,nonatomic) NSString *disableAddRoomBtn;
@property (strong,nonatomic) NSString *disableAddDeviceBtn;
@property (strong,nonatomic) NSString *disableAddUserBtn;
@property (strong,nonatomic) NSString *sideMenuFlag;
@property (nonatomic, strong) CLLocationManager *locationManager;
@property NSInteger homeOrAwayFlag;
@end
#导入
#导入“DCPathButton.h”将#导入“DCPathButton.h”
移动到AppDelegate.m中,并将其添加到.h:@class DCPathButton中代码>