Code signing issue Xcode 7.2 - ios

I created this thread because I want to show my screenshots and the other posts didn't solve my issue.
Good morning,
I'm trying to implement a notification feature in my first iOS app and I'm having a lot of problems regarding the "code signing" options in the Xcode. I have followed the tutorial from Batch.com (the service I'm using to deploy notifications) but it's not working. I assume that it's something that I'm not doing right, so I'm going to post some screenshots because I don't know how many times I tried to make it correct.
Everything seems to be fine (no error or warning in Xcode) but when I "Archive" my App in order to upload it to my itunes connect, it displays the following error:
"Missing iOS Distribution signing identity..."
Much appreciated if someone can show me some tutorial, guide or a reply because I don't know what else to try.
Push Notifications
Provisioning profile (Distribution)
Provisioning profile (Development)
Certificates The 2nd and the 3rd are created with the following process: App ID > (App name) > Enable notifications > Create certificate
Code signing from Xcode 7.2
Thanks in advance,
Regards.
That's my Apple Worldwide Developer Relations Certificate Authority screenshot:

In Code Signing identity Select Distribution Certificates of Provisioning Profile and Developer Certificate.
If you don't have those certificate you must create them, then download and double click to install it.
#Jordi Visit following link, that explains right from scratch to develop First Push notification App.
Ray Wenderlich Push notification tutorial

Related

The app couldn't be installed because developer certificate is no longer valid

I have invited one TestFlight user from iTunes to test my app. The app is currently under review status. When that user tried to install the app, at the time of launching in iTunes, it throws the following error :
Could not install XXXX.
The app couldn't be installed because the developer's certificate is no longer valid. To resolve the issue, contact the developer.
Anyone can provide brief explanation what could be the reason for this and how it can be resolved.
I encountered this error because the build was signed using a provisioning profile whose certificate had been revoked.
When i checked in the developer center, the provisioning profile was marked as "Invalid".
I just clicked "Edit", selected the new developer certificate and regenerated the provisioning profile. When the new build was uploaded on testflight signed with the new provisioning profile, the error went away.
However, i do think Apple should be checking if the provisioning profile is still valid rather than developers finding it out after build is already approved by TestFlight and testers complain about this error.
It simply means that the developer account from which this app is uploaded is expired OR the development/distribution certificates of the app are expired or revoked. It can be resolved by activating the certificates of the app on apple's developer portal.
We have uploaded a version to apple-test flight and apple approved app for external testers. Now we're trying to download and is not working, got same message.
But if we run app from dev phone push notification works so P12 still valid. And distributed with old test flight process works.
We're trying to upload another version and see if works.
I try and try again until I read a comment on the apple forum:
This XC profile will be acceptable for upload, but is incompatible with Testflight
When you have to check provisioning profile, be sure any "XC" provisioning profile is selected (you can change it by clicking on the right arrow)
more details on the "goldstee" answer : https://forums.developer.apple.com/thread/18446
The error CLearly states what is wrong, your Certificate needs to be renewed, as your certificate may have expired or revoked, Try to create the Certificate again along with the provisioning profiles, and it will work fine
I had a slightly different issue which was a bit more puzzling as everything was 'valid'. I encountered the issue when I needed a production push certificate (which I already set 2-3 months before and tested!).
This is what I've done to resolve the issue:
Check xocde - both Code Signing and Provisioning Profile:
I had the correct settings (they matched what I was expecting and what I used for a previous build).
Check my apple developer account - it stated that my 'prod' profile was 'Active'
Check xcode -> prefrences -> provisioning profiles - I found the profile I could see in apple developer. It had the same expiry date too!
Wet back to my Apple Developer account, clicked on the profile, downloaded it and double clicked on it.
That fixed the problem for me.
If you encounter any issues, I suggest you check Parse guide (yes, I know they are shutting down but their doc is very good!). It covers more than just profiles but you can choose the step you are having an issue with.
In my case, I found everything is fine, both provisioning profile and certificates were valid.
What I did wrong is, I upload the build to TestFligth using Transporter app, which usually needs an .ipa for same but choose adHoc type instead of AppStore while exporting the binary in the organiser.
Which somehow allow the build to upload to TestFlight but didn't authorised to install on the user's device.
So make sure you're choosing the right option while exporting the build.

provisioning profile -request timed out Xcode

I added a new app to my Xcode and trying to update my provisioning profiles under Window-Organizer-Library,after giving apple developer credits, it is showing the error -the request timed out.It worked fine before for the 2 apps and I just have one account in the TEAMS, I checked Code signing in the new app and it is fine.Does the apple developer site still down??
Please help me on finding the issue.Any help would be appreciated.
Yes, the status site says that automatic Xcode configuration is not working yet. https://developer.apple.com/support/system-status/
You can still use the manual way of generating and downloading certificates from the dev portal.

Request Timed out when trying to add iOS device to the portal

I added my iPad device to the Apple Developer website by entering it's description and UDID.
Within the Xcode organizer, I attempt to add my device to the portal. I have hooked up a proper provisioning portal to it and all. Yet, the request times out every single time after I enter my proper Apple ID and password.
How do I fix this?
Also, if it helps: I get the same error when I go to Editor < Refresh from Developer Portal
Here is what you're after...
Check the following status page -
https://developer.apple.com/support/system-status/
If the "Xcode Automatic Configuration" is grayed out, that means the service is offline, and Xcode will surely time out on all developer portal related activities.
If "Certificates, Identifiers & Profiles" service is online, then Xcode will still time out, but you can access the web developer portal, manually add a device (Identifier), modify / update certificates and download them, and manually add them to your Xcode, and continue with your development / provisioning / ad-hoc distribution.
Hope this helps!
I had this same problem. Here's how I got around it:
Login to developer.apple.com and go to the provisioning profiles section:
https://developer.apple.com/account/ios/profile/profileList.action
First you have to manually add your device in the Devices section. You can get your UDID from iTunes by selecting the device and then clicking on the identifier.
Now you can manually generate a new provisioning profile that includes this device.
Go down to "Provisioning Profiles" section. Click the "+", then "iOS App Development" - Continue. Then AppID "iOS Wildcard" - Continue. Then your developer certificate in the checkbox - Continue. Now you should see your new device in the devices section. Add all of these devices, and download the new certificate. Once you have imported this new certificate into your Organizer, it should work (well, it did for me).
Let me know if this doesn't work for you for some reason and I can try to help by comparing what's happening with mine.
Just hooked up a new iPhone and trying to deploy my apps on it. No joy so far. Playing around with the profiles & provisions on the website is to no avail, since the development one is "managed by Xcode". Which currently serves up nothing more useful than a timeout.
I just got a call from Apple Developer Relations about the WWDC registrations and they told me about technical issues they have been having. Perhaps it is a wider issue?

Error in getting provisioning certificate for iOS development

I want to test my iOS application on iPad. For this I have created developer certificate,App ID and Device ID on Apple Portal. After that I have created Provisioning profile on portal.It is activated and I can see download button. When I click on download it is giving me error of Failed Download.
Note that for signing and creating .csr I have used Marmalade signing tool as I am developing applicaton using Marmalade. Also I am using Windows 7 for development.
Please let me know what can be issue.
Regards,
Premal
It is a pretty old question, but another developer might fall in the same error.
The basic steps you need are:
generating a .csr file, using Marmalade Code Sign Request tool
Inside Apple developer panel, create two certificates (.cer): One for development, one for distribution
register your iOS device with its UDID in the Apple Developer panel
Also in Apple Developer panel, create two provisioning profiles (.mobileprovision): One for development, one for distribution, associated to your certificate (.cer), and your devices (UDID).
Inside Marmalade's .mkb file, include the recently created .mobileprovision like this:
iphone-provisioning-profile='data/myprofile.mobileprovision'
Hope it helps!
Maybe it is a browser issue? Just in case, check out this tutorial which walks you through the complete iOS signing and deployment using Marmalade http://www.drmop.com/index.php/2011/12/10/marmalade-sdk-tutorial-apple-iphone-and-ipad-deployment-and-submissions/. If you follow this then you should have no problems.

submitting app to apple

i have a question regarding submitting app to apple. I have my program written and tested on actual devices. I have a certificate and provision profile set up so i can load it unto my device. However, when i go on the apple official web site to see the steps that i need to take before submitting, it requires me to get a certificate and provisoin profile again? So what do i do? Do i delete my old provisioning profile or what do i do? Confused
You don't need to delete your Developer certificate or mobile-provisions. You do need to request and download a Distribution certificate and a distribution profile before building a submittable app.
The process is kind of confusing at first, but after some time you get used to it:
For distributing the app, you have to have a distribution certificate.
Do not delete your developing certificate. Leave it there ;)
after downbloading and installing the certificate on your Xcode (on organizer), change the signing identity from your project settings (if you have XCode 4, on the navigation menu click on your project main item, then go to build settings and change the signing identity for your project to the distribution profile).
After that you will be able to archive your application (on the product menu from your Xcode).
After archiving, you can test the build and upload it to apple from your Organizer Window...
Hope to have helped!
Best of luck...

Resources