Xcode 9 beta 3: segmentation fault 11 at compile time

Hi,
I've experienced an issue on building my project using XCode 9. Actually, I've reproduced this behaviour with all the betas (1, 2, and 3) of XCode 9, but all works perfectly using XCode 8.


The problem occures in projects with objective-c and swift code, where swift code interacts with objective-c code and viceversa.

Analyzing the problem, I've found that the compiler seems to have problems to identity the correct type of objective-c instances of classes compiant to swift protocol. In detail, I've used forward declaration to refere to the swift protocol from objective-c header file of the class.


I've also reproduced this issue in a little example attached at this thread.


How can I resolve that? Is this a kind of bug that will be resolved in future betas of XCode 9?


Thank you,
Giovanni


https://www.dropbox.com/s/v1ajxnu9gqmpzs4/Prova.zip?dl=0

Replies

Is this a kind of bug that will be resolved in future betas of XCode 9?


Filing a bug report will help getting it resolved. It's great you have a small sample showing the issue, please include that. Please also post the bug number here.

Thank you for the answser.

I've filed a bug report as you suggested me. The bug number is 33346143.

Thank you,

Giovanni