美文网首页
制作Framework中的警告“Missing Submodul

制作Framework中的警告“Missing Submodul

作者: 迷路的安然和无恙 | 来源:发表于2017-07-03 11:00 被阅读2766次
    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
    

    相关文章

      网友评论

          本文标题:制作Framework中的警告“Missing Submodul

          本文链接:https://www.haomeiwen.com/subject/clyacxtx.html