Swift iOS Custom Framework Conflicts

杀马特。学长 韩版系。学妹 提交于 2019-12-12 06:27:46

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!