问题
I made a custom iOS Swift framework with some simple form validation methods and some tests. I open-sourced it to Github.
What if another developer uses my framework for their app but changes the method names? Could that potentially crash my app? I mean, one framework is shared between multiple apps, right?
回答1:
If I understand what you're asking, only people with pull access will be able to change your framework.
If someone changes it, you then download the framework with the new changes and replace it within your app, yes it will break. Otherwise if they fork the project, or you never add the changed framework to your app, nothing will change.
The Framework you use in Xcode is a copy of the framework, it's not a reference to what exists on github.
来源:https://stackoverflow.com/questions/36094661/swift-ios-custom-framework-conflicts