Validation of the Apple Store receipt fails - app-store

I wrote the code that allows my application to validate the receipt issued by the Apple Store. For the moment, the application doesn’t have a receipt. I have a valid distribution provisioning profile.
When I launch the application, it exits with a status of 173 of course.
Subsequently, the system requests my Apple ID and password but they are not recognized. Should I create an account on Itunes Connect before I can receive a valid receipt ?

check your profiling and code signatures. when signed "developer" or "debug" then AppStore will ask for a so called sandbox user. and yes, you create this userid(s) in iTunes connect > users > create test user.

Related

How to share final .ipa file with clients to upload into itunes connect?

I am a developer and I am making an app for my client.
I have indie developer account so During testing period I am using client's UDID to build ipa file so they can test on their iOS devices.
Now client will distribute final ipa file into itunes connect.
so What are the different legal solutions for this?
Assume that they have indie developer account too and client is non-technical so they don't want to mess with xcode or source code.
And in future I will do the same for other clients too.
In order to submit an app to iTunesConnect, it has to be signed with a valid distribution certificate and provisioning profile that match the developer account they are submitted to. That means that someone (whether it's you or your client) needs to create an appID, a distribution certificate and a matching app store provisioning profile that you will then use in Xcode to sign the ipa that will be submitted to the store.
Since your client isn't a technical person and you will most likely be able to do that process much quicker and more efficiently than he/she will, the best solution would be for your client to simply give you the credentials to the developer account and for you to perform these steps there. If that's not an option, and your client has a company account (and not a personal account), he/she can give you access to their account by adding you to their development team - that way, you'll still be able to perform the necessary actions on the account, without having the admin's personal credentials.
As for the submission itself, once you have a signed archive, you can either submit it directly via Xcode or you can send the signed ipa to the client, and he/she can submit it via Application Loader from their admin credentials. But, you will still have to sign it with valid certificate/profile from the right developer account.
I hope this makes sense and makes things a bit clearer. Good luck.

in app purchase test account not working in IOS?

we are testing in app purchase with sandbox test account and at time of testing it shows Verification and after verification of payment info when i tried to test in app purchase it redirects me to app store and app store shows time out
am i doing anything wrong?
i have also created three more sandbox test account for testing in app purchase. but same error occurs.
Please help.
For me to fix this issue, I simply registered a new user in iTunesConnect, but I set their store to 'USA'.
Step 1: Create the test account online.
Step 2: Log out of the current account in Settings.app > App Store.
Step 3: DO NOT log into the test account yet.
Step 4: Build and run your app on the device, signed with a Development profile (not ad-hoc).
Step 5: Make your purchase. It'll give the UIAlertView, via which you sign into the test account.
If you sign into your test account via any other mechanism, and especially if you add credit card info, that test account will be permanently broken. I recommend trying my steps above with a brand new test account. To make them easier to remember, I usually suffix my test account names with a number, and increment it each time.
This is a bug from apple server side. because from last couple of days many test accounts are not working.
Been having similar problem, getting better by doing this;
Create a new account in iTunes connect - DO NOT LOG IN OR ANYTHING! (this seems to be important)
From the device (not simulator) sign out of any account.
Run the app and try.
My problem is now confirming I have some kind of purchase.
Starting from iOS 12,There is a separate section to sign in sandbox account in iphone settings. This allow us to test in sandbox without sign out from iTunes account.
I don't think you're doing anything wrong. The verification is about filling up some missing fields, but you don't have control once the user press Continue button, so chances are there's something wrong with the itunes verification site; just keep trying a while after.
I had a similar problem, when the test user was not in the correct Apple developer Account. Make sure in iTunes Connect, that your test user is indeed in Test Users.

The signature was invalid or or it was not signed with iPhone distribution certificate coming along

I am having same error, but my case is different. Please let me know different things below.
The email id for the request certificate should be same as the email id of iOS developer account and should be same as iTunes uploading account.
in my case the id which i bind with request certificate (abc#abc.com) is same as dev account (login to dev site for creating profile and all - abc#abc.com) and its different when i upload to iTunes (xyz#abc.com)
Please help me in this case, here are some confusion, and due to this I am getting this above subject error.
There is no invalid code sign it comes when I upload to iTunes via app loader.
I have resolved my issues.
iTunes allowed me to upload the app with other id which was sub id of master id.

Does AppStore distribute a license key automatically after purchasing an application

From my previous experience with shareit I implemented this purchase/validate process
Provide shareit a list of valid license keys
shareit sends an email to the user with a valid license key, selected automatically by shareit system from the list of keys I provided
User starts the application and application asks for a license key
User enters the license key provided by shareit through email
Application checks if the provided license key is valid through a web service hosted on my server
The server sends digitally signed license file back to the application
On subsequent launches application checks if digitally signed license is provided for the current machine
My question is: Can I provide app store a list of approved license keys that will be distributed automatically to the user after successfull purchase
If not the only solution I can think of is publishing the application on app store as a free application and then redirect user to shareit when app is launched on IPhone so that she can purchase a license key which is known by me
I don't quite get why would you need to distribute license keys to iPhone users. App Store has its own business model which you have to deal with. If you would like to make a 'try & buy' version of your app, you can do so with the In App Purchase mechanism. It gives you two options:
Include all of the functionality in the initial release of your app. Your app may downloaded from the App Store for free, but users will get the paid functionaly only after purchasing it from within the app.
Although Apple docs don't specifically mention the ability to purchase license keys via In App Purchase mechanism, you can present it as an unlimited lifetime subscription. What I mean by this is that your users can indeed purchase license keys, and it will be up to you and your server to let your mobile app reveal its hidden functionality after the purchase has been registered.
Relevant link

iPhone app developed by me and submitted by client?

I am finishing an app for my client.
He wants to submit it to Apple himself.
What must I do ?
Should I give him the app unsigned ?
Should I ask him a provisioning profile ?
Should I be added to his team and to his Distribution Profile ?
Thanks a lot for your help ?
Thierry
Have your client sign up for the iPhone Developer Program so that way when your client submits the app to the App Store it will be under the client's company name. You can still manage all the code signing and provisioning for your client if they do not know how to do this stuff. The client can simply give u access to their developer account to handle all that stuff.
I would just give him the source code, unless you specifically don't want to do that for some reason. That way, he can just compile it himself.
What I've done for clients who want to submit to Apple themselves:
The client must create (or you can create for them if they give you their login info) the app store distribution profile for the app and send it to you. Requires some communication between you and client to make sure they use the right app id, etc.
(I think you may need the client's developer certificate as well in order for them to "own" the app -- not 100% sure about this)
Don't forget to also get the private key file as the certificate signing won't work without it
I set the client cert / app store dist profile into the app and build the app for app store.
Deliver the binary to the client.
Client uploads to itunes connect.