Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如何创建AppDelegate到第三方框架桥文件_Ios_Objective C_Swift3_Cocoapods_Appdelegate - Fatal编程技术网

Ios 如何创建AppDelegate到第三方框架桥文件

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

我有一个项目是用Objective C编写的,新功能是用Swift 3.1编写的 我的要求是访问AppDelegate.h文件中声明的变量。所以我在我的网桥文件中导入AppDelegate。现在我可以在Swift类文件中声明Appdelegate对象,也可以访问Appdelegate中声明的变量

问题是,将AppDelegate导入桥接文件后,AppDelegate.h文件中导入的框架中出现错误。“找不到文件” 如果我从桥文件中删除AppDelegate.h,它就可以正常工作

谢谢你的帮助

#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中