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

后端 未结 12 1288
渐次进展
渐次进展 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

    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"

提交回复
热议问题