Issue connecting iPhone XS (iOS 16.2) in Developer Mode enabled to M1 Macbook pro (macOS 13.1) - ios16

I am trying to run my React Native IOS app on my iPhone XS device. iPhone connects to my M1 MacBook pro and I can access the phone but when I try to run the app Xcode complains that the device's developer mode is not enabled. But when I enable the Developer Mode the iPhone doesn't connect to the mac, it appears in the sidebar for a few seconds and then disappears.
Can anyone point out what the issue is? How can I connect the developer-mode enabled iPhone to my M1 Mackbook (Ventura macOS 13.1)?

It's REALLY unintuitive but I was able to get it working by trying to build in XCode using the disabled device. It of course failed, but that caused the Developer Mode option to appear. Then I could turn it on and restart etc. From what I've read, the setting only appears if certain apps require it... or apparently if XCode tries to build a local app...

Related

Xcode 13.2.1 won't recognize iOS devices on MacBook Pro M1

I have an App on the app store that works fine. Last January ('21) I bought a Macbook Pro M1 (now running Monterey 12.1) and have shifted all my Xcode files to it. Everything builds fine when I have "Any iOS Device (arm64)" selected, or any of the device simulators, but not when I have my MacBook Pro selected as the device to run the app on, nor in either of the two iPhones I can connect via USB. I've been trying for 2 days to get either one of my iPhones (8 plus and 6s, both running iOS 15.2.1) to be recognized by Xcode (13.2.1) and show up in the Device list without any luck. They show up in Apple ID, in Apple Music when plugged in via USB, and pretty much everywhere else, just not in Xcode.
I've tried everything on this SO thread to no avail: Xcode doesn't see my iOS device but iTunes does
I've tried "automatically manage signing", and done it manually. I've unplugged, updated, and restarted in multiple different configurations. I've tried all different types of provisioning profiles. All software versions match each other on all devices and are up to date.
Anyone else experiencing this? I'm totally stumped.

The device does not recognize this host. when trying iphone 4 with iOS 7.1

i have app that i run successfully on iphone 5 with iOS 8.1
now with the free provisioning i like to test the app on iphone 4 with iOS 7.1
but after successfully compiling the app when i try to run it with the play button im getting :
The device does not recognize this host.
Please check your setup and try again. (0xE800001C).
also the deployment target is 5.1
what can be the problem ? using Version 6.3.2 (6D2105)
It worked for me when i reconnect device and you will get a popup like this
And then click on Trust. After that it will take some time to copying data to your computer and then you can use this device in xcode.

Xcode Server 4 not seeing any new attached devices

Xcode Server running on a Mac mini can no longer see any iDevices attached to it. Initially was able to see an iPhone 4, but no other devices since. Anyone have any suggestions?
Additional info:
Test Bot is configured to run all Simulators and devices
Test Bot runs in Xcode 6 and completes tests against Simulators but not any devices
iPhone Configuration Utility shows attached iDevices as expected
Xcode 6 on the server (mac mini) can see the attached iDevices
iDevices have the correct provisioning profiles
(possibly related) Server's app icon in the dock has a no go/ stop icon overlaid on it:
For anyone else encountering this issue: my solution was to just delete the XCode server application and reinstall.

Unable to run iOS 7.1.2 device in xcode 5.1.1

I've just updated my iPhone to iOS 7.1.2, and I can no longer run my apps through xcode 5.1.1. And I can't install apps with this iOS version too.
To solve this issue do the following:
Connect the device to your computer and open iTunes.
It will prompt you to allow the computer to access the device.
If you accept, the device should be properly recognized by Xcode too and selectable to run your app.
Still no clue why this happened in first place, after updating to iOS 7.1.2.

iPad is not showing in Develop menu on OSX Safari

I need to debug an HTML app on ipad. I used to be able to connect ipad by USB cable to my mac and it would show in the "Develop" menu in Safari. I have two ipads now - one with iOS 6 and another with iOS 7. The iOS 6 one is showing correctly and I can access the web inspector from my mac. iOS 7 ipad is not showing in the "Develop" menu.
I have the latest version of iOS installed (version 7.1) and the latest version of Safari (7.0.2) on Maverick.
Any suggestions are welcome.
Enable web inspector on your iOS device by following these steps:
iOS Device > Settings app > Safari > Advanced > Web Inspector
This setting allows you to connect to safari on your desktop.
I know this is a little late. I had this same issue and figured I would post how I got it to work in my case just in case it helps anyone in the future. I enabled it on the iPad and it didn't show. I tried closing Safari on the iPad, disconnecting and reconnecting the cable and neither worked. It ended up for me being really simple, I just quit of Safari on my laptop and restarted it and Safari then recognized the iPad and allowed me to debug. This may not work for every case but it did for me, hope it helps.
edit: just a note, I had the iPad plugged in with web inspector enabled when I restarted Safari.
In my case I was running iOS 11 BETA on the iPhone, and was trying to access from Safari 10 (current stable version). I have installed Safari 11 BETA, and now it is working as expected.
So in general: Make sure you are running the latest version of Safari. And if you are testing on iOS BETAs, you can download Safari Betas & Safari Technology previews from here (Thank you for the link #Jacob Ford).
You also need to enable web inspector from the device.
Open the settings app, select safari, select advance and then turn on web inspector.
ref:
http://www.spiraltrack.com/blog/how-debug-iphone-and-ipad-web-applications-using-safari.
Using a genuine Apple lightning cable (instead of a fake one) solved my problem.
After all these years, I finally found out what the problem was! Apparently, Safari version on the Mac needs to be the same or newer than the version on the iPad. If iPad has a newer version than Mac, then it won't be visible. If Mac has the same or newer version, then iPad is visible and can be debugged.
I wish Apple had documented this anywhere - would have saved loads of time for a lot of people.
One more tip to try - after trying many of the above suggestions I turned off "Sync with this iPhone over Wi-Fi" in iTunes.
Voila! Got my iPhone into the Develop menu!
(for context, this is in Mojave 10.14.6, iOS 13.1.3, Safari 13.0.3)
I just had to toggle the web inspector on and off on the device I was trying to connect and it showed up under Safari's develop menu:
iOS Device > Settings app > Safari > Advanced > Web Inspector
If you already have enabled web inspector on your iOS device by following these steps and still it is not showing you can try just disabling and then again enable web Inspector in device's Safari browser.
iOS Device > Settings app > Safari > Advanced > Web Inspector
Had the same issue after updating to Safari 13 and Xcode 11.3 on macOS Catalina. For me the following change brought the iOS device back to Safari's Develop menu:
Connect the device via USB
Start Xcode and go to menu "Window > Devices and Simulators"
Select the device
Check the "Connect via network" option
I've tried all the above but the only thing that works for me is to put iphone/ipad in airplane mode and then unplug/plug in the lighting cable a few times while keeping the develop menu open, once it shows up you can then turn off airplane mode
Another gotcha for the basket: If you've another OS running in a virtual machine that you've forgotten about then the iPad can end up connected to that and hence invisible to Safari on the Mac.
Additional go to:
Device Settings -> Safari -> Private Browsing = OFF
For me, the problem was the different OS versions between the iPad and the iMac. I updated the iPad with the latest OS (iOS 11.2.2 at the time of this writing), but the iMac was under El Capitan (10.11.6) macOS. Once I updated the iMac to High Sierra (10.13.2) everything worked correctly.
I've found that Simulator is always in Safari's Develop menu if it's already running when Safari launches, and Simulator is never in the menu if Safari is launched first.
So you need to restart your Safari again.
That's Simulator 11.2 (comes with Xcode 9.1), Safari 11.0.3 and macOS 10.13.3
Similar to what BernieSF said, with a little more detail from my specific scenario. I was getting ready to upgrade my laptop to High Sierra to try and solve this, but I'm glad I didn't have to.
I have been trying to solve this for some time now, so maybe my situation will apply to someone else. The problem was the version of Safari I had installed on my older Macbook Air.
Symptoms: All the appropriate settings were enabled, and when I plugged in my phone to the USB cable, it would show up in the Develop tab, and then quickly disappear.
Setup: iPhone 7 on 11.3.1 and Macbook Air(3,2) on 10.12. On the Air, Safari was version 10.1.
I read in an Apple thread that for iOS 11, I needed to have Safari 11, but I had no option to update Safari in the App Store. There was a system update available, and the update to 10.13 available, but not Safari.
Solution:
I did the system updates (not the update to 10.13)
After my computer rebooted, the App Store then offered me an update to Safari 11.1.1 and I installed that
Voila! It now works!
I had this issue with iOS 13.2.3 on both macOS Mojave and Catalina.
When I disconnected the iPhone from the Wi-Fi and only connected it via the cable the dropdown in Safari showed the iPhone.
The solution for me was:
In iTunes click the sync-settings button and enabling and then disabling the "Sync with this iPhone over Wi-Fi".
After that the iPhone showed up again in Safari's developer menu.
I experienced the same issue today with iOS 13 and Mac OS 10.14 (Mojave).
What fixed it for me was simply installing a required Update in MacOS.
However, it is not an update that is installed via system preferences but only via a dialog that appears when trying to connect the devices.
Unfortunately the dialog appeared behind all other windows and could not be tabbed to. Thus I did not see it at all until I closed all other windows.
Regarding the dialog itself - here some information from Apple support:
https://support.apple.com/en-us/HT208831
In my case, I was using iOS beta version.
Xcode > Window > Devices and Simulators > Connect via network
then I can see error messages.
"The current device configuration is unsupported. This iPhone X (Model A1865, A1901, A1902,…"
"To run on this device, please update to a version of Xcode that supports iOS 13.6. You can download Xcode from the Mac App Store or the Apple Developer website."
Oh yeah.
Another thing to check is Build Settings > Signing > Code Signing Identity
Make sure both Release and Debug are set to iOS Developer

Resources