Add #import <Foundation/Foundation.h> to generated source so it compiles without a prefix header in the project's build settings.