make revoke certificate to valid in xcode 6.1 - ios

I am very new in iOS development. I make wrong things for my certificate in xcode and now it become revoke for my account.
My iOS Development is Revoked. and in keychain Access all certificates are gone.
What could I do to be valid again?

Log in to your Apple developer account and upload a new certificate signing request to get a valid certificate. How to do that check this link:
https://mobiforge.com/design-development/deploying-iphone-apps-real-devices
http://www.aquafadas.com/en/documentation/sample-page/developer-apple-com-2/generating-your-development-certificate/ (Old Link Dead)

1st Step (Apple developer site)
Go to this URL (Apple developer site):
https://developer.apple.com/devcenter/ios/index.action
Log in with your valid account.
On the right-hand side, there is a column with a heading "iOS
Developer Program". Select the "Provisioning Portal" section.
On the left-hand side, click the row of the column that is labeled
"Certificates"
Since I already have a certificate I'm not sure, but somewhere on
this page you should be able to click "Request certificate" or
something similar.
Wait for your new certificate, and then download and install it as
before
2nd Step (Xcode)
Revoke all current certificates and provisioning profiles
To invoke "Automatic Device Provisioning" open Xcode's "Window" menu
Organizer > Devices tab > "Provisioning Profile" sidebar under Library.
Check the "Automatic Device Provisioning" checkbox and click the
"Refresh" button. After clicking Refresh a dialog should appear
requesting your team member account credentials. It is important to
answer 'yes' when asked to create your iPhone Certificates if any are
needed. In that case, clicking "Submit
Request" will allow Xcode to create, download and install the
certificate(s).
According the 2nd step XCode is doing for you automatically below things
Prompts to create and install your "iPhone Developer" certificate
if one doesn't already exist in the iOS Portal
(for admin or agent roles) prompts to create and install your
"iPhone Distribution" certificate if one doesn't already exist in the
iOS Portal
Creates a Wildcard App ID if one does not already exist in the iOS
Portal
Creates, or updates with new devices added to the portal, your iOS
Team Provisioning Profile and installs that into your profile library
Syncs the profile library on your local machine with the profiles
on the iOS Portal
You can also refer apple link https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html

Related

Flutter | Xcode | "could not build the precompiled application for the device"

If you are seeing this error when building a Flutter app for a physical iOS device, here is the solution.
I had this error when building for a physical iOS device in Flutter or in the Runner.xcworkspace project. I spent probably 8-9 hours trying to remedy this error, following countless tutorials and answers on other StackOverflow questions. NOTHING worked.
Today, I coincidentally found the solution (in my case) and it may be the one for you if you're experiencing this error since Apple changed their Developer Relations Intermediate Certificate.
Open Keychain Access, select login on the left pane, select Certificates at the top, search apple, delete all:
Apple Distribution certificates
Apple Development certificates
Apple Worldwide Developer Relations Certification Authority certificates
(DO NOT DELETE your Apple Push Services certificates
Click this to download the new Apple Worldwide Developer Relations Certification Authority certificate.
Click it to add it to your Keychain.
In Keychain Access, at the top, go to Keychain Access > Certificate Assistant > Request a Certificate From a Certificate Authority
Type in your email (most likely your Apple ID).
Select Save to Disk and choose your Downloads folder.
Go to developer.apple.com.
Click Account, sign in with your Apple ID / Developer Account.
Click Certificates, IDs & Profiles.
Again, revoke any Development/Distribution certificates.
Click the plus icon, select Apple Development
Upload the signing request you just made.
Download the certificate.
Click the certificate to add it to your Keychain.
Repeat the bold steps for the Apple Distribution option.
Open your Xcode workspace.
Click your project, click your Target, click Signing & Capabilities
If you see a red error below your Apple ID, click the button to resolve it.
You should then be good to go!
I hope this helped you.

No provisioning profile with a valid signing identity .No matching provisioning profiles found, xcode, ios

This message shows under identity --> Team
No provisioning profile with a valid signing identity(i.e. certificate and private key pair) matching the bundle identifier "com.myname.appname" were found.
Why is this.please help me with this.
I can test with simulator,but cannot test with my iphone.
This is how the keychain shows
I changed my mac password today
'm using a free account, not a paid one
Since release of Xcode 7, developers are allowed to test or run app on any number of devices by logging in with your Apple ID. There is no need of paid Program membership of Apple.
Follow below steps :
Add your Apple ID to Accounts preferences in Xcode.
Go to General tab in Project and choose your team name from the Team pop-up menu.
Below the Team pop-up menu, click Fix Issue.
When warning text under the Team menu disappears , Click the Run button.

iOS app how to submit using client's profile

We are developing an iOS app and we are using our company iOS Dev account (our provisioning profile) for that.
Now the client wants to submit the app using his Apple account.
If our client doesn't have a Mac I think we'll have to create the ipa file and send him. But I'm not sure how I can create the distribution file using their provisioning profile.
Can you please explain what is the process followed in this kind of a scenario?
Do I need to create another apple account and add it to the client's iOS Dev account and create the ipa file using that provisioning profile or is there any other way to do this?
Superb Question.I have stuck with this lot of times.After that i made me doing very simple and easy.
The first thing is you have create the App Id for your application in
-> Developer.apple.com
-> Member Center
-> Click certificates
-> where you can see the app id (It is in left side of the window).If you click app id in center page you can see the old app id's.
-> In above click + symbol for adding new app id for your app
Go to key chain access.If you do not find out that,just enter in spot light.It will come.
->Click the key chain access and go to toolbar of the Mac
->where you can see the Apple Symbol,Keychain Access,File,Edit,View,Window,Help
->Click Keychain access
->Then Click Certificate Assistant
once you click that you can see the options.
->Then click Request a Certificate from certificate Authority.
->Now Certificate information box opens.
->Give user email address
->Then click save to disk only.
Now if you see the desktop,there is CSR.It is used for creating developer and distribution.
3.Go to developer.apple.com site
-> Member Center
-> Click certificates
Click Developer Certificate
->Click + add button
->Select IOS Apple Development for Developer Provisional Certificate
->It asks you CSR for the Generating Developer Certificate
->Just choose from Desktop.
->Click Generate
->Double Click for Download
->If you give the correct CSR it shows developer certificate in keychain with key.
Click Production Certificate
->Click + add button
->Select IOS Apple Adhoc Distribution for Distribution Provisional Certificate
->It asks you CSRstrong text for the Generating Production Certificate
->Just choose from Desktop.
->Click Generate
->Double Click for Download
->If you give the correct CSR it shows production certificate in keychain with key
Click Development Provisional for running the app in device(It is in left below of the window)
->Click + button.It is on above.
->Choose your app id from list app id list (drop down list)
->Then Give the name to development provisional
->Select or Choose the Development Certificate
->Also Choose or Select all devices or particular your client device
->Then submit(generate and done)
->Click Download
->After that Double Click the downloaded certificate.
->If you check in xcode (Click project and choose Build Setting -> click code signing)
->First choose your provisional certificate(Your downloaded development certificate is appearing just select that)
->After that click Code Signing Identity and select the Developer Certificate from the list
->Finally Targets-Code Signing
->First choose your provisional certificate(Your downloaded development certificate is appearing just select that)
->After that click Code Signing Identity and select the Developer Certificate
Click Distribution Provisional for running the app in required devices(It is in left below of the window)
->Click + button.It is on above.
->Choose your app id from list app id list (drop down list)
->Then Give the name to Distribution Provisional
->Select or Choose the Production Certificate
->Also Choose or Select all devices or particular your client device
->Then submit(generate and done)
->Click Download
->After that Double Click the downloaded certificate.
->If you check in xcode (Click project and choose Build Setting -> click code signing)
->First choose your provisional certificate(Your downloaded distribution certificate is appearing just select that)
->After that click Code Signing Identity and select the Distribution Certificate
->Finally Targets-Code Signing
->First choose your provisional certificate(Your downloaded distribution certificate is appearing just select that)
->After that click Code Signing Identity and select the Production Certificate
Finally Archive this for ipa.
NOTE - Give the Correct App Id in .plist Then only it accepts and run.

How to get an APN profile certificate into the keychain

My laptop/handset is set up and working for enabling our application to work with push notifications.
A colleague however is getting the "no valid aps-environment entitlement string found" upon installing the app with their setup.
I noticed that Xcode's Organizer is reporting an error for the Apple Push Profile saying "no valid signing identity" could be found (everything looks set up ok on the provisioning portal web page), and also noticed that on my machine in my keychain access in the "My Certificates" section there is a certificate for the Push. However on my colleague's machine they do not have this in their keychain access.
I presume its absence is the reason for the "no valid signing identity"? If so, how do they add it to their keychain? (I can't remember how it got there for me and can't readily find out from googling).
TIA
It doesn't need to be I don't think, try this:
Check you have the necessary profiles on the device - go to the settings, then general, profiles, check your profiles are listed, especially the push profile of course.
You can also check this from the Organizer section of XCode. In Organizer there are two sections that say Provision Profiles - one at the top left in Library (this is the profiles in XCode that you use to sign etc.) Also you will see a section call Provisioning Profiles for the device that is connected, this is the profile that is installed on the handset.
If you don't have them installed on the handset you can download them from the provisioning portal website, then click on the Add button at the bottom of the Organizer window.
While in the provisioning portal you should also check that the Apple Push Profile includes the certificates:
- click on Provisioning on the left hand menu
- you'll see a list of your profile, select to EDIT the Apple push profile
- you'll see a certificates section, with a list of developers or testers etc. you have in your project, make sure the check box is checked for them.
- you'll also see a devices section, make sure the device you are testing on has been added.
If you have any old profiles in XCode or on the device delete them and download/refresh/install all the new profiles from the provisioning portal

Revoked certificate - iPhone Programming

I deleted a certificate in Provisioning Portal (Certificates). Now, when I want create a new certificate I see a warning and this message is sent to my email:
Your Development Certificate Has Been Revoked - you have revoked your
Development certificate and it's no longer valid
My account is valid.
What can I do to add new certificate without problems or restore the old one that I have on disk?
Manual Way:
Go to this URL (Apple developer site):
https://developer.apple.com/devcenter/ios/index.action
Log in with your valid account.
On the right-hand side, there is a column with a heading "iOS Developer Program". Select the "Provisioning Portal" section.
On the left-hand side, click the row of the column that is labeled "Certificates"
Since I already have a certificate I'm not sure, but somewhere on this page you should be able to click "Request certificate" or something similar.
Wait for your new certificate, and then download and install it as before
Other details can be found in Apple's Tech Notes here: https://developer.apple.com/legacy/library/technotes/tn2250/_index.html
You can ALSO have XCode create everything for you.
Revoke all current certificates and provisioning profiles
To invoke "Automatic Device Provisioning" open Xcode's "Window" menu > Organizer > Devices tab > "Provisioning Profile" sidebar under Library.
Check the "Automatic Device Provisioning" checkbox and click the "Refresh" button. After clicking Refresh a dialog should appear requesting your team member account credentials. It is important to answer 'yes' when asked to create your iPhone Certificates if any are needed. In that case, clicking "Submit Request" will allow Xcode to create, download and install the certificate(s).
What XCode is doing for you automatically, according to the above tech note:
1) Prompts to create and install your "iPhone Developer" certificate if one doesn't already exist in the iOS Portal
2) (for admin or agent roles) prompts to create and install your "iPhone Distribution" certificate if one doesn't already exist in the iOS Portal
3) Creates a Wildcard App ID if one does not already exist in the iOS Portal
4) Creates, or updates with new devices added to the portal, your iOS Team Provisioning Profile and installs that into your profile library
5) Syncs the profile library on your local machine with the profiles on the iOS Portal
Solution for Xcode 8
Xcode Preferences > Accounts
Choose your account
Click 'View Details'
Click 'Download all profiles'
Restart Xcode
This step is optional, meaning that might work without this: Product > press 'alt' button > Clean Build Folder
These solved my issue.

Resources