iPhone 6 to macbook pro wireless debugging without cable - iphone

I have MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports) with high sierra (Version 10.13.4) and iPhone 6 with iOS version 11.2.5.
I don't have any kind of cable through which I connect my iPhone to my MacBook Pro.
I want to enable wireless debugging in iPhone because I don't have cable.
Can anyone suggest me how I can enable wireless debugging in xcode and run my application on device without the need of creating diawi link on each time and on each change.

You have to plug the device in one time, the first time, to establish the feature under Devices and Simulators. After that, you can use the wireless debugging, but it does require that first wired connection.

Related

Xcode Device Issue - Failed _shouldMakeReadyForDevelopment check even though device is not locked by passcode

Error and warnigs in devices and simulators
Issue :
Details
Failed _shouldMakeReadyForDevelopment check even though device is not locked by passcode.
Domain: com.apple.platform.iphoneos
Code: 5
Failure Reason: allowsSecureServices: 1. isConnected: 0. Platform: <DVTPlatform:0x7fecb76471f0:'com.apple.platform.iphoneos':<DVTFilePath:0x7fecb7647170:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform'>>. DTDKDeviceIdentifierIsIDID: 0
User Info: {
DVTDeviceDescription = "\Ud83d\Udcf1<DVTiOSDevice (0x7fecb9844570), TakHyun\Uc758 iPhone, iPhone, 13.4.1 (17E262), 8d695f88c5c910974df39462a1815a52376a0fa9>";
}
TRY:
Restart macbook and iphone
Trust in Trust This Computer notification
Xcode Version 11.4.1 (11E503a)
IPhone X ios 13.4.1
I finally figure it out
Connect the iphone(cable not wifi)
Unpair device and quit the xcode
Reconnect the iphone and Trust this computer accept
Done.
If you cant fix it, go to apple dev site
reedit the device and do it again 1~3
check this photos
I started getting the OP's error after updating my iPhone to iOS 13.5.1. Here is what worked for me to resolve the issue:
Unpair the iPhone (as per answer from #Jeff above).
Upgrade Xcode to latest, in my case 11.5 (which I believe is the first version of Xcode to support building to iOS 13.5.
NEW: I launched Xcode after updating to 13.5 which prompted me to "Install additional required components" which I did.
Xcode extra step after updating
Reconnect/pair iPhone in Xcode's Devices window and Trust the computer.
NEW: After pairing the iPhone make sure you check the "Connect via Network" checkbox for the newly paired iPhone. By default Connect via Network is unchecked.
Important step after re-pairing device
The "NEW" steps are not steps I've seen in previous answers, so I posted this answer.
Or Xcode is just not smart enough to know that your iPhone iOS version is newer than the one supported by Xcode! I had this issue, been trying all solutions until I updated my Xcode from 11.4 to 11.5
So this started for me after I updated Xcode to version 12, and my iPhone to iOS 14. The fix was as listed above (multiple times) to unpair, reconnect, and trust the computer, BUT only after changing the target to iOS 13 in Xcode did those steps actually work. Once it was reconnected I was able to switch the target back to iOS 14 inside Xcode. This one was frustrating.
In my case, I was using an USB to USB-C adapter which apparently my laptop did not appreciate. Switched to a usb-c lightning cable and poof - everything just works. Now I'm mad that I already reset my network settings!
I had issues with Xcode 11.5 and iOS 13.5.1
Sucessful:
Remove the Logitech Wireless Mouse USB Receiver that was plugged into
the USB-C to USB converter (I use this converter to connect both the
Wireless mouse AND my iPhone via USB to Lightning cable). This
REPRODUCABLY caused the described error "Failed
_shouldMakeReadyForDevelopment check even though device is not locked" to reappear when I repeated the re-pairing procedure with the
Logitech adaptor plugged in
Not successful:
Unpairing (from both Macbook or iOS - Settings - Developers - Unpair)
unplug, Repkug the USB Connector
Connect via Network setting
Restart iPhone, MacBook, ...
I had some success turning Bluetooth off and on again on the phone. Still, the watch often disappears.
None of the above worked for me. With iOS 14.0.1 and XCode 12.0.1.
I suspected it is an Apple bug with wireless communication to-from the device.
Since my iPhone can be used as a hot spot for my Mac, I found that once I used my iPhone as a hotspot from my Mac, XCode was able to upload the App binary to my iPhone and debug.
So I'd say if nothing else works then try to use your iPhone as a hotspot for your Mac, and then you should be able to wirelessly debug.
For me it was the exaxt opposite of the message. Xcode was up to date, but the iphone I was trying to run on was not updated to the latest version of iOS. 13.7 was the version at this time.
After updating to 13.7 the iPhone, everything went back to normal.
I rebooted my iPad, and it eventually worked...
My problem was building the application with a production provisioning profile.
in my case, the solution was to switch to the development provisioning profile.
Then it worked :)
Mine got resolved when I updated the Xcode from 12.2 to 12.3 Beta.
My iPadOS version is 14.2.
Even though XCode 12.2 supports OS 14.2, I faced the same issue. It is the XCode bug.

Xcode 8.0 does not detect iPhone SE

I connect an iPhone 4S (IOS 9.3.5) it detects. iPhone 5S (IOS 10.0.2) it also detects. By the iPhone SE (IOS 10.0.2) does not detect and the weirdest is that it used to work... Also iTunes recognizes the iPhone. But neither Xcode or Unity detect it. And I have tried to add Device through the Window->Devices. Yes, I am using USB cable to connect. Tried different ports and the same cable detects the iPhone 5S . I also used sudo pkill usbmuxd on Terminal. Rebooted Xcode, and the Macbook always the same result. :\
Do you have any suggestions?

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/

Can Xamarin iOS run iPhone simulator from Win7/Parallels/VS2013 on MacBook Pro

I have a MacBook Pro w/ XCode and am running a Parallels win7 VM w/ VS2013 and Xamarin iOS installed. I do not have a separate Mac server, i.e., this is all on one physical computer.
Can I run/test my iPhone app the iPhone simulator? If so, references to documentation, samples, etc would be appreciated.
Yes, you can use your MBP as a build host while using VS2013 inside of a VM.
The Xamarin Docs cover how to set this up.

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.