line / rules_apple_line

LINE's Apple rules for Bazel
Apache License 2.0
207 stars 18 forks source link

Missing #import <Module/Module.h> file in generated Module-Swift.h #21

Closed tinder-maxwellelliott closed 4 years ago

tinder-maxwellelliott commented 4 years ago

Hello There!

I am seeing the following error when I am compiling a mixed framework target:

bazel-out/apl-ios_x86_64-fastbuild/bin/Projects/Module/Module/Module-Swift.h:223:9: fatal error: 'Module/Module.h' file not found
#import <Module/Module.h>

This is happening in the code generated -Swift header

When I search through my bazel-out directory I cannot find Module.h. What is the right way to go about debugging this issue

tinder-maxwellelliott commented 4 years ago

It appears running my bazel command without --incompatible_objc_compile_info_migration allows Module.h to be created as expected

thii commented 4 years ago

Ah yeah, I forgot to mention in the README but --incompatible_objc_compile_info_migration is required if you want to use the latest rules_apple and rules_swift.

tinder-maxwellelliott commented 4 years ago

I can update the readme to reflect this change