Cannot debug Swift module/framework embedded in Objective-C app

后端 未结 11 1698
悲哀的现实
悲哀的现实 2021-02-01 02:57

Alternative titles (to aid searching)

  • Cannot debug Swift 2.3 framework linked to an Objective-C app in Xcode 8
  • error in auto-import: f
11条回答
  •  走了就别回头了
    2021-02-01 03:33

    I ran into this when building a framework with Carthage. Trying to debug would print the error, which referenced an Obj-C framework dependency.

    I found this blog post which suggested adding a the following user-defined build setting to my project:

    For Debug: REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES = NO

    For Release: REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES = YES

    This fixed the issue for me.

提交回复
热议问题