How to hide API keys in GitHub for iOS (SWIFT) projects?

后端 未结 2 432
生来不讨喜
生来不讨喜 2021-01-31 09:29

Hello I\'m trying to publish a iOS (SWIFT) personal project in GitHub but I\'m afraid of sharing my private API keys and secrets with everybody.

I\'m using parse so I ha

2条回答
  •  梦如初夏
    2021-01-31 10:32

    Put them in a configuration file that you add to the .gitignore file. Check in a sample configuration file that every developer can use to create their own configuration.

提交回复
热议问题