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

后端 未结 12 1284
渐次进展
渐次进展 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 07:43

    Alternatively, you may have exposed files within the Public area of your framework's build phases that should actually be moved back to the Project area.

    If you don't want those files to be within your framework's umbrella header so they're publicly accessible, you can revert this.

    Goto Framework -> Target -> Build Phases and drag to move the unnecessary header files from Public to Project.

    Screenshot

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

    In my case (Obj-c framework):

    Umbrella header for module 'opus' does not include header 'opus_multistream.h'
    

    I needed to change:

    @import opus.opus_defines;
    

    into

    @import opus;
    

    (I don't have in #import "....h" or #import <....h> for frameworks)

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

    trying to fix a archive build error led me to this error and post

    my solution was real simple but took forever for me to figure out.

    • when i ran $ pod install it generated a workspace for me in the same dir as my .xcodeproj file.
    • however i had already created a workspace to use as its parent directory.
    • so then i simply deleted my old workspace and went with the one that pods created


    hope this helps someone! glhf!

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

    For me the fix was rather simple, commit all your changes and build again. The warning disappeared.

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

    We got this recently and it was due to corruption in DerivedData. Deleting that folder fixed the problem.

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

    Take a look at this post:

    @import vs #import - iOS 7

    It goes over the concepts of the new module importing. I had my own custom framework and after adopting the new method to import objective-c framework

    old: #import <MyFramework/MyFramework.h>

    new: @import MyFramework;

    it took care of the warning/

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