I ran into the same problem and eventually fixed it by adding my project headers into the umbrella header. When you create a new framework it should start with a single .h file titled by the project (in your case DirectProximityFramework.h).
Inside this file is a comment:
In this header, you should import all the public headers of your framework using statements like #import <DirectProximityFramework/PublicHeader.h>
So just add your GeofencingHelper.h file in this file:
#import <DirectProximityFramework/GeofencingHelper.h>
This should remove all of your warnings!
上面摘自stackoverflow,大致意思是说,你引用了某个SDK中的头文件,但是这个头文件并没有被你#import
导入,所以找不到,你只需要在你定义的全局pch文件,或者直接像这样引入即可。
pch 文件
// Database
#import <UPBase/UPDatabase.h>
warning: no umbrella header found for target 'UPHKTradeSDK', module map will not be generated
// 这个警告是因为删除了创建SDK时的同名头文件导致的,给SDK添加同名头文件即可比如'SDKit.h'
warning: no umbrella header found for target 'UPHKTradeSDK', module map will not be generated
网友评论