简体   繁体   English

上传到Github时,出于安全目的,我应该从Xcode项目中删除任何内容吗?

[英]Are there any things I should remove from an Xcode project for security purposes when uploading to Github?

I've decided to upload all of my apps to Github, what should I consider when doing this? 我决定将我所有的应用程序上传到Github,这样做时我应该考虑什么? Thank you. 谢谢。

I'm making this community wiki so others can add to the list as needed. 我正在制作此社区Wiki,以便其他人可以根据需要添加到列表中。

As a general rule, never commit generated files. 通常,永远不要提交生成的文件。 Only commit files that are required to build the project. 仅提交构建项目所需的文件。

Don't add any private information such as keys, ids, or passwords that shouldn't be known to the public. 不要添加任何公众不应该知道的私人信息,例如密钥,ID或密码。

Don't add anything you are prohibited from making public. 不要添加禁止公开的任何内容。 This might apply if you have pictures, videos or other resources you have permission to use from another 3rd party. 如果您拥有其他第三方允许使用的图片,视频或其他资源,则可能适用。 They may not want you to share these resources. 他们可能不希望您共享这些资源。

Make sure all of your source files have desired copyright notices and add a LICENSE file to the root of the project. 确保所有源文件都具有所需的版权声明,并将LICENSE文件添加到项目的根目录。 Then people know what they are allowed to do with all of your code. 然后人们知道他们被允许对您的所有代码进行处理。

Assume lots of people will copy all of your hard work whether you want them to or not. 假设无论您是否愿意,很多人都会复制您的所有辛勤工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM