Xcode 8 with mixed Swift and Objective-c project generated “ModuleName-Swift.h” header not found

后端 未结 5 1572
醉话见心
醉话见心 2020-12-08 07:36

I have a project with mixed Swift and Objective-C in Xcode 8 that uses the generated \"ModuleName-Swift.h\" header file to import swift into Objective-c classes, but the pre

5条回答
  •  情书的邮戳
    2020-12-08 08:16

    Have this problem when we have multiple targets. If the Objective-c Generated Interface Header Name variable in Swift compiler of newly created targets is different than the original target's value. Change it to the same value with original target. See the following:

    change, newtargetname-Swift.h to originaltargetname-Swift.h for new target

提交回复
热议问题