How to reboot iPhone/iPod from mac or Xcode - iphone

I want to restart an iPod Touch/ iPhone connected to mac mini without touching the device, Is there any way to reboot from Terminal or Xcode or any other way?

You can't. No Public API to do so.
However, if your phone is jailbroken & OpenSSH is installed, you can connect to your phone via SSH, then type:
su
reboot
to reboot your phone.

Related

IPhone connection to Xcode/Mac fails or is flapping

I have very frequent issues with connecting my IPhone to the Mac and getting recognized by Xcode. Either the IPhone is not recognized at all on Mac or Xcode sees the device 2 sec then doesn't see it anymore and flapping this way endlessly. What I do to fix the issue is rebooting Iphone, closing and restarting Mac and disconnecting the IPhone and resetting the USB port with command -> sudo pkill usbmuxd. Sometimes it works but not always in this case I reboot the Mac as well and this process I do it every 3rd time I connect my Iphone. All versions are up to date: Mac, Xcode, Iphone. Do you have the same issues and idea to fix it. By the way I also bought a brand new USB cable but still the same problem.

How can I use the Mac iOS Simulator together with Smartface

I want to use the iOS Simulator from a Mac and run the Emulator as stated here: http://www.smartface.io/developer/guides/advanced/debug/
iOS Simulator
The Mac PC which is hosting the iOS Simulator and the Windows PC which is running the Smartface App Studio can communicate directly over TCP/IP.
This is not working.
Can anyone explain me step by step how can this be achieved?
iOS Emulator of Smartface App Studio requires directly USB connection to your Windows PC with your iOS Device in order to make emulation and debug.
You should use real iOS device which is connected to Windows Machine.
For more information :
http://www.smartface.io/developer/guides/tips/ios-emulator-troubleshooting/
http://www.smartface.io/developer/guides/advanced/debug/
http://www.smartface.io/ios-and-android-emulator-on-windows/

Virtual Mac XCode iPhone debugging - device not connected issue

Please bear with the question (I know there are many repeats but I am sure this is unique) and read this first before you think of downvoting due to duplicity:
This is pertaining to iPhone connected to my local desktop and XCode running on remote VM
The USB gate software is connecting my iPhone to the VM
It's not that XCode fails to detect it altogether.
It's an iPhone 3GS running iOS 5.1. XCode version is 4.6.
Now the issue:
I have the iPhone UDID added to my Apple developer Profile.
I can very well detect the iphone connected into XCode once I do all the necessary sharing for the USB Gate software. I see the yellow light.
It shows yellow light, shows some of the apps installed while some process is running in background. It shows the UDID and usual stuff.
After few moments though, XCode displays the message Device not connected.
I have already added support for armv6 inside my app, so that possibility is ruled out.
What to do?
PS: for the first time it launched iTunes after detection. However then onwards I disabled auto-syncing from iTunes. And now iTunes doesn't detect it even if I launch it explicitly. XCode does detect it, but after some time disconnects it automatically.
I successfully connected to remote VM installing Logmein's Hamachi VPN software on both my host and VM. Using it, XCode could detect my iPhone device once shared via USB Network Gate.

Can I sync an iphone running OS 4 with a PC running iTunes 9.2

Just downloaded the iOS 4 GM seed from the apple developer site. Apparently from what I've read, I can't install it unless I do a full restore of the Phone. If anybody knows of a way to do it without restoring would be part of this question. I normally sync all my music and stuff with my PC. Will I be able to restore my device and resync up with my PC if the device has the iOS GM seed on it. I have iTunes 9.2 on my PC. Thanks!!
You have to restore your device to install the iOS GM.
You can not install iOS4, or even use a device with iOS4GM on a PC, even if it has iTunes 9.2.

Xcode 3.1.3 - Organizer The device is not activated. Please activate it using iTunes

I recently upgraded my XCode SDK to version 3.1.3 and my iPhone OS to 3.0. It is important to note that everything was working fine when I had OS version 2.2.1 in my iPhone. My iPhone Touch device is not jailbroken and I have a valid provisioning profile in the organizer which is linked to my iPhone Touch however it has a yellow circle next to it.
This is because in the organizer under devices it displays the ipod with version 3.0 (7A341) and then it Reads (in the section where the provisioning profiles should go):
This device is not activated. Please activate it using iTunes.
When I go in xcode and build the application it does so just fine, and the code signing is in fact assigned to the correct provisioning profile. But whenever I try to run it in the device I get "No provisioned iPhone OS device is connected.". This is because the organizer keeps telling me to activate the device using iTunes.
I have iTunes version 8.2 and the device is there and i can sync it just fine, however it keeps displaying that message in XCode. I have tried restoring my ipod about 10 times but I always get the same result, I have also tried powering off the iphone Touch and the computer but nothing seems to help.
Does anyone else have this problem?
I have the same issue, but I have an ipod touch version 2.2.1. It used to connect to Xcode 3.1.2, then I upgraded to 3.1.3 and it doesn't work. I reverted back to 3.1.2 and it does not work. It does work on a friends mac with 3.1.3 so there is something wrong with my iMac. Firewall is disabled. It connects to iTunes fine and it is activated. Just won't show up in the organizer. Rebooting does not work. I reset, and restored it and it still doesn't connect. The fact that it connects to a friends mac and not mine leads me to believe that upgrading the ipod to version 3.0 would not fix the issue.
Jimi
http://developer.apple.com/iphone/index.action#downloads
download and install it
Leopard Downloads
* iPhone SDK 3.1.3 with Xcode 3.1.4
* iPhone SDK 3.1.3 with Xcode 3.1.4 Readme
open mac terminal
$ ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.2\ (7D11)/ /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3
my space write in here
http://leefj.spaces.live.com/blog/cns!ADF54DD0A549AD9B!462.entry
Thanks to flycomputer i was able to resolve my problem with iphone os update to 3.1.3.
But i didn't need to make the symlink so check if it's done by itself or not before lunching the command :
$ ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.2\ (7D11)/ /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3
This usually means your Phone is not activated with your provider. Can you actually make phone calls with your iPhone? Did you restore your phone via the XCode Organizer or iTunes?
Well it is not actually a phone it is an iPod Touch. I tried to restore it both via Xcode Organizer and iTunes with the same results.
This isn't the error I get, but try rebooting the iPod. Hold down the sleep/wake button on the top for a few seconds. When it asks if you want to turn off the device, move the slider to turn it off. I usually wait a minute and power it back on. This always works for me.
You are probably behind a firewall, with anti-spyware protection activated.
iTunes needs to connect properly to web (Apple, I guess) in order to activate correctly your device.
Disable the firewall, then launch iTunes, that worked for me.
JR