Anyone ever tried to replace xcode with sublime2? I really dislike xcode coding in sublime2 would be so much nicer.
I gave it a quick go. It should be possible to have build via xcodebuild fairly easy for example if I run this on the command line in my app directory :
xcodebuild -configuration Debug -sdk macosx10.7
it compiles the app fine.
I can then go into sublime and put this into a build script it compiles the app in sublime2. (http://addyosmani.com/blog/custom-sublime-text-build-systems-for-popular-tools-and-languages/)
{
"cmd": ["xcodebuild"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${project_path:${folder}}",
"selector": "source.c, source.c++",
"variants":
[
{
"name": "Run",
"cmd": ["bash","-c", "${project_path:${folder}}/bin/$project_base_name.app/Contents/MacOS/$project_base_name" ]
}
]
}
I have this build script from here: http://forum.libcinder.org/topic/cinder-in-sublime-text-2#23286000001366165
but now I am stuck how to launch the app after the variant bit is not working, must be some path wrong?
Another amazing thing would be to use SublimeClang (https://github.com/quarnster/SublimeClang) to get autocompletions. I managed to include the lib directory of openframeworks but now get loads of errors in the sublime2 console
:0,0 - Fatal - too many errors emitted, stopping now [Disable with -ferror-limit=0]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:80,11 - Error - no member named 'memcpy' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:81,11 - Error - no member named 'memmove' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:82,11 - Error - no member named 'strcpy' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:83,11 - Error - no member named 'strncpy' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:84,11 - Error - no member named 'strcat' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:85,11 - Error - no member named 'strncat' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:86,11 - Error - no member named 'memcmp' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:87,11 - Error - no member named 'strcmp' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:88,11 - Error - no member named 'strcoll' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:89,11 - Error - no member named 'strncmp' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:90,11 - Error - no member named 'strxfrm' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:91,11 - Error - no member named 'strcspn' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:92,11 - Error - no member named 'strspn' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:93,11 - Error - no member named 'strtok' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:94,11 - Error - no member named 'memset' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:95,11 - Error - no member named 'strerror' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:96,11 - Error - no member named 'strlen' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:98,11 - Error - no member named 'memchr' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/cstring:102,12 - Error - no matching function for call to 'memchr'
anyway anyone interested in helping figuring this out? Seems like the solution is not too far away.
Tommi