I have an iPhone app that compiles and works fine in the simulator. However when I try to sideload it as an Ad Hoc application, the install seems to fail silently.
Initially when it's trying to sync to the phone, it gets the grey icon (as expected), and I get a install sweep / radar over lay on it.
It gets to about 80% (10 o'clock) and then disappears. The icon remains grey and the title says "Waiting". If I later try to run the application the title changes to "Installing..."
iOS: 8.4
Xcode: 6.4
Embarcadero/FireMonkey: XE8
Digging in further... by looking at the Console for my iPhone in Xcode
Window -> Devices -> (phone) -> little triangle button on the bottom left of the Device Information panel.
The listed error has now scrolled past the end of the buffer so I can't post an example; but as I recall it was this one that clued me in to what happened:
profile not valid: <hex_identifier>
I was able to determine that it was indeed the provisioning profile that was the problem.
Back in the Embarcadero/FireMonkey side of the equation, the Mobile Provision and Developer Certificate settings were missing/reverted to defaults.
Project -> Options -> Provisioning
Near as I can tell, because I have a couple different sets of certificates on my Mac, the ones that are set as the default are broken/missing devices and I needed to explicitly specify the good one.
Related
I’m quite new to Xcode and I’m only interested in making apps as a hobby. I would like to install my own apps that I make on my own devices without using the App Store (without paying the £99/year developer fee). So I would like to know the following:
How can I install an app through Xcode so that the app remains on my iPhone after disconnecting it from my Mac?
How long will the app remain on my iPhone i.e. how long until I have to manually reinstall it? (I’ve seen some websites that say 7 days and some that say 1 year)
This is something else really but am I right in thinking to use the TestFlight app I’d need to pay the £99/year developer fee?
If it helps all my devices are running the latest software versions.
Yes, you can use your own device for testing purposes and it will remain on your phone after you disconnect it.
To set this up, connect your device to your Mac. Then, click the simulator selection dropdown in the top left of Xcode. It might say Generic iOS Device if you haven't selected a simulator since opening Xcode. At the bottom of that dropdown menu, you should see a button that says Add additional simulators...
At the top of the window that comes up after you click Add additional simulators.. there should be a Devices tab. Select that tab and add your device via the + icon in the bottom left of the window. Once connected and paired, you can travel back to the simulator dropdown menu and scroll up. Your device should be listed there if it's plugged in and paired. Select the device and run your app - Xcode will take care of installation.
Without purchasing the Apple Developer Program, your app will function on your phone for one week after the most recent run.
Yes, you are correct. TestFlight is something that comes with the Apple Developer Program.
I created an enterprise app in Xcode 4.6.3 and posted it on a website. The app succesfully downloads to iPhone5 and iPad3 (both running iOS 7). The app runs just fine. However, it created a duplicate "ghosted" app icon on both devices that cannot be removed See Screen Capture.
I tried removing it by long-pressing the app icon and touching the "X" on the device. I also tried removing it in iTunes. No luck. I updated to Xcode 5.0.1, developed for iOS 7, recompiled and repeated the process. No luck. The duplicate icon remains!
This is not an issue on devices not running iOS 7.
A similar thing happened to me while trying to delete an app that was being built at the same time with XCode.
Try restarting the phone by pressing and holding the button on the top and the circle button on the bottom.
When the OS repopulates the dashboard on the next launch, it should detect the discrepancy and either not display the bad icon or make it available for removal.
If your Apps don't includ iOS, you are surely able to delete Apps from iPhone, do all of your 3rd party apps no longer show the delete "x" when wiggling? If so, try the following steps as needed:
Restart phone
Reset phone (no data loss): press both home and power buttons for at least 10 seconds, releasing when the Apple logo appears
Settings > General > Reset > Reset All Settings
Restore iOS using iTunes, also restoring a backup
Restore iOS as new, without using a backup
I recently began going through the official Apple documentation and tutorials to learn iPhone development. I got my Iphone 5s a couple of days ago, but the sample ToDo list app that I'm making causes the device to lock up randomly when I try to test on the device. For example, I if I make a chance to the code and build/run it on the device, it will work. However, as I keep updating the code and testing it, eventually it will just open up my app on the device as a complete black screen, and freezes. The home button then no longer works, no touch events work, the only think I can do is to hold Home+lock button until the device shuts down.
This cannot be normal, can it? I mean, its just a basic app, what could be causing it?
Attached is the error that shows in xcode, and also a screenshot of the Iphone when it its frozen. Surprisingly, I was able to use the screenshot functionality on the phone... :/
Please check whether you are using a distribution provisioning profile/certificate to sign the app. If you plan to debug the app on the device (use breakpoints etc.), you should sign it with a development provisioning profile.
It only happens sometimes, so it's not provisioning related.
It causes a message to popup in XCode itself, so it's not code related.
I had the same problems before (not that often really...). What I did was
Restart the device
Remove the app from the device
Clear the project builds (CMD SHIFT K)
Restart XCode.
Build & Run again
I actually haven't seen this for a while. I always thought that they fixed the bug. Hope this helps!
I just distributed my first ad hoc provisioning app to my iPad via iTunes and all seemed to have worked fine, except the fact that my app does not show an icon on the iPad, only a silver button.
When I start the app, the screen goes black for around 2 seconds, then the "desktop" is shown again.
I am not sure how I should go on now. There isn't any such thing as a "log file" on the iPad, is there? The reason why it doesn't really start might have a hundred reasons, I guess.
On the simulator it worked fine.
Thank you very much!
I think you've got the answers you need in the edits, but to answer the original question.
You only need to add UDIDs in the portal, nowhere else.
You can get crash reports from an AdHoc device. Sync the device and then look in ~/Library/Logs/CrashReporter/MobileDevice/
Alternatively, if it is your device, connect the device and use the Devices panel in the Organizer.
The plain white icon means you don't have an icon set for the deployment device. I've never had this after setting an Icon. Check the target summary for any icon errors, they're normally shown next to the icon space.
I downloaded xcode 4 and created a single view application with storyboard.
I added two views to the segue and tied them back to the home screen. After that I must have done something weird. The only thing I can think of is that I put the iOS simulator on the dock. I've updated the project and the changes are not being reflected on the simulator.
What I think is the issue is that I have two iOS simulators on the computer. For some reason whenever I try to find one in spotlight or in the applications it only shows one. When I click on it it is the old iOS simulator from Xcode 3. So what I did was I looked at stackoverflow and it suggested cleaning and running the project. That did not work.
After that I looked harder and found that I should reset content and settings on my new iOS simulator. That's what I did and now when I build and run it it is saying that it can't find my storyboard.
Generally you don't run simulator separately, but let Xcode fire it up for you. So, in Xcode, in the upper left corner you can select your scheme (and you select whether you want it on the simulator or the device). You can then select the simulator and then press the "Run" button and it should fire up the simulator for you. No need to fire the simulator up separately.
If Xcode is not behaving well (i.e. there are no error messages but the simulator never comes up automatically when you tell Xcode to run it on you simulator), I'd suggest (a) quitting and restarting Xcode (sometimes it gets in a weird state); (b) cleaning your project; and (c) try running it again.
In terms of not finding the simulator in Spotlight, it's now part of the Xcode.app bundle, so Spotlight won't find it. But if you want to dock it (not sure why, but feel free), just fire it up from Xcode by running an app on the simulator and when it appears in your dock, control-click on it and select "Options > Keep in Dock".