Reputation: 5661
I'm trying to git add
and commit
a Mac OS X executable application.
I know that in OS X applications are a folder with the extension .app
Git see this OS X executable as a folder so it adds a subfolder
/usr/local/git/bin/git add -u MyApp/dist/MyApp.app/Contents/Frameworks/QtCore.framework/Versions/4.0/QtCore
The problem is that encounter a symbolic link and it return error:
returned exit status 128: fatal: 'MyApp/dist/MyApp.app/Contents/Frameworks/QtCore.framework/Versions/4.0/QtCore' is beyond a symbolic link
How can I add it with git
?
Upvotes: 1
Views: 365
Reputation: 3822
Generally you don't want to be storing the application itself within your version control system. Your build process should be suitably consistent that so long as you have all of your source and config files under version control it's possible to regenerate any intermediate or executable files to be exactly the same in the future as they are in the present. See this question for more ideas of what should and shouldn't be stored in a VCS.
I believe in this instance the reason that your git add
is failing is because rather than copying the QT Frameworks into the application bundle, you're referencing them which results in a symbolic link being made to the system-wide copy of the framework on whatever machine the application is executed on. This is a good thing, as you don't want to have to have a separate copy of each major framework for every single application you have installed on your computer.
Upvotes: 1