ModuleName-Swift.h file not found in xcode8

前端 未结 7 751
余生分开走
余生分开走 2020-12-05 02:39

I\'m trying to work on a mixed Swift and ObjectiveC project with no luck.

My project is made of 6 targets:

  • App
  • Core
  • CoreTest
7条回答
  •  星月不相逢
    2020-12-05 02:59

    In my case, I have a workspace with an iOS app subproject, a framework subproject, and a CocoaPods Pods subproject. The "ModuleName-Swift.h file not found" error occurred in my framework subproject because the file hadn't yet been created by the Pods subproject.

    I'm not sure if there's a way to tell Xcode about dependencies between subprojects, but I simply re-ordered them in the left-side Project Navigator:

    1. Pods
    2. framework
    3. iOS app

    Worked great after that!

提交回复
热议问题