I\'m trying to work on a mixed Swift and ObjectiveC project with no luck.
My project is made of 6 targets:
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.