Adding validation to the generated swiftinterface #11
dcacenabes
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have discovered hidden in the Swift Bugs page a mention to a flag that validates the swiftinterface for a module after generating it added in Swift 5.4:
-verify-emitted-module-interface
"Swift 5.4 supports a -verify-emitted-module-interface flag which causes it to immediately typecheck .swiftinterface files after emitting them to verify that they are valid. You can add that flag to OTHER_SWIFT_FLAGS to make sure your interfaces are readable."
https://bugs.swift.org/browse/SR-14195
What do you think about including this flag as part of this plugin? For our use case this could be cool, because it would prevent our CI from deploying a new private XCFramework with a broken interface and then having to revert the publication.
On another hand, we are also using some other flags like: -Xfrontend -module-interface-preserve-types-as-written
Which are your thoughts about adding to the plugin the possibility of specify flags in general?
Beta Was this translation helpful? Give feedback.
All reactions