XCode has suddenly stopped installing my app on my iPhone. It was working fine and has now just stopped.
When I click on the run button it says Build Succeeded but doesn't put the app on the iPhone.
Do I have to do something other than press the run button?
The iPhone is connected and appears as the destination of the run.
Related
After updating to XCode 8.1. Ran into the same problems compiling as defined here. After implementing each of these steps I was able to build both of my apps again however now when I try to load either of them via Simulator or on a Device through Hockey app. They both freeze on the first screen and become unresponsive. Looking for an answer or steps to debug this problem.
Developing an iPhone application on Xcode 4.5.2. Device: iPhone 4.
I was preparing my application for sending it to someone through testflight. I created a distribution profile and certificate for this. I did it following this: https://stackoverflow.com/a/11917884/555690
Anyway, recently, Xcode is unable to launch my project. When I press Run, it will successfully build and copy the files to the device, but when attempting to launch it, it will send an error:
Error launching remote program: No such file or directory
(/Users/Me/Library/Developer/Xcode/DerivedData/MyGame-xxxxxxxxxxxxxxx/Build/Products/Debug-iphoneos/MyGame.app/MyGame).
I'm not sure why is this happening.
A very similar question is this: Xcode successfully builds my target, but does not run the product, however, it seems to be more oriented to OSX instead of iOS, and the solutions there haven't helped me either. Also, I do get an error (he doesn't get an error).
If I run the app in the device (without Xcode), it works fine.
Yes, this happens a lot in the new Xcode.
One recipe that should work is:
disconnect the device from computer
delete app from device
reset the device
quit the xcode (not just by closing the project, quit the program)
in Finder go to ~/Library/Developer/Xcode/DerivedData
(Library folder is hidden: you can open Finder->Go->Go to Folder...)
delete all subfolders there
empty the trash
reconnect the device
open the project
now you should be able to run the app on the device again
The app I'm working on builds & runs just fine in the iPhone Simulator, but, when I try to test it on an iPhone 4S, XCode says, "Finished running ..." immediately after I click "Run", and, when I look at the iPhone, there's no icon for the app at all. It's as though XCode doesn't detect that XCode isn't deploying the app to the device.
I've got a signed certificate, a developer profile, and a valid provisioning profile (XCode's Organizer says so). The provisioning profile is present on the iPhone.
I've tried restoring the iPhone, and I still get the same error.
How do I successfully deploy my app to the iPhone?
Edit:
It's deep in the comments of the below answer, but the problem was that I had a misspelled within Info.plist's required Required device capabilities section. I solved it by deleting that row.
few things to check:
clean your build folders and rebuild. In Xcode project navigator, under products folder, is your app present?
open iTunes and try dragging this app into iTunes. Will it show up in iTunes or do you get an error? if it shows up, can you install it to iPhone via iTunes?
Is you iPhone iOS version and Xcode version and build settings all in sync? I know some version of Xcode 4.x have issues build and running apps on iOS 4.x.
With my iPhone connected to my mac via 30-pin connector (standard apple/iphone cable) I of course test and run my app with Xcode building it to run on the device.
For some reason though, when I build and run, it installs on my device but doesn't go further than the loading screen of the app with Default.png showing.
Then if I stop the build in Xcode it quit the application, then I run in manually on my device and the new build is there for me to test, but I just don't know why I have to do that and it doesn't just run past the loading screen when building?
This happened to me once after I added some certificates. I removed the build directory (MyApp/build/) and then did a clean and then build again, and everything miraculously worked. You might try that.
I am developing an iPhone application which works perfectly when doing a build & run, it runs like a charm.
But after I exited the app which ran from the build & run, an I try to start it manually by pressing the app icon on the phone it won't run.
The app shows the Default.png but after that it does nothing and just quits the app. Anyone has an idea why?
First stop: iphone crash logs available via the organizer