ModuleName-Swift.h file not found in xcode8

前端 未结 7 694
余生分开走
余生分开走 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 03:07

    I had similar issue and almost ended up spending a whole day figuring out the issue while following suggestions from fellow developers on StackOverflow and few other sources.

    I was upgrading from Xcode 7.3.1 to Xcode 8.2.1 and Swift 2.2 to Swift 3.0.1.
    In my case, I figured out the PROJECT_NAME-Swift.h file didn't get created at:

    ~/Library/Developer/Xcode/DerivedData/PRODUCT-NAME-hdkrxixrxbiorwesffpqvefxsrzl/Build/Intermediates/PRODUCT-NAME.build/Debug/PRODUCT-NAME.build/Objects-normal/x86_64/PRODUCT-NAME-Swift.h.

    I guess it somehow tries to refer to this header file from the above path and hence the error. I manually copied it. Didn't do clean build after this. This resolved my issue and the swift header file started getting created for further compilation and builds.

    0 讨论(0)
提交回复
热议问题