Hi,
I set up my project , removed the cocos2d-x folder and replaced it with a symbolic link.
All was well with the world.
I had this set up on my iMax and Macbook.
Then something strange happened on the macBook which caused me to lose all of my projects.
not a problem!
Cloned the repo from by repository (at bitBucket)
Deleted and recreated the symbolic link
when I opened XCode I had to add my game project to source control (which seemed a bit strange to me, but there you go)
Now it all looks fine except the cocos2d_libs.xcodeproj and all the files beneath that (with the exception of the Products folder) have a’?’ by them - indicating they’re not in source control.
which is true - they’re not - and I don’t want them to be!
But if I leave it in this state, it takes ages to go into the ‘commit’ screen as it loads in all the unversioned files.
I can’t see what the difference is between the laptop and desktop versions of my project…
Maybe you’re ignoring the folder on the original (iMac?).
Regardless if your project is working correctly you should be able to ignore the /cocos2d/ folder. The only issue there would be if you want to keep tracking a specific version of the cocos2d engine, say 3.7, but then you decide or want update your main symlinked cocos2d engine to 3.8rc0, for example. So you should decide how you want to version the core engine alongside your project.
Assuming you’re using git (if mecurial it should be similar).
Check if you have a .gitignore file in the root directory.
If not you can create one.
Add ‘cocos2d/’ or whatever root-relative path or file you want to ignore as a new line in the .gitignore file.
You can read up on gitignore, but you can put in wildcards as well.
Again, backup your project first.
Also, remember you won’t have the engine saved in the project repo.
(Some people use a submodule for the cocos2d engine, but then you’re still checking out a copy for each project.)
On the desktop I do not have an entry in .gitignore to ignore the cocos project
and I have the same .gitIgnore on both machines.
Somehow XCode on the desktop manages to still ignore the cocos symbolic link!
I don’t recall doing anything unusual when I set it up (I set it up on the desktop first) - it originally had the cocos folder included in the folder structure, I deleted the folder and replaced with a symbolic link - that’s all I recall doing!
I’m sure I can apply a .gitignore rule to ignore on both machines - but I just wonder how it manages to handle it OK on the desktop?!
im prob not much use beyond that. If Xcode shows them as untracked they aren’t being ignored. Check git status on the command line and if the large list of those files comes up it proves it’s not an Xcode bug. You may also need to un track and remove the cocos2d folder from the repository. if you got clone into a new folder what exists in the fresh clone? If there is no cocos2d folder that’s good and means you just need to add to the gitignore. If the folder exists upon fresh clone then you’ll need to remove and untracked it in the repo.