Why does Xcode think that I have an iPhone 4 - ios

but I have an iPhone 13 plugged into my MacBook Pro. I know this might seem like a strange question, but when I try to build & run my app the following messages notify me
This iPhone 4 is running iOS 15.6.1 (19G82), which may
not be supported by this version of Xcode. An updated
version of Xcode may be found on the App Store or at
developer.apple.com.
I cannot remember when the following notification came to my attention, but it basically displays the same message and I took a screenshot of it when it occurred
I have contacted Apple, but I am on my second tech, who is asking me about my browser version, etc... which tells me that they are stalling - no browser, an app build & run in Xcode. An app literally targeting iOS 11.0 and above

Related

Xcode: Failed to prepare device for development

When I run my app in my real device (iPhone 11 Pro, OS: IOS: 15.4) in Xcode (version: 13.3), the build is succeeded, but the app does not launch in my phone and I receive this message in Xcode:
How can I resolve this ?
Well, here is a short story that I've experienced during my casual work day.
I tried to pair new phone to XCode and it prompted exactly same error as yours.
At the end of the day it turned out that phone had an Apple Watch that is paired.
We simply disabled/unpaired the phone from Apple Watch and it worked out.
Maybe you can give it a try.
Edit: Finding the XCode version that supports iOS 15.4 may also work.
In my case the problem was that I was targeting an older version of iOS than the one present in my device. Also, XCode was not updated and didn't support my phone's version. After updating XCode, I could change the iOS target to the latest and all worked out.

No communication App -> Watch App and App Installation fails on Apple Watch - iOS 9 Beta 5

Issue 1:
Currently all apps I am trying to install on my Apple Watch via the Apple Watch iOS App fail without telling anything.
I tap on the "Show app on Apple Watch" slider, the app is starting to get installed, but coming the last 25% of the process, the App icon on the Watch just pops away and the slider in the iOS app goes back to uninstalled state.
This is not only happening for my own iOS + Watch App but with different other App examples as well. The last I tried was PotLoc from Apple:
https://developer.apple.com/library/prerelease/watchos/samplecode/PotLoc/Introduction/Intro.html
Issue 2:
Also all Apps I deployed to the Watch and the iPhone (via Xcode, since this works as opposed to install via Apple Watch iOS app), are not able to talk in the direction iOS -> Watch OS via WCSession sendMessage.
I always receive the Log message:
2015-08-21 15:58:05.728 Watch Smart[282:21056] Error: Error Domain=WCErrorDomain Code=7006 "App ist nicht auf der Uhr installiert."
WCSession.defaultSession.isWatchAppInstalled()
is always "NO".
The other direction works fine, though.
The hardware I am using is
Apple iPhone 5s with iOS 9.0 (build 13A4325c)
42mm Sports Apple Watch version 2.0 (build 13S5325C)
Both devices say "current" on tried Software Update.
I think these two issues might be correlated.
Could it be a provisioning or another kind of rights issue?
Another interesting fact:
Two days ago there was a post on the Apple Developer Forums pointing to the exact same issue, but now it seems to have been deleted:
https://forums.developer.apple.com/thread/14649
The title was "WCSession sendMessage always fails on beta 5 Si... | Apple ..."
Installing XCode 7 Beta 6 fixes that problem.

TestFlight error: User gets "Unable to Download Application" message when trying to download a beta test from TestFlight

I am beta testing my app, and a few users are getting the error "Unable to Download Application. "Okasio" could not be downloaded at this time". So far 30 users have downloaded the beta of the app, and only 2 are getting the error, so it seems user- rather than app-specific. Does anyone have a suggestion?
The message is identical to the one from this post, but with current iOS 8 formatting:
TestFlight fails to install app and cannot delete partially installed app
The most likely reason is that their iOS OS version is below the app's minimum OS version.
As strange as it might sound the official Apple TestFlight/iTunes Connect beta system does not test the OS version at all at the moment. We faced this issue while we were working on our integration with the new TestFlight system (Bitrise.io, iOS CI/CD service - CTO here).
For example one of our test apps was built with iOS 8.2 as the minimum OS version. It's even listed on the app's card in TestFlight (Compatibility: Requires iOS 8.2 or later) but you can still click on the install button and it starts to download&install it. Then of course you get the helpful error message with Unable to Download App.
Note: Tested on two different iPads, both with iOS 8.1.3.
Another, less likely issue might be the lack of storage on the device but as far as I remember that presents a different error message.

Testflight does not allow iOS 7.1 app compiled with iOS 8.1 SDK to install on iOS 7.1.2 iPhone

When I'm in the Testflight web app I see some apps I've built earlier that support iOS 6 and up, but the app I'm working on now does not show up. It's an iPhone 4 running iOS 7.1.2 and testers report the same issue. My device shows also like this version under "devices" and I already tried to reconnect the device, to no avail.
The minimum OS as displayed in Testflight when I go to incompatible builds is listed as iOS 7.1. At this point I'm a bit baffled about what to do. At this point I'm a bit baffled. Already tried to check all build settings and re-uploading the build to Testflight.
Twice I had the same error. Third time I've uploaded the same code with a different build number but with the same settings it worked. I suspect a glitch in the Matrix, a temporary problem on the side of Testflight

Xcode: App builds, but "runs" and "finishes" at the same time

I have an app created from sample code I found online. I hooked up my iPod touch 4G to my computer and everything worked fine, app ran.
Then I hooked up my iPhone 3G to the computer, established provisioning profiles, etc. In the organizer the device shows up as a green dot, so we're good. The name of the device is right there next to the run button so that's a good sign. But when I hit run it says "build succeeded" and then goes directly to "finished running on " but nothing shows up on the app!
I've tried this with several apps now and all work on iPod touch, but none on iPhone.
Devices are running newest operating systems, 4.2 for the iPhone, Xcode version is the newest.
I had a different question with more than likely the same answer
App built with Xcode 4.2 ios 5.0 crashing when installed on iphone with ios 4.3.5
I found the solution here
Is it possible to target older iOS versions when using Xcode 4.2 and iOS 5 SDK?
by mmorris
I had to do what he clearly explained and 1 more thing:
Set the compiler in the Project and Target Build Set to LLVM GCC 4.2
That got the app running on my older devices
I had problem to run on simulator not on device.
Tried above options but didn't work for me.
Finally, Just Resetting Simulator did the trick.
Make sure you are targeting the least iOS version and SDK that you can in the build profiles (targets, summary, Devices, Deployment target). Also, check the error console (All Output) at the bottom right and see if there's some kind of problem occurring.

Resources