git - What is the correct way to create a cocos2dx project using "create_project.py" and place it under version control, and access via Xcode? -


normally, when create project through xcode, receive option of having xcode place project under version control.

with cocos2dx, 1 creates project using "create_project.py" tool, created number of folders each platform (ios, osx, android, wp8 etc). when open xcodeproj in "ios" folder, works fine in xcode. can't work after adding version control. here did:

all these folders placed under root folder, name of project (lets call "stanly"

stanly     |->classes     |-> proj.ios     |-> proj.mac     |-> proj.android     .....     |->resources 

each of above "proj.

here tried:

i opened terminal under stanley, , ran following commands:

git init git add . git commit -m "initial commit" 

it appears files in every subfolder has been added version control.

in xcode, went "source control"-->"connect repository" , , pointed folder "init" repository. asked xcodeproj file open, , directory use. select "ios" , , choose new directory (not 1 python script created)

the problem is, create_project.py, creates kind of reference cocos2dx in xcodeproj file, not store files in same project directory! intact pointing @ cocos2dx project in folder 2 folders above "stanley" created. when open project through repository, "cocos2dx" xcodeproj file appears "missing" , project won't compile. problem not there if open proj.ios xcodeproj file directly (not connecting repository through xcode).

how fix ?

edit - if change path file stored, cocos2dx xcodeproj file no longer missing, other similar errors show up.

so correct way, create cocos2dx project create_project.py, place under version control, , able add / commit / revert etc xcode guy?

after creating git repository, xcode automatically detects it, there no need "connect" repository. can directly edit files / add / commit etc.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -