umbrella header for module 'myFramework' does not include header 'otherFramework.h'

后端 未结 12 1287
渐次进展
渐次进展 2021-01-31 07:19

My Swift / iOS9 framework \'viewer_protocol\' uses another and external Objective-C framework (CocoaAsyncSocket). I\'m using Carthage to build CocoaAsyncSocket. So far everythin

相关标签:
12条回答
  • 2021-01-31 08:04

    Just for completeness if your header is set to public in :

    Build Phases > Headers

    You should either

    Include the import in your main header as others have mentioned

    OR

    Move that header to "private" if it doesn't need to be exposed

    0 讨论(0)
  • 2021-01-31 08:04

    For others : In my case I already move the headers I want to expose from my framework, from "project" to "public" (Build phases of the framework target)

    Then Xcode gave my this warning.

    Xcode is telling us that we also need to add #import "name of header in the warning> in the public header file that was created with framework, so the clients (of the framework) will know this header.

    So The Fix:
    1.go to the framework public header file.(the one what created by xcode when you created the framework) .
    2. add #import "the-name-of-the-header-in-the-warning.h"

    0 讨论(0)
  • 2021-01-31 08:06

    For me the solution was as follows:

    1) Each Objective C framework has 1 header file that contains all the:

    #import ...
    #import ...
    #import ...
    

    2) Make sure that this file imports the missing header.

    3) Build the project again, it should remove the warning.

    0 讨论(0)
  • 2021-01-31 08:07

    I had the same issue today

    Umbrella header for module 'HockeySDK' does not include header 'BITHockeyBaseViewController.h'

    and the solution was

    1.build and run project and go-to Report Navigator

    2.look at the warning, click to expand details

    it will so you the file name where you need to make change as you can seen in below screen shot

    So i just updated my import statement in AppDelegate.m file

    New

    #import "HockeySDK/HockeySDK.h"
    

    Old

    #import <HockeySDK/HockeySDK.h>
    

    and issue gone..

    hope this will help someone. who are coming here for solution.

    0 讨论(0)
  • 2021-01-31 08:07

    I had the same issue. Seemed to be related to old build files.

    The standard Xcode problem fixer worked for me:

    1. Clean project (Product > Clean Build Folder)
    2. Deleted derived data
    3. Restart Xcode
    0 讨论(0)
  • 2021-01-31 08:08

    I recently ran into same issue. Apparently I had header file set as public in target membership, but it was not exposed in umbrella header. Fixed issue by making header file with project access instead of public.

    0 讨论(0)
提交回复
热议问题