develop 1 project on 2 macs?

I have two macs at home. One in my bedroom which is my development mac and one in my living room which is an old mac i put to good use. i would like to occasionally sit in my living room and continue my work from there to avoid fatigue sitting at my desk all day. i have enabled source control using local git repo. how can i continue with my xcode project on my second mac which runs the same os x?

Replies

alright. got that part. and after that how do i push subsequent builds?


can i set it up such that each commit is automatically pushed?

When you commit changes in Xcode, a sheet opens that shows what changed and lets you enter a commit message. There's a checkbox at the bottom of the sheet. If you select the checkbox, Xcode will push the changes to the remote repository. That's the closest you'll get to automatically pushing commits.

Realizing this is old but I got this to work to create remote repository on my second mac. It also worked to pull changes. However when I attempt to push changes I get "The remote repository rejected commits." Any ideas?

This thread is old, but it still comes on top of search results, so I'd like to save you some headaches. Do not do these complicated repository things or suboptimal screen sharing.

Just set your Documents folder to sync with iCloud on both Macs. Then make sure that the Xcode project file is under the Documents folder structure so it is exactly the same on both Macs. I'm saying this, because when you already have content on the Documents folder and enable iCloud, Apple will create a subfolder under Documents called Documents - [your Mac's name]. Move your project out of that folder and place it under Documents in the same way your Xcode project was saved before enabling iCloud for Documents. This will preserve the file paths of all the files in your project.

Then simply open the project on the Mac you want to work on. Xcode would not see the difference.

Added notes: if you have frameworks, save them in the same way. If you want to update pods, make sure you have Cocoapods installed on both Macs.