Broken generated header

I’m building an iOS static library in Silver and using the option to generate a public header file. The problem is that the generated header is broken when I import it on XCode, with errors like this:

Is there something wrong I’m doing here?

Thanks

1 Like

looks like there’s a spacing issue with _nonnull. we’ll have a look. if you could send me your project as a test case that’d help.

Thanks, logged as bugs://76025

I’ve fixed the spacing, but it doesn’t explain all the issues, because

- foo:(NSString *_Nonnull)s
{

}

builds for me, even w/o the space. I’d appreciate the full project so i can test this with your concrete case. Also, what version of Xcode are you using? I’m assuming 7 or later? non-nullable support in ObjC is fairly new.

Thanks for looking into it, I’ve sent you the project on a private message.
The version of XCode I`m using is 7.3 so there’s nullable support in ObjC.

1 Like

Reproduced 3 remaining problems:

(a) some Swift/Element type names need to be mapped back to Obj-C names, such as AnyObject -> id, but aren’t.
(b) value types cant get non-null markers
© some reference types are missing “nullable” markers, casing warnings.

will try to get these fixed soon.

1 Like

Thanks! :slight_smile:

bugs://76025 got closed with status fixed.

Logged as bugs://i63955.

bugs://i63955 was closed as fixed.