2016-04-11, 15:46
To stop itunes starting by itself, try the following (a search will tell you more about each one):
http://www.thebitguru.com/projects/iTunesPatch or
launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist
Check no iphones etc are set to sync automatically
Checking the audio cable is not loose - try another one
Switch to HDMI output or optical for audio
Candleair
Leave itunes on "itunes store" or similar
EDIT - 2 more to try from below
Also try unticking "launch kodi with remote"
Then also try adding a 2 second delay before launching kodi (you can test this by launching manually a few times)
In terms of the Harmony remote not working when kodi first starts - try a 2 second delay (applescript or similar) before kodi is launched and uncheck "allow start of kodi using the remote")
http://www.thebitguru.com/projects/iTunesPatch or
launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist
Check no iphones etc are set to sync automatically
Checking the audio cable is not loose - try another one
Switch to HDMI output or optical for audio
Candleair
Leave itunes on "itunes store" or similar
EDIT - 2 more to try from below
Also try unticking "launch kodi with remote"
Then also try adding a 2 second delay before launching kodi (you can test this by launching manually a few times)
In terms of the Harmony remote not working when kodi first starts - try a 2 second delay (applescript or similar) before kodi is launched and uncheck "allow start of kodi using the remote")