Fix build with BUILD_LIBRARY_FOR_DISTRIBUTION#82
Conversation
If open pods project and set `BUILD_LIBRARY_FOR_DISTRIBUTION = YES`, this framework not gonna compile. error will say ``` initializer for class 'CGAngle' is '@inlinable' and must delegate to another initializer ``` I was also surprised, but best guess is need to create `swiftinterface`, which has strict interface.
|
@NikolayJuly Thanks for the PR! I am using I think ABI / Module stability is not essential here because we can always rebuild it since we have all source code. If you have any specific reason to set BUILD_LIBRARY_FOR_DISTRIBUTION to yes, just let me know. |
|
@guoyingtao I understand why people use
Taking into account all of this, please remove inline or provide numerical proof, that at least internal usage of this inits with |
|
@guoyingtao If there is numeric proof of at least internal speed up, would it make sense to create 2 more inits for internal usage and make them |
guoyingtao
left a comment
There was a problem hiding this comment.
@NikolayJuly I didn't make any test for it but I think you are right. Thanks for pointing it out.
|
Thank you 🙇 |
|
I released Mantis 1.4.9. Can you check if it solves the issue? |
|
@guoyingtao I checked and it works for me now. Thank you |
If open pods project and set
BUILD_LIBRARY_FOR_DISTRIBUTION = YES, this framework not gonna compile. error will sayI was also surprised, but best guess is need to create
swiftinterfacein this mode, which has strict interface.