In Apple's "In-App Purchase Programming Guide" I read following advice when it comes to testing in-app purchase using Sandbox test.
Create a test user account in iTunes Connect.
On a development iOS device, sign out of the App Store in Settings.
Then build and run your app from Xcode.
Use your app to make an in-app purchase. When prompted to sign in to
the App Store, use your test account.
Note that the text “[Environment: Sandbox]” appears as part of the
prompt, indicating that you’re connected to the test environment. If
the text “[Environment: Sandbox]” doesn’t appear, you’re using the
production environment. Make sure you’re running a development-signed
build of your app. Production-signed builds use the production
environment.
My question is, How do I make sure that I am running a development-signed build of my app? Where exactly is that done, and what steps must I perform?
Project Setting -- >Build Settings
then search "code signing"
then you could see the options to select
Related
I send a new version of my iPad app to AppStore. The Apple will now validate it.
But, I want to have absolute certainty that NOTHING gone wrong. I have the Archived file and want to run it.
Ok, I can build a new program and run it in the device. But I want to test the exact file that I sent.
I tried to create a .ipa file but it give-me problem with "code signed". Run the file in simulator is a good idea. So, there are a easy way to run my new version?
You cannot install on our own device an app you build and is signed with your distribution certificate. Put another way, the build you submit to Apple cannot be directly installed by you on your device.
If you build any other way such that you can install that build on your device, it's the same code as you would otherwise be sending to Apple in a distribution build.
I have had the same desire, actually. I have an app with a conditional build setting based on whether it's a distribution build or not. For a distribution build, we have a production API URL, but for all other builds the URL is a development sandbox URL. So, I know how you feel! I wanted to be able to test the actual build sent to Apple to make sure it was hitting the correct production URL. I couldn't. I had to trust. :-)
I'll assume you're using Xcode 4; details will be different if you're using Xcode 3.
Once you've created an application archive, you can select the archive in the Organizer and click the Share... button to e-mail it to yourself and/or your testers. Xcode will let you sign it with your developer key, so you can install it on your device. When you're satisfied with the app, you can then validate and submit the app to the app store, again from the Organizer window. You'll re-sign the app with your distribution key and the application will be uploaded to iTunesConnect.
Just make sure your project and your target Build settings are absolutely 100% identical between your final Release build and your Distribution build, except for code-signing. Then do a clean build of both, one after the other, and QA the final Release build before submitting the Distribution archive.
After Apple approves the app, delete the app from one of your devices, and buy your app from the App store. That's the only way to get an exact customer download with the full customer experience. You'll get back 70% of the purchase price in a couple months; the other 30% is likely a very small part of your total development and testing cost.
How do I take my working iPhone app and put it on my phone to test with? I dont seem to see how and my googleing doesn't turn up what I think I am looking for...
I am a registered developer and have paid my $99 already.
Would anyone know?
Note: I have already placed the same answer somewhere else for the same question.
There are some steps you need to follow to test your app on your personal iPhone. Below you can find all the steps:
Create a MAC certificate at first step.
Upload that certificate to developer account.
Open developer account at https://developer.apple.com
You can now find an option for device id in your developer account on left side.
Register your iPhone device.
It is time to create your unique identifier on developer account, download your certificate and install it on XCode organize
Now open your project and embed your unique identifier in your project.
These steps can be beneficial for all software testing gusy involved in mobile application testing.
You need to register as an Apple developer. This will cost you $99/year.
That is the only way that I know of apart from Jailbreaking your phone.
Open Xcode Organizer window and provision your device for development. This will register the device UID with Apple and install the development provisioning profile on it. If you don't have provisioning profile, Xcode will create one automatically.
Once this is done, you need to set your build to use your DEV cert to aign your app. Then you can switch the build configuration from Simulator to Device and build and run on your phone.
Did you just complie your project or you complied and Run? If you Build your project and you have no errors it means everything it's ok. The next step is to Build and Run your project or just Run your project.
If you Run your project and nothing happens it means that you have something worn in your target configuration. Did you change anything there? In the Project Tab in your XCode go to Edit Active Target Settings and check that your Base SDK and Target SDK match your iDevice SDK.
IF you don't find out what the problem is, contact me, i could help you in anything you need.
I want to develop a little iPhone application, just for my personal needs. I don't want to sell it or give it to anybody as it will not be useful to anybody.
Can I have this application on my iPod/iPhone, without having to pay/suscribe/be on the Apple store ?
You need to pay the $99 for the iPhone Developer Program in order to be able to install your application onto the iPhone/iPod.
You can, by Jailbreaking your iPhone and then installing the AppSync program from Cydia. Then you can either build your app as a release and drag it into iTunes and sync your phone or change some settings (look it up on google, putting Xcode project on jailbroken device) in the Xcode project settings and open the organizer window and click on the use for development button on the device's page.
Jailbreaking your device will void your warranty if Apple find out (ie if you go into a shop and ask them to fix your device if it ever breaks without clicking restore in itunes to unjailbreak it)
With the Spirit jailbreak, Jailbreaking is as simple as plugging in your phone and pressing jailbreak.
(and the US Government has said that Jailbreaking is legal: http://www.pcworld.com/article/201892/us_government_iphone_jailbreaking_is_fair_use.html)
You could write you program and test in the simulator with the free SDK.
When you are satisfied you could send the source code to a licensed developer, I'd suggest some friend, that can build an AdHoc version for you to run on your own device.
A little tricky and you need to let another developer see the code. This app will also only last a year or less as certificates and profiles are time limited.
Why don't you write it as a website that is iPhone friendly then go to the site in your phone's browser and save a link to the site? It will show up on your desktop similar to an app. To have a true "app" I am sure you have to pay apple.
No, you can not.
It depends on what your definition of "pay/subscribe/be on the Apple Store" is.
Yes, you have to pay a subscription to the Apple iPhone Developer programme to get access to a provisioning profile to enable you to put an app you have built onto your iPhone/iPod. This will cost you $99.
The dev tools (Xcode/Interface Builder) are all free, but without the dev programme subscription you will not be able to put your app onto a physical device, only the emulator.
But no, you do not need to distribute your app via the app store to deploy it to your own phone. However, if you do not distribute the app via the app store then it ultimately doesn't get digitally signed by Apple and when your provisioning profile expires you will not be able to run the app on your phone until you have renewed the provisioning profile.
Well you may be able to do it if you jailbreak your iPhone. I haven't tried it myself but I found this link.
You'll have to decide for yourself about the moral implications of by passing apple's security.
I have implemented In App purchase in one of the existing application. I have also created SandBox account for testing it. I have run the application and tested it, its working perfect. Since, I have tested it, by buying the feature, it means I have bought that feature.
Now, there is a change in code and I want to re-test it (In App purchase thing), but since the feature is already bought I cannot test it again.
I am running and testing the application from Xcode, so I tried to delete the application from device and run / test it again by from Xcode, still no result.
If you just want to test re-downloading the content, deleting the application works.
If you want to actually re-buy it, how about creating a new additional sandbox account?
I have developed an iPhone App and I want to test this final distribution build before submitting it to the App Store for review.
Is there any safe way to make this app to run on a device?
You might want to also check out Craig Hockenberry's "The final test" blog post.
Craig gives a method of testing where the only difference between what you test and what you submit is the signing identity.
No, you can't. This makes me a little nuts, too. If you set up an ad-hoc distribution profile, that is as close as you can get. On the "positive" side, you're guaranteed to have your app rejected if it can't be installed properly...
check this out, you can actually test a distribution build :
http://nikhilkerala.blogspot.com/2010/12/how-to-test-app-store-distribution.html
You can setup a beta through the iPhone portal program. You can then load the App and the associated profile onto a phone through iTunes or XCode.
I know this question is a little old, but I've recently found a better way of testing and distributing my Apps prior to submission and this method allows me to easily get it on real devices without having to have the device physically in my hands or have the user muck with provisioning profiles, certificates or iTunes syncing.
Developers can create an account on TestFlight and create a team.
After creating a team, invite testers to your team (click "Invite a Teammate" on the team's page). The tester will receive an invitation email to join your team and will be walked through the process of creating a basic account (name, email, password) and will have their device registered and their account will be added to your team.
Once you have your testers in place, go to your team's page and select all the testers, export their device information via the link and import that list into an Ad-Hoc distribution profile.
Import that profile (and the Ad-Hoc certificate) into Xcode and rebuild your project and share it as an *.ipa file.
Go back to your TestFlightApp.com team's page and upload the binary. All the testers on your team with access to the build will get an email notification about it. All they have to do is click "Install" in the email and they will be taken to a TestFlightApp.com page that will install the App on their device over the air, no iTunes, no mucking around with profiles, etc.
I tested it this morning actually and I'm very impressed with how easy it is and it also happens to be free.
It is actually possible to install the distribution build if you have once previously installed an Ad Hoc build on your phone. Most people simply never tried it =)
And no jailbreak is required. For step by step instructions, see my answer here:
Testing App Store "Distribution" version