You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to locally sync an iPhone with OS X Mavericks? iCloud is NOT an option.

I read that OS X Mavericks will no longer allow me to use iTunes to sync my iPhone to a local system but makes iCloud mandatory? Is that correct?


iCloud is not a valid option for me since I have no control about my data there, I need to keep all my data (contacts, calendar...) on a system under my control and so far iTunes allowed me to do that which was one of the reasons I didn't even consider Android or Windows Phone.

OS X Mountain Lion (10.8.5)

Posted on Oct 20, 2013 8:54 AM

Reply
3,162 replies

Nov 8, 2013 12:12 PM in response to Matt Schultz

Hi Matt and everyone else,


I've tested the script below by removing a cancelled appointment in my iPhone Calendar and running the script. At the end the appointment had been removed from my Macbook Calendar so it seems to work OK but I'm not a programmer so use it at your own discretion and also it's not very pretty.


Copy and paste the script into Text Editor. Replace 'username' with your own login name and save the file as plain text. I called it SyncCal.txt.


In a terminal window change to the directory where you saved it and type chmod u+rwx SyncCal.txt. This makes it executable.


To run it, still in the terminal window, type ./SyncCal.txt and follow the prompts.


I had the Macbook Calendar open and watched for the cancelled appointment disappearing before answering the prompt 'Wait for sync to complete then press Y' just to be sure it had completed.


Remember it still puts a copy in the cloud but hopefully that copy is removed by Apple when you turn off iCloud sync. (Even though Apple seem to do this who knows what Microsoft and Amazon do with the data if it's true that Apple store it on their servers?)


I think in the end I may go for the OSX Server solution so that I can also sync my contacts, I can't put them in the cloud.


Good luck, hope you find it useful.


Chris.


__________________________________________________________




#Sync Procedure







echo ENSURE YOU HAVE AN UP_TO_DATE BACKUP!

echo

echo /Users/username/Library/Calendars.bak, if it exists, will be overwritten by this procedure, rename it if you want to keep it!

echo

echo /Users/username/Library/Calendars will be copied to /Users/username/Library/Calendars.bak.

echo

echo /Users/username/Library/Calendars will then be overwritten by your new synchronised Calendar.



#Change to correct directory

cd /Users/username/library

if [ "$?" = "0" ]; then

pwd

else

echo Cannot change directory!

exit 1

fi



#Copy “Calendars” directory to ../Calendars.bak



cp -Rf ./Calendars ./Calendars.bak



if [ "$?" = "0" ]; then

echo Calendar backup completed.

else

echo Cannot Backup Calendar!

exit 1

fi





#Prompt to turn on sync on iPhone and await confirmation



echo -n Turn on Calendar sync on your iPhone and press Y when done or any other key to quit

read input



case $input in

#Check for Y

Y ) echo You confirmed your iPhone is ready to sync;;



# Check for anything else

* ) echo You did not type a Y.

echo Ensure you have turned OFF Calendar sync on your iPhone, select RETAIN DATA LOCALLY.

echo Quitting.

exit 1;;

esac





#Prompt to turn on sync on Mac and await confirmation



echo -n Turn on Calendar sync on your Mac and press Y when done or any other key to quit

read input

case $input in

# Check for Y

Y ) echo You confirmed your Mac is ready to sync;;



# Check for anything else

* ) echo You did not type a Y.

echo Ensure you have turned OFF Calendar sync on your Mac.

echo Quitting.

exit 1;;

esac



#Leave time for sync to occur

echo -n Wait for sync to complete then press Y

read input







#Change to correct directory



cd /Users/username/library

if [ "$?" = "0" ]; then

pwd

else

echo Cannot change directory!

exit 1

fi



#Copy “Calendars” directory to ../Calendars.bak



cp -Rf ./Calendars ./Calendars.bak

if [ "$?" = "0" ]; then

echo Calendar backup completed.

else

echo Cannot backup Calendar, quitting!

exit 1

fi





#Prompt to turn off sync on Mac and await Confirmation



echo -n Turn OFF Calendar sync on your Mac and press Y when done.

read input

case $input in

# Check for Y

Y ) echo You confirmed your Mac sync is turned OFF;;



# Check for anything else

* ) echo You did not type a Y, quitting.

exit 1;;

esac



#Prompt to turn off sync on iPhone (retaining data locally) and await Confirmation



echo -n Turn OFF Calendar sync on your iPhone, selecting KEEP ON MY iPHONE and press Y when done.

read input

case $input in

# Check for Y

Y ) echo You confirmed your iPhone sync is turned OFF;;



# Check for anything else

* ) echo You did not type a Y, quitting.

exit 1;;

esac





#Copy “Calendars.bak” directory to ../Calendars



cp -Rf ./Calendars.bak ./Calendars

if [ "$?" = "0" ]; then

echo Local copy of Calendar completed.

else

echo Cannot make local copy of Calendar, quitting!

exit 1

fi



#Notify Completed and await acknowledgement



echo Procedure Complete.

echo Your iPhone and Mac Calendars should be in sync and a copy held in /Users/username/Library/Calendars.bak.

echo The iCloud copy should have been removed.

echo Press any key to Quit.

read input

#Close App

exit 0

Nov 8, 2013 12:48 PM in response to RobertRTillman

Success using Microsoft Exchange online to sync Outlook 2011 contacts and calendar with iPhone.


I realize that this solution does not solve the problem of exposing one's data to the cloud but is is the ONLY way I have found to easily sync Outlook with my iPhone. Syncing through iCloud is not an option for me as I have no easy way to get my data from Outlook to Apple Contacts and Calendar given the absence of sync services in OSX Mavericks.


After spending about an hour on the telephone with Microsoft tech support yesterday, I succeeded in syncing Outlook 2011 contacts and calendar with my iPhone.


1. I signed up for a Microsoft Exchange (OnMicrosoft) account for $4/month.


2. I enabled that Onmicrosoft exchange account in Microsoft Outlook 2011 and on my iPhone.


3. After I set up the Onmicrosoft exchange account, the following folders appeared at the left bottom of my screen : Inbox, Drafts, Sent Items, Deleted Items and Junk Email under an OnMicrosoft heading.


4. I tested the syncing of email by sending a test email from Office 365 online to my regular email address. It showed up in my email AND in the sent folder under the OnMicrosoft heading in Outlook 2011 on my Mac.


5. Under Calender, Contacts, Tasks and Notes in Outlook 2011, there appeared the OnMicrosoft heading in addition to the On My Computer heading. The Calender, Contacts, Tasks and Notes folders under the On My Computer Heading were duplicated under the OnMicrosoft heading. These headings also showed up on my iPhone. Nevertheless, these new folders were blank, i.e. they contained no information.


6. Finally, and this is the key step, I copied the information from my On My Computer address book and Calendar to the OnMicrosoft folders on Outlook 2011. Then I unchecked the On My Computer folders, preventing myself from seeing duplicate contacts and calendar events in Outlook 2011. I did not erase the information in the On My Computer folders, as I wanted to retain duplicate information in case there was a problem with Microsoft Exchange. One small point is that Contact Groups cannot be copied to the OnMicrosoft folders.


7. Shortly thereafter my contacts and calendars on Outlook 2011 started showing up on my iPhone. As I did with Outlook 2011, I checked only the OnMicrosoft exchange folders on my iPhone so that I would not see duplicate contacts and events. By the way, I have almost 10,000 contacts, so the initial sync took an hour or so. I did not eliminate the existing events and contact on my iPhone in the case that some problem developed with the Microsoft Exchange syncing.


8. I hope that this explanation helps those who care about getting sync between Outlook 2011 and the iPhone to work.

User uploaded fileUser uploaded file

Nov 8, 2013 12:51 PM in response to ChrisW£

That is a shell script so you want to add the 'shebang' on the first line - it tells the Terminal what interpreter to use making it 'portable' to other OS's (or other OS versions).

#!/usr/bin/env sh

should cover it for the 'bourne shell'.


Or

#!/usr/bin/env bash

if you have used bash syntax, the 'bourne-again shell'.


https://en.wikipedia.org/wiki/Shebang_(Unix)

http://www.cyberciti.biz/tips/finding-bash-perl-python-portably-using-env.html

Errors will indicate you picked the wrong one, the default OS X shell is usually bash.


Also having executable .txt files is a little messy (that is what the 'chmod u+rwx File' does). Change it to a .sh or .bash to indicate it is a shell script. Or you can give it a .command suffix to allow a double click in Finder to run automatically in a new Terminal window.


Once it has a .sh or .command suffix you can assign that filetype to open in a 'real code editor' (get http://www.barebones.com/products/textwrangler/ for free). The syntax coloring should help make things easier to see & edit or stick with TextEdit if it hurts your eyes 🙂. Line numbers will help debug errors.


Don't forget you are not backing up keychains, which is important if you use keychain syncing. They are inside ~/Library/Keychains.


You also should wrap all of the echo's in double quotes, otherwise the shell will not like the '!' The exclamation is a shortcut for a previous command in most shells, normally you pick the number of the command as shown in the 'history' list.

e.g. to run the 32 nd command

!32


e.g. change

echo Cannot change directory!

to

echo "Cannot change directory!"


Also your file paths should be quoted too

cd /Users/username/library

cd "/Users/username/library"

and the library needs an uppercase

cd "/Users/username/Library"


Also you can forgo the '/Users/username/' if you use ~/, however you cannot wrap paths in quotes if you use 'tilde expansion' ~ is tilde.

It would make the script work for people who have the home folder in other locations & you don't need to 'hard code' the username, tilde is the current users home, as is the variable "$HOME" (which can be wrapped in quotes).



I hope that isn't too overwhelming, do what works for you. Post back if you want something clarifying.

Nov 8, 2013 1:24 PM in response to Drew Reece

Hi, thanks for the info.


You obviously know far more about this than I do. Perhaps you should make the changes and post it back, you would do it far more quickly than I could.


What I have works for me so I probably won't spend any more time on it, I've lost enough already due to the change Apple made. I just posted it in case it could help anyone else until a better solution can be found.


Also, I did originally have quotes round the strings in the echo commands (I copied most of the sections from axamples in manuals on the net) but traced errors to some of those lines; my old Shell Programming Language book shows echo commands without quotes so I removed all the quotes and cleared the errors. Confusing or what?


Chris.

Nov 8, 2013 2:02 PM in response to Gerrit7

OK, folks. I've been using Mac OS X for a looong time and realy enjoyed this OS.

For the last few years, though, I have been afraid, sooner or later, it would happen...

Today I was going to install Maverics but had not known about the iCloud dictate.

I had read about that half an hour ago and have tried to confirm it since then.

It seems Apple did this final step.

I quit.

For now I am going to install Ubuntu on my Mac Book Pro and see how it's gonna perform.

My next laptop will not have any apple on it, though.

Also my iPhone4 is going to be available on eBay soon.


Happy iClouding!


Mike

Nov 8, 2013 2:24 PM in response to MikieMike.

MikieMike. wrote:



My next laptop will not have any apple on it, though.

Also my iPhone4 is going to be available on eBay soon.


Happy iClouding!


Mike

Goodbye. Gradually Apple is being used more and more by the sensible ones and less by impatient loooong time users (whatever that word means).


I am surviving fine with five Macs all using Mavericks, two iPhones and an iPad and have never used the cloud.Everything is in sync. 😁


Bye


Pete

Nov 8, 2013 2:48 PM in response to Michael Black

The support page Michael Black supplies :

see http://support.apple.com/kb/PH12117


says:


"Note: These instructions apply only if you use OS X v.10.8.5 or earlier. If you use OS X Mavericks v.10.9 or later, your contacts, calendars, and other info are updated on your computers and iOS devices via iCloud. For more information, see iCloud Help at icloud.com."


Well I use Google's calendar so the US authorities have full access to my movements already, but at least I have the choice. Contacts would be a bit of a pain as Google doesn't have them ... yet


It's removing the ability of users to choose where they store their data that gets me. Truly unacceptable.


Nov 8, 2013 3:17 PM in response to Matt Schultz

Matt Schultz wrote:


Wow. I don't know what's worse there, princess. The snotty little tone of your post or the fact you felt you had to return just to post it.


Get back on your meds, princess.

Yes and after all your polite and helpful input. Terrible, isn't it. 😉


You keep coming back also. Don't turn up to a battle of wits, unarmed, Princess (has a Capital 'P') 🙂


Cheers


Pete

How to locally sync an iPhone with OS X Mavericks? iCloud is NOT an option.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.