Xcode 7.2.1 Breaks Swift & Objective-C Integration

I have an app that was originally built in Objective-C. I am running a proof-of-concept demonstrating how to load a page built in Swift in this app. When I built everything in Xcode 7.2 on Friday, it worked like a charm (after digging through the documentation and hitting a couple of SO pages to figure it out).


I installed 7.2.1 this morning, and now the app won't compile. "ChirpEEvent-Swift.h" can't be found. I double-checked by loading it back up in 7.2, and it works fine. But 7.2.1 breaks it somehow.


Any idea what could be happening?

I have a similar issue with Xcode 7.2.1. While my project still builds/runs as expected, I no longer get auto-completion, syntax highlighting, or ability to jump to definition for any symbol that is defined in Objective-C and used/referenced in Swift.


For example, many of my view controllers are written in Swift and Xcode autocompletes/highlights/jumps to their own functions/properties without issue. However, functions/properties inherited from the common base class (written in Objective-C and imported via bridging header) do not auto-complete and are not syntax highlighted/can't find any definition to jump to. Building/running still works and I haven't observed any other issues. Objective-C files seem to have no issue (recognizing both Objective-C symbols as well as Swift symbols imported from MyProject-Swift.h)


Interesting to note that the issue seems to go away when I clean the project. It only stops recognizing Objective-C symbols (inside Swift files) when I build/run the project and Xcode begins Indexing (which seems to take a bit longer than in 7.2, but completes without any other abnormality.)


The issue does not reproduce in Xcode 7.2. I'm using that as a workaround for now.

The same problem exists with Xcode 7.3.


Really, Apple?

I remember getting that message when I had a Swift-related error somewhere. It was preventing the "-Swift.h" file from being generated, but the error message you mentioned was being shown before the Swift coding error was shown. I don't think there were any syntax changes between 7.2 and 7.2.1 though, so not sure why that would have caused an error in your previously working code. You might need to do the Clean, Clean Build Folder, delete Derived Data sequence to see if you can get any Swift warnings or errors to show up when you open the code again.

Xcode 7.2.1 Breaks Swift & Objective-C Integration
 
 
Q