Xcode 9 not installing app on actual device - ios

Hi I am new to iOS development, I installed Xcode 9 from MacAppStore and now trying to run my first app on my iPhone 6s but the issue is it runs well on the simulator but when I try to install it on the actual device the build fails, I also selected trust this computer form the pop up box after connecting it to Mac.
How to get this thing work.
In the Logs its displaying something what does that means.

Related

Appium automation on simulator and physical device stopped working after updating to Xcode 11

I was able to run automation scripts on simulators and physical devices (with varying success but at least they were working).
Now what seems to happen, on the iPhone 5 for example, it connects and the page appium.io opens, then nothing else happens.
The only error I can see in Appium is "Page 27752/0 not found. Already sent close_frame"
Nothing else has been updated except for Xcode, and I think before this I was on Xcode 9.2
This same script works fine with when automating Safari.
Version details below
MacOS 10.14.5
Appium 1.12.1
Xcode11
iPhone 5 OS 11.2.6
Apologies for any errors, I'm still new to this.
I actually don't know what to do to fix this. I've had so many problems getting automation to work with iOS that I'm reluctant to update anything at the moment. The automation works fine on Safari, just not iOS
I can't see where to attach the appium output log.
I ran into the same issue after updating to Xcode 11, seem like there is an issue with the Command Line Tools, you can roll it back to Xcode 10.2 like this:
This fixed the issue for me.

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 cannot run using the selected device error in iOS 8

I tried to run my iOS app on iPhone 5 using Xcode, but when I connected it, the iPhone didn't show up in the top-left selection pane. And also when I ran the app from within Xcode, the error: Xcode cannot run using the selected device error occurred.
After that, I found that my iPhone was not even found in the organizer; it was there previously. However, after upgrading my OS X to Yosemite beta and iPhone to iOS8 (officially released version of iOS 8), everything doesn't work any more...
The last time I was able to run my apps on iPhone is 5 months ago, so I'm not sure when there's something wrong occurred during the period...
I cleaned and rebuilt the app, and restarted Xcode, but nothing worked.
I also confirmed that I use Default compiler in Build Options's compiler settings.
So what am I missing?
I had same problem. Problem is that your xcode is running on v.5 and there is no option to choose iOS 8 as device system. Try to update your xcode over appstore to v.6

Can't install my iOS 7 app to the iPhone Retina (4-inch 64-bit) iOS simulator

I can run my app on a physical 64-bit device it runs fine. Also I can install other test apps to the 64-bit sim. However when I try to run and build my app on the sim it acts like it is about to start by zooming in on the icon but then it freezes with the icon zoomed in then crashes but Xcode's debugger doesn't show anything. Any ideas?
EDIT: Works fine on non-64 bit sims. I have reset all iOS sims. (/Users/xxx/Library/Application Support/iPhone Simulator). I have cleaned my project and build folder.
EDIT 2: When I start a new blank single view app it doesn't work either. So I think it's my Xcode install. The 'other' app that works in the 64-bit sim doesn't build a 64-bit binary.
Reinstalling Xcode fixed the issue.
I wonder if I helped start this issue by side loading the iOS 6 SDK along side the iOS 7 SDK so that I could submit an iOS 6 app to the App Store with Xcode 5.

xcode installs app on iphone but does not run in Xcode

Ive added a new device (iPhone 5s) to test my app using xCode 5.0.2. The app installs onto the phone without running in Xcode.
When you select the play button on Xcode, the app builds successfully and installs the app. If you open the app on the iphone it works well - when you close the app on the iPhone, Xcode crashes !!!!
Its kind of working as neat way of getting the app onto a device without load time - but I need to see my logs in Xcode as the app is running on my device.
you need to make sure that you keep the device connected to the computer and thus Xcode while running the app, any NSLog you have or error you get will show up

Resources