Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 3, 2009, 05:08 AM   #1
luksen
macrumors newbie
 
Join Date: Jun 2009
Remote Development using XCode locally

Hey there,

Is it possible to use the XCode IDE to code but have it compiled on a linux machine?

The current setup is as follows. The Linux machine has AFS installed, which I have on my mac as well, thus I see my linux home directory as a network drive. So, I ssh into the linux machine checkout the Code using subversion, add the checked out files to an XCode project, edit them there, but can't compile. I need to ssh back to the linux machine to compile the Code. Can this process be automated?

I think I read this was possible, at least with emacs, bit I would like to use the XCode IDE

cheers,

luksen
luksen is offline   0 Reply With Quote
Old Jul 3, 2009, 08:03 AM   #2
theunixgeek
macrumors newbie
 
Join Date: Jun 2008
I'm not sure I quite understand your situation, but have you considered writing a quick BASH script to make SSH'ing a bit quicker? As far as I can tell, you could also try to write a quick application in Automator, especially since it can record what you do (where you click, what you type, etc).
theunixgeek is offline   0 Reply With Quote
Old Jul 3, 2009, 09:27 AM   #3
luksen
Thread Starter
macrumors newbie
 
Join Date: Jun 2009
yes writing a bash script would probably work.. but I was wondering if one could still use XCode as a full IDE.. ie with debugging etc. and compile from within XCode (but have it somehow ssh to the linux machine and use its compiler)

as it is now xcode is just a more or less bloated text editor..

maybe this is just not possible?
luksen is offline   0 Reply With Quote
Old Jul 3, 2009, 10:00 AM   #4
Cromulent
macrumors 603
 
Cromulent's Avatar
 
Join Date: Oct 2006
Location: The Land of Hope and Glory
Quote:
Originally Posted by luksen View Post
maybe this is just not possible?
Not with Xcode.
__________________
Neural Advance - Mac OS X, UNIX and Windows Development
Last.fm Profile | Extreme Metal Reviews
MP 4x 2.66Ghz Xeons / 6GB RAM / 640GB + 500GB + 750GB + 1TB HDDs / ATI Radeon 4870 / iPad 3
Cromulent is online now   0 Reply With Quote
Old Jul 3, 2009, 10:07 AM   #5
luksen
Thread Starter
macrumors newbie
 
Join Date: Jun 2009
Ok thanks, that was what I was expecting...

So is there an IDE with which I could do that? Maybe Eclipse?
luksen is offline   0 Reply With Quote
Old Jul 3, 2009, 10:33 AM   #6
lee1210
macrumors 68040
 
lee1210's Avatar
 
Join Date: Jan 2005
Location: Dallas, TX
I would set the DISPLAY environment variable on the Linux machine to the IP and first display of your mac, then start X11.app on the mac, and run xhost + with the IP of the Linux machine. I would then run eclipse on the Linux machine, and it will display on the mac.

There may be a way to have the IDE run on the mac, but have it run all the supporting programs remotely, but it seems like it would be very involved.

-Lee
lee1210 is offline   0 Reply With Quote
Old Dec 14, 2010, 06:18 AM   #7
luksen
Thread Starter
macrumors newbie
 
Join Date: Jun 2009
update

I remembered recently that I posted this question here a long time ago and wanted to state how i solved the problem

I eventually added a shell script target that would do

ssh user@host "cd path/to/makefile;make"

this needs ssh keys to have passwordless access to the host but it has worked ever since. you do lose the debugging functionalities (but you loose this anyway when using makefiles) but at least you can build from xcode using command-Q
luksen is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Should I use Xcode or Eclipse for Android development? moonman239 Mac Programming 28 Jan 28, 2014 01:40 PM
Animation file formats compatible with Xcode iPad Development app2014 iPhone/iPad Programming 0 Jan 7, 2014 11:05 PM
Macbook Air for Xcode Development? jmatthew3 Buying Tips and Advice 1 Jan 8, 2013 04:03 PM
c++ xcode cross-platform game development Ultimatenero Mac Programming 3 Sep 8, 2012 04:19 PM
What Macbook should I buy? Computer science student and xcode development mbace Buying Tips and Advice 11 Jun 20, 2012 04:07 PM

Forum Jump

All times are GMT -5. The time now is 04:44 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC