Since 5.0, iOS simulator has StoreKit support so you can debug your In-App purchases without device. But, it has one issue. Once logged in (make In-App purchase) I can't change AppStore login. Settings has not "AppStore" item, so I can't "logout" from account.
I tried to delete application from simulator, restart simulator, delete test user from iTunesConnect — no success.
Screen of the problem
Any idea?
There is another way to log out from that sandbox account without "Reset Content & Settings" . Just remove the files from the following path in your home directory :
~/Library/Application\ Support/iPhone\ Simulator/5.0/Library/com.apple.itunesstored
You may also need to restart the Simulator for the change to take effect.
This just removes the stored information about iTunes from Simulator. So it doesn't delete any apps in the Simulator. It works cool :)
Try to "Reset content & settings"
Simulator 6.0 stored information location:
~/Library/Application Support/iPhone Simulator/6.0/Library/com.apple.itunesstored/
Update for 6.1:
~/Library/Application Support/iPhone Simulator/6.1/Library/com.apple.itunesstored/
With iOS 7 Apple appear to have removed the ability to test In App Purchases using the simulator. Whatever you do (including removing the files in the relevant com.apple.itunesstored simulator directory) you always get the "Could not connect to iTunes store" error when trying to request the product identifiers.
Testing on a device works fine.
UPDATE: I have found that the regular "iPhone Retina (4-inch)" simulator works, but the 64bit simulator doesn't. Very odd.
To logout from iOS simulator using xCode 6.3.1, go to Setting -> Safari -> Clear History and Website Data.
Related
I'm testing an iCloud-enabled App that uses the iCloud key-value store.
I'm testing it on an iPad and an iPod, both running 5.1.1.
Today, with no apparent reason, running on the iPad (and on the iPad only) causes the message "xxx has no valid com.apple.developer.ubiquity-kvstore-identifier entitlement" to be shown and I cannot access the key-value store, which means that I cannot run the App on that device.
Accessing the iCloud file sore works fine.
The provisioning profie hasn't changed, the entitlement file hasn't changed, the project and target settings haven't changed, and the code still runs fine on the iPod.
There's only one target for all devices.
Removing the App from the iPad and re-installing it doesn't help. Product Clean doesn't help. Removing the iPad from the Xcode organizer and re-enabling it doesn't help. Removing all the App's data from iCloud doesn't help. As far as I can tell, nothing helps.
Any ideas?
I've seen problems with older profiles being cached / sticking around on the device.
You might try opening Settings:
Go to General -> Profiles.
Delete all the profiles related to this app.
Delete the app.
Re-install the app and see if that helps.
Noticed yesterday that the automatically generated entitlement file does not contain all the required entitlements. One is for document storage, the other for key-value pair data.
"ubiquity-container-identifiers" and "iCloud Key-Value Store"
Apple Docs
...also, make sure the entitlements file is listed in " Code Signing->Code Signing Entitlements" tab in build settings, for both release and debug.
I'm having a problem integrating iCloud with my app.
When I set test out iCloud availability, I receive Success for the function
NSURL *iCloudURL = [fileManager URLForUbiquityContainerIdentifier:#"AppID"];
but right after this, when I attempt to perform:
NSUbiquitousKeyValueStore *iCloudStore = [NSUbiquitousKeyValueStore defaultStore];
I receive the error
NSUbiquitousKeyValueStore error: no valid com.apple.developer.ubiquity-kvstore-identifier entitlement.
Any ideas on how to fix this? My App.Entitlements file is using the default macro'd prefixes, nothing changed from the auto-generated file. iCloud is definitely enabled on the AppID in iTunes Connect.
Thanks.
I had the same problem even though all of my code, settings, entitlements, etc were correct. I fixed it by physically deleting the app from my iPhone, then building in Xcode and running it on my iPhone and it worked. Just wanted to add that in case the other solutions don't work for somebody else out there.
Big warning: if your device is jailbroken, make sure you have uninstalled AppSync. I had two insane days because of that. iCloud (and Game Center) would not work on device with AppSync installed even with correct entitlements and profiles!
I did the follow to get this to work for me (Xcode 4.2.1):
In Xcode, go to your target > Summary > at the bottom, click Enable Entitlements.
In the iOS Provisioning Portal, go to App IDs and enabled iCloud support. (You may not have to do this, but it worked for me.)
Edit your Provisioning Profile to force it to update; then download this profile and open it so it automatically launches in Xcode.
Clean and build your app to your device.
I ran into this problem when attempting to debug a Mac (not iOS) application. The problem turned out to be that I was not signing the debug build, and did not have the deployment phase of the project with "Skip Install" set to "Yes".
Apparently, iCloud will not function properly with an unsigned application.
Add com.apple.developer.ubiquity-kvstore-identifier in your Entitlements with the following value:
$(TeamIdentifierPrefix)$(CFBundleIdentifier)
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 am trying to upload an app through the xcode 4 archive organizer. Whenever I try to validate or submit I enter in my itunes connect credentials but on the next window it asks for an application record and I get "No Value".
I have an app that is "waiting for upload" on itunes connect and I've made sure my login information is correct. I have no idea what else to try. Please help!
Here is a link to the exact problem I am having on the apple developer forums: https://devforums.apple.com/thread/95610?tstart=0
No one has posted an answer there either. =/
Edit: I ended up downloading application loader and doing it the old fashion xcode3 way and it worked just fine. I don't know why it stopped working in xcode4.
Sounds a bit strange, I have 10 apps in the iTunes store. We are going to need some more information? If it says "prepare for upload" then you still have to login to iTunes Connect and navigate to that screen. You will notice that on the top right of this screen you should see a blue blue button saying "ready to upload binary". Click that unless you have already. But I suspect you have missed this step?
Hmmm, I just did that for one of my apps and then is says "waiting for upload" ok. Not sure now. In xCode have you got all you provisioning profiles installed and the iTunes WWDC (or what ever it is called) certificate installed?
Are you using XCode 4.2? You cannot submit to the app store with it; you must use 4.1 (on Lion) or 4.0.
We were having the same problem and were using Xcode 4.2. We solved the problem by removing Xcode completely, moving everything in the Developer folder into the trash. Then we downloaded and installed the latest build of Xcode 4.2 via the Mac App Store. The problem was probably due to using an earlier build of Xcode or inconsistencies in Xcode from having upgraded from earlier versions over the years.
I would like to send someone the Xcode simulator version - not the device version - of my iPad app. I have located the .app file in the Finder. Do I just zip it up and send it off or is it more complicated than that?
Thanks,
Doug
UPDATE
Chrisbtoo got the answer on this one however he left of some critical bits for those of you trying this at home:
Path to Xcode simulator (the simulator can be run standalone.):
/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app
Path to app that appears in the home screen of the simulator:
/Users/turner/Library/Application Support/iPhone Simulator/3.2/Applications/{GUID}
It is instructive to watch what happens in the app simulator directory as you build for simulation, delete apps from the simulator desktop and generally use the simulator as an actual device.
Bottom line: This is a viable approach for sharing apps in a "simulated" ad hoc manner without the mind numbing, soul sucking process of true ad hoc app sharing.
Cheers,
Doug
Assuming the other person already has the simulator installed, you can just zip up the stuff under ~/Library/Application Support/iPhone Simulator/3.2/Applications/{GUID} (includes both the .app and any data directories needed) and send it to them - they'll need to unzip it under that same directory. What I've done in the past was to rename the {GUID} part to a more friendly name - the sim will still pick it up.
If they don't already have the simulator, they will need to sign up for a free iphone dev account and download Xcode, etc.
We just put up a little tool that will help you with this. It manages both what you need on the dev side and also the tester.
Here it is
http://blog.placeit.net/ios-app-packager/
It basically creates a little zip that you can pass to the tester and it'll install the app in the right directory and also open it up for the user with the right device selected.
I would think you want to send the entire project folder to the other person- presumably you are expecting them to open it in their XCode- and presumably they have the sdk for the app.
You have to distribute via AdHoc or App Store for beta testing.
Become a developer and then look into how to do this.
You need to have a provisioning profile, and then select the UDID's for the device you want to beta test to.
Go to the iPhone Provisioning Portal
and here is a document with more detail