Xcode 10.2 cannot compile Objective-C that includes a swift based framework

I have the problem that I want to update to Xcode 10.2 but I have the issue that the Objective-C code that imports a Swift based framework does not compile.

Same code with Xcode 10.1 this works fine.

Also in Swift code using this framework compiles fine.


Anybody an idea what I'm doing wrong?

To me it looks like that the '-Swift.h' from the framework is not properly imported.


I have also created an example project to verify this issue: https://ciqua.com/downloads/FrameworkTest.zip

Replies

Found the problem. In the -Swift.h the headers for the simulator are not included anymore.


see https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_release_notes#3141454


I use carthage for building the frameworks and this is fixed in the latest version:

https://github.com/Carthage/Carthage/releases/tag/0.33.0