Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I put the Ionic Platforms folder into source control?

I am building an mobile App using Ionic Framework, and I had added ios and android platforms. I need to regularly update the ios xcode project so I think I should put the platforms folder into git source control. But after I added them, I found many issues occur with the Git, path too long, etc.

But if I don't add platforms folder into Git source control, then there will be risks if I re-add the platform I need to update all the information again inside XCode.

How do you guys manage

like image 493
Jeff Tian Avatar asked May 14 '15 08:05

Jeff Tian


Video Answer


1 Answers

Final Solution:

  • Not to put the platform folder into Git Source control because it will make the source very big and will cause some errors such as Path too long.

  • Configure the config.xml file under the Ionic app root folder so that the XCode project will be updated automatically. For example:

Specially notice the id, version, name, description, etc., configuration values. With these configured, you don't need to update XCode project manually any more.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <widget id="com.diankeda.huaquanquan" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>画圈圈</name> <description> 美丽改变生活。 </description> ...

like image 58
Jeff Tian Avatar answered Oct 04 '22 18:10

Jeff Tian