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

后端 未结 5 1560
醉话见心
醉话见心 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:10

    I had exactly the same issue. Found the solution after adding a new file aiming to only one target (by mistake) and noticing that it had no problem reading the Swift classes. So, if you have multiple targets, and since the migration you didn't have the need to build and run them, suggest you to do that.

提交回复
热议问题