app could not be verified alert - iphone

HEllo,
I am quite new to iphone development, I am following the specified steps to test app on my device.
I have two provisioning profiles outof which none are expired. These profiles aare working fine on 3.0 devices, but when I try on 2.0(iphone) devices it says application could not be verified.
I am using snow lepord and it doesnot provide simulator support below 3.0 thats why I have to test my app on devce.
Can you help me regarding this.
Thnx in advance
edit:
ok I think this one is done but now its showing "Failed to upload MyApp.app" due to which app appears in iphone but I cannot debug my code.
I have checked the tick box in entitlements.plist

Google is your friend here.
Two good articles right off the bat...

Related

Remotely debug iOS app

I am developing an iOS (5.0+) app, which works very fine on 6 different devices in our company.
When we send the build to the customer, they report they have tested it on 5 different devices and the app is always crashing right after launch.
I have integrated TestFlight and Flurry SDKs to track usage and problems.
The strange thing is that no crashes are reported from both TestFlight and Flurry.
I have adviced the customer to remove the provisioning profiles and try to install everything from scratch, which did not produce different results.
The app is in the App Store, approved from the first try.
It is even stranger that the customer reports crashing when installing a TestFlight build and installing from the App Store.
Is the app going to be approved in the App Store if it crashes right after launch?
Any ideas on how to remotely debug the app or how to proceed in this case?
Thanks and happy holidays!
One option is to ensure your logging and get the crash logs. This Apple documentation shows how to get the logs both with and without Xcode available:
http://developer.apple.com/library/ios/#qa/qa1747/_index.html
After you get the logs, here's documentation on how to read and analyze:
http://developer.apple.com/library/ios/#technotes/tn2151/_index.html
The problem has been resolved by adding both German and English localization to the project settings and having 2 storyboards for each language. Big up #RoboticCat!

In-App Purchase Products not showing in iOS 5.1

If I use 4.2 iOS device such as 2nd gen iPod touch, products show up.
if I use 5.1 iOS device such as iPhone 4s, no product(s) shows up.
Anybody having same issue? I'm testing this in the sandbox environment.
Thanks in advance for any help!
The in-app purchase sandbox is so temperamental. If your code is working on 4.2 and not on 5.1 then the problem is probably one of your environment - there is a long list of things that can go wrong.
This guide was the best help I found on the net around in app purchases and highlights the problems with the API and testing:
http://troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/
The #1 problems I had were:
Not signing into the right iTunes sandbox account on the testing device. Always check.
Deleting the app off the device, clean build, reinstall. This was very important.
Check your in-app purchase codes are right.
Interpreting a failure as something wrong with my app. Sometimes a failure meant that the sandbox wasn't responding (cannot connect to itunes store). I would run the same code the next day and it would work. The sandbox doesn't give enough error information for you to know if the sandbox failed or your app code or some mismatch with in-app code data. Put as much debugging log statements in your code to check the response from the server and whether product codes are returned on initialization.
Good luck - it is a very irritating developer experience

"This game is not recognized by game center." iPhone Development

There are already a couple of questions on this but I followed their steps to solve it and it doesn't seem to work for me. Here's what I have done:
1. I double checked to have the bundle identifier in the xcode project to be the exact same as the provisioning profile found on the provisioning portal (it also says Game Center is enabled). No wildcards.
2. I have logged in using a sandboxed account to gamecenter (made 2 accounts incase one wasn't sandbox). I did see the word "sandbox" with some numbers/letters on the top left while signing up for an account, so I'm 100% sure I have a sandboxed account. Tried 2 different sandbox accounts. Tried on 2 different devices (ipad/iphone). Also tried on the iPhone simulator.
3. I have deleted my app from my iPhone many times and tried it again.
I'm running 4.3/xcode 4 on iPhone + iPad.
I'm still receiving the message. Any help would be appreciated. Thanks!
From memory (I battled with this recently)…
In addition to what you've already done, you have to setup your app (even if it's using a fake bundle ID) in ITC (iTunes Connect). This means you need to put in a name, category, a screenshot and a bunch of other stuff (you can just put dummy data in there for testing purposes). Then you need to create a version of your app, then enable Game Center on that version.
There might have been a few other important steps that I've forgotten, but in between the voodoo dancing and making sacrifices to the gods of iOS etc., that's all I can recall.
Deleting the old app from your device can sometimes help too. Looks like it stores some data with an app and will try to login to actual Game Center instead of Sandbox Mode.
This solved my problem when trying to add Game Center in an update.
This is how I solved the problem. I opened the Settings App, then select Game Center. At the bottom under Developer, turn on "Sandbox".
I had a similar problem. Make sure you have the exact same app version in xcode and ITC. For example, if you have 1.0 in xcode and 1 in ITC it will not work. The version is a string not a float, so 1.0 != 1.
My situation is , It showed "this game is not recognized by game center",and my ipad is jail-broken. so I uninstall Appsync 5.0+ in Cydia--> logout game center---> reinstall app, it's ok now
In my case, almost everything people had suggested was in already correct for my app.
My bundle IDs were correct, my iTunes Connect record was set up, etc. However, the version number of the build that had been uploaded to iTunes Connect was not recent (and didn't match the version I was building onto the test device).
After uploading a newer build to iTunes Connect with a matching version number, it appeared to fix the problem.
I'm not guaranteeing it won't break in the future (because the authentication seems to be very flaky and has worked previously, even with the old version record), but for now it seems to have solved the problem for me.
I learned from somewhere that if your machine(iphone or ipad) is jail-broken, it will assume you use the real game center without the sandbox one.
So, if your devices are jail-broken, just restore it, and give it a try.
Hope this will help you.

iPhone iAd Enabled App Published Still Showing Test Ads

I integrated iAd in my application which got approved by Apple. I downloaded the app (FREE) to my device and ran it. For some reason instead of displaying real world ads it still says "Test Ads". Anyone experience this issue? The app got approved yesterday maybe it is too early to get the ads but I think Apple should not show test ads.
It seems like Apple will always display TEST ads on the machine it was tested on.
Hey, make sure you delete the binary you used in testing off of your phone, and off of iTunes if you distributed that way. The phone will see that the version numbers are the same, and skip some of the code upgrades. Once you reinstall from iTunes, you should be good to go! Congrats on getting the app out into the store.

IPhone App Submission Problem

I have finally gotten my first app to work properly and I'm attempting to send it to the App Store. In my Application Loader, I'm getting this error:
Info.plist does not contain a CFBundleResourceSpecification
I have read on the following SO question that this could be because I am Building on the simulator and then zipping up the app, and sending this instead of building on a proper device.
http://stackoverflow.com/questions/2180201/cant-upload-application-binary-to-the-app-store
However, when I provision a distribution profile, I can't select my IPod Touch under my devices when I have App Store selected. When I switch it to AdHoc I can select it, then I can Build it on the device perfectly, everything works. Has anybody had this issue before?
Any advice would help me here, Thanks!
An App Store build can't be run on a device using Xcode. It's only good for submission.