Compiler Directive does not works inside Protocol


We are facing problem when compiling our swift code with Fire, where the compiler directive is not working correctly inside the Protocol.

Please find the 2 simplified version of projects, which contains the compiler directive #if ANDROID on the Protocol level and compile successfully, while contains the compiler directive inside the Protocol, and it failed to compile.

Cheng (34.8 KB) (34.0 KB)

Logged as bugs://E25377.

That’s a strange one indeed. definitely a bug.

bugs://E25377 was closed as fixed.