How can I stop iTunes sync from removing one of my development apps? - iphone

I have a half-dozen apps installed on my iPhone via Xcode's Build and Run function, and they've always been unaffected by syncing the phone with iTunes. Now one of the apps has started disappearing from the iPhone every time I sync with iTunes. If I watch the sync progress at the top of the iTunes window, I can see the step where it says "Removing 'Appname'."
If I connect the iPhone and browse its sync settings, on the Apps tab, the app icon is visible on the home screen, but it does not appear in the "Sync Apps" list where I can check which apps to sync. Oddly, if I put the app into a folder, and iTunes removes it, and then I reinstall it from Xcode, it will go back into that same folder.
The only difference I can think of between this app and the others is that this was originally an iPad-only app, and then I changed it to an iPhone/iPad app. The app does work fine on the phone until iTunes removes it. I've confirmed that "iPhone/iPad" is selected for the Targeted Device Family setting for all configurations. I've also tried removing the development provisioning profile from the phone and reinstalling it.
Does anyone know why iTunes would be removing this app even though it leaves the others alone?

Drag and drop app build and provisioning profile into iTunes sync phone and see if issue is persistent. I think its because itunes cannot find your app in its App library.

Related

iPhone7 and iOS 11 error for **native** iPhone apps: This app was not installed from the App Store and must be reinstalled manually [duplicate]

My application is signed with Enterprise distribution certificate. When I try to install my app on iPhone X it installs successfully but when I try to open, it gives me an error "This app was not installed from the App Store and must be reinstalled manually"
Please note that app is opening and working on all other devices. This issue occurs only some specific iPhone X, not on every iPhone X.
Can someone please tell me why I am facing this error.
Screenshot is attached
The app may have been offloaded. Offloading is a new iOS 11 feature that allows user or the iOS system to remove an app to free up space without deleting any of its configurations or settings.
To know if an app has been offloaded, it displays a small cloud icon in front of its name.
When opening an offloaded app, Apple tries to download the app back from App Store. Since it's an enterprise app that's not available on App Store, it can't download it and shows up this error.
The solution? Well, just what Apple says: "This app was not installed from the App Store and must be reinstalled manually". Download the enterprise app again from where it's hosted and install it.
In case anyone runs into this post doing a Google search, here was the fix for our scenario:
This issue usually revolves around a desperate Apple ID and Pin. The first step will be to recover your Apple ID device PIN. This is accomplished by following these steps:
Go to Settings
Tap [Your Name] > Password & Security > Change Password
If you are logged in to iCloud and have a passcode enabled, you will be prompted to enter the passcode for your device
Follow the onscreen steps to update your password
This should reassociate the Apple ID with the Pin, and allow the app to install.

How do I access my app listing in App Store without iphone?

So, my app is approved and now I'd like to check what does listing look like in App Store. Is there way to do it without iPhone?
You can go to iTunes (Both Mac and Windows PC has supported) application and find your app.
There you can check how your app looks like in iPhone.
One more possibility: "https://itunes.apple.com/app/id[Your_APP_ID]"
Ex: https://itunes.apple.com/app/id424562537
First of all, it can take up to 48 hrs for your app to appear in all stores world-wide.
In iTunes Connect, you will find the direct link to your app. Depending on the browser (Safari vs. Chrome/Firefox/IE), first the iTunes Web Preview should show your app's store listing. From there you can view it directly in iTunes (if it's installed on your machine.)
To check if your app is available in all territories, go to "Pricing and Availability" and check for the right settings there. (Available in all territories)

Anyone else having problems installing iPhone Enterprise apps on released IOS 5?

Anyone having problems deploying Enterprise apps on iPhone/iPads running the released version of iOS 5 using the OTA ("over the air") methodology?
During the installation process, we get the alert box: "the app could not be installed at this time". Tapping the Retry button does nothing. In some cases, repeated tapping of the Retry button eventually results in a gray, empty launch icon being left on the home screen. No app installed. No other errors.
Anyone else seeing this or have a resolution?
The below description is a bit involved, but please bear with me as it may help others who run into the situation. I will post the resolution if get a resolution from Apple. So far, no joy there.
Our app refuses to install OTA on iOS 5. This same app WILL install on iPhone/iPad devices running iOS 4.x.x AND the same app will install on iOS 5 devices physically connected to a desktop machine using the iTunes app.
The Apple Developer forums under the IOS 5 Beta category complained about the problem but no indication of resolution as of last week just before the official release of iOS 5.
Cookies are set to be accepted.
Bowser cache and history cleared.
Using mobile safari originally installed with original iOS version 4.x.x.
System hardware and operating system configuration
iPad 2, iPhone 4 or any iPhone device running iOS 5 RELEASED version.
Browser and version
Mobile safari that is installed with iOS 4 on ipad2. Don't know if mobile safari upgrades with ios 5 upgrade.
Using a corporate wifi network. Yes, we are behind a firewall and use a proxy server. Since iOS4 devices install without problems, I don't think installation being blocked by the proxy or firewall.
Enterprise app built with Xcode 4 and ios5 sdk provided with it. Built to be backward compatible with iOS 4.0.
Distribution provisioning profile is correct as we have been using it for several weeks.
This app installs properly on iOS 4 devices both over the air and via iTunes application method.
This app installs properly on ios5 devices through the physical connection with iTunes application on the Mac desktop.
Steps to reproduce:
User types in the URL in mobile safari on iPhone/iPad running ios5.
The resulting webpage shows the download app link.
User taps on the link and is asked if they want to install the app.
User taps the yes, install button.
App proceeds to install.
A gray launch icon shows up on the home screen with the progress bar empty at the bottom of the icon.
Message below the icon indicates "loading".
Seconds later, user gets the "cannot download app at this time" error message as seen in screen shot attached.
Tapping the retry button results in the same action just described.
Tapping done results in the download stopping.
If you tap retry several times, user sometimes is left with the gray empty launch icon, which will not launch and cannot be deleted.
Note: In the apple developer forums, under the iOS 5 beta category, people are describing the exact same problem with no resolution.
Had the same problem, and was able to resolve it. However, the error noted is not specific to a single cause that handles every case... some detailed investigation needs to occur.
Your best bet is to connect the device to your Mac, and using the Organizer of xCode view the console logs while you are attempting to do a wireless deployment. There will be some useful information available -- please post the logs.
For my case -- the icon files were missing from the build, as a result of moving from xCode3 to xCode4 and also, the distribution plist was referencing an image that returned a 404. Both were logged in the console, but not very clearly.
Also, as a sanity check, manually verify the URL to your IPA file also.
I had this same problem and was sure everything was correct in my project; but restarting Xcode and doing a clean revealed my Enterprise scheme had somehow defaulted to the wrong provisioning profile.
Re-selecting the correct profile and re-archiving the app fixed the issue for me, I'm able to install an enterprise app on both iOS4 and 5.
I wanted to chime in after fighting this for a few hours. It is iOS 5 specific.
We had an htaccess password protection on the directory. Removing this allowed the app to finally download. So if you have htaccess, perhaps you can point the user to a parent directory that is password protected, then navigate to the subdirectory containing the app that isn't password protected. This is a temporary solution, apple needs to fix this.
Another thing to consider is the URL you specified in your over-the-air Application.plist file. I received the same error message ("-application- could not be installed at this time") because the URL I specified was too unspecific. Rather than writing "directory/directory/application.ipa", I had written "directory/directory/". You must include your application in the complete URL of the plist file's configuration.
If you didn't do this, don't fret! You don't have to rebuild the entire thing from step one, you can open your .plist file in any standard text editor and simply change the URL.
We had the same thing.
Our mistake was to point to a wrong 512.png icon in the manifest.
Which was no problem on iOS4 but turned out to stop iOS5 into a "...at this time" alert.
Wanted to chime in on my experience.
In my case, we were changing the address where the IPA file was hosted. Although I updated the PLIST file with the proper URL to the IPA file, iOS was still going after the old URL almost as if it cached the PLIST data. Creating a copy of the PLIST file and renaming it resolved the issue (data within the file remained unchanged)
I met the same problem today. The app can be installed in ios4, but failed in ios5 with "** could not be installed at this time" alert.
According to patricksan's suggestion, I download iPhone Configuration Utility 3.5 for Mac OS X, and try to catch the log while install the app through OTA.
The log helped me finally, one sentence of the log says entitlement 'get-task-allow' has value not permitted by a provisioning profile. It remind me that if the code signing identity in build settings of Project and Targets are correct, after checking them in Xcode, I found the code signing identity are not correct one, they should be iPhone distribution:.... other than iPhone developer:..... After correcting them, and re-Archiving the ipa file, it can be installed in iOS 5 now.
Check your Info.plist for Required device capabilities property. I recommend to delete completely this property if you haven't any restrictions on use.

I can actually install a few apps without provisioning

Yesterday I was playing with the three20 library. I hit the command+enter to build and run the app on my simulator, to my surprise it installed the app on my device iPod Touch 4th Gen. I really dont know how that happened, I tried doing it with few of my other project and unfortunately it did not work.
Today, I downloaded the quick contacts sample code from Apple's developer site and the same thing happened, I could install the app on my device without any provisioning. I see that for the above two projects (three20 and quick contacts) my device is listed in the active executables.
But for other projects my device isn't listed. I tried running the above two apps on other devices which failed with a message - "No provisioned iOS device found". My device isn't jailbroken, its a brand new one I bought a few days ago.
Am I missing something, because being able to install apps without going thru Apple's portal is a huge bonus and I would like to achieve the same functionality for my other apps too.
I tried attaching screenshots, but looks like I atleast need 10 points to do so and I'm new here. Sorry.
Have a look at the XCode Organizer; As of a few versions ago it now manages a 'Team Provisioning Profile' that works off any bundle identifier and any of your devices if they've been added to your developer account. This is not a special provisioning profile, just an automatic one it sets up for you if you tell it your iTunes Connect details.
WIth this, anything you build and run should be able to use that provisioning profile to run code on your devices.

Backing up iphone app while still developing (before its on the app store)

I am developing an iphone / ipad application. My plan is to have my beta customers use it before I have submitted it to the app store to help me work out all the issues.
Nonetheless, they will be entering real information to the application. Thus, I would like them to be able to back up the application to iTunes using the sync feature.
I expected this would work normally, but as it turns out, I don't see the application in the list of apps that can by synched. My guess is that this is because I'm using a development provisioning profile.
Can anyone confirm this guess? Or better yet, has anyone out there successfully synched an app that is under development (not yet in the app store).
Thanks in advance.
Yes, I think you are right.
You need to build your app signed not as developer but with adhoc distribution certificate. You can find more about it on iPhone Developers Portal. Then you can find your app on your disk. You and your beta-testers can install your app via iTunes -
Drag and Drop your adhoc certificate file on iTunes
Drag and Drop your app package on iTunes.
Sync iPhone with iTunes - and you have your app installed and sync.
Backing up data to iTunes works just fine for me. I'm installing the app with my development certificate--not with ad hoc distribution. But, you'll probably want to use ad hoc to send the app to your testers, so some of this won't apply (see below if you're interested).
I can tell you that one of the biggest categories of support requests I get is people having issues with losing data after upgrading their device, the OS on their device, or my app. It might be a good idea to give your users a way to back up their data, whether it's Dropbox integration, a custom server, or some other solution.
On a number of occasions, I've upgraded the OS on my iOS devices and had the data come back when I restore the device after the upgrade, even for apps installed using my developer certificate. If you're really unsure, you can always back up your data using the XCode organizer (go to the organizer, select the device, find your app under Applications, expand it, and press the arrow button to the right of Application Data), back up your device using iTunes, and then do a restore using either XCode or iTunes. The data should be there after you re-install the app using XCode (the iTunes backup restore will restore the data, but not the app).