I am very new to iOS development. I am developing an app, currently i am testing it on emulator. Now i need to test the app on ipod touch. I have tried to test but it says
The identity 'iPhone Developer' doesn't match any valid, non-expired certificate/private key pair in the default keychain
*I am looking for steps or any posts.*Much appreciated.
I got Apple developer License .
Thanks for your help guys.
you have to jump through a big hoop :) Code Signing
You'll need to get a developer certificate.
Go to applications / utilities and run Keychain Access.
Request a Certificate From a CA
Follow those instruction.
This certifies you.
Next, certify your device.
login to your developer account.
Go to the Provisioning portal (link from main dev. page)
Left side > Devices (you can get the UUID from iTunes or from Xcode organizer).
Add your device. Download the device certificate. Double click it to add it to Xcode.
Certify your App.
Same page in the Provisioning Portal.
Get new app id.
Then go to Provisioning.
Repeat the certificate process to get a developer distribution certificate for your app.
Download these, and see how things look in Xcode Organizer.
Finally, in the main code page of the app itself:
see if you can set the code signing to your developer certificate.
You will know when this is all set, as when you look at Xcode schemes, you should see you iPod listed.
You'll probably get stuck at various points in this process. I did. You might want to ask (or look for) a specific question, whether it's the AppID, the Developer Cert, or code signing.
There are some videos on the Apple site, but they are using an older version of Xcode..
Hope this helps.
Related
I've an iOS project developed by someone else, now I have to update it and build a release for client so that they test it.
I've updated it and while archive it in release mode, get error-
The identity 'iPhone Developer: XYZ' doesn't match any valid, non-expired certificate/private key pair in the default keychain
I am new to iOS. I have some idea that I have to change developer id or something similar in certificate. But do not know how. Can anyone help me to fix this issue?
Thanks.
You need to have Apple development certificate and .p12 file of that account of which that provisioning profile exists.
If you don't have, you need to create it from keychain, by requesting a certificate from authorised authority->generate csr and submit in you developer account.
hope it helps you........
You need to do an "Ad Hoc" distribution.
Build your App for "Release".
Go to the "Organizer" and select the Archive.
Select your build in the Archive.
Use the "Distribute" button and select the middle radio button. "Save for Enterprise or Ad Hoc Distribution".
That will produce a .ipa and ask you where you want to save it. You can put that on your desktop and distribute it.
In order to build an Ad Hoc Build, you have to get yourself an "Ad Hoc Distribution" certificate. You do that in the Apple iPhone Developer site in the provisioning portal area, located here:
iOS Provisioning Portal
You will also need to authorize the devices you want run test versions on in the same way you authorized your own devices for development.
If you have to run the App on many test devices and the testers are not technical. I suggest you take a look at a pretty good service online called "TestFlightApp".
You don't have a valid keychain item for the developer certificate, is what the error is telling you. It's a case of creating one and installing it.
But for delivering a test build - you need to create an adhoc distribution, using a distribution certificate that has the test device's udid included.
In either case - and for further troubleshooting - Apple have a handy Technical Note for dealing with these kinds of issues and how to solve them.
If you go to your project in Build Settings -> Code Signing -> Code Signing Identity, you can change the signing certificate to your own.
I have been given an iPhone device ID and asked to create a provisioning profile (or something where he could run it on his device) for that device ID so he could run it on his device.
How can I do this? This might sound duplicate for some, but I am really lost. Can someone point me to a tutorial or provide me steps to solve this ?
You should have access to some Apple Developer Program (iOS Developer Program in your case). And after successful login to this Program on the developer.apple.com you can see something like this:
Enter into iOS Provisioning Portal and select Provisioning section. You can find there How To area which fully describes this procedure.
This
article will provide complete tutorial to create developer and distribution provisioning profile with specific device UDID's
research testflightapp.com (for distributing after cert creation) but really you will need to create the cert on the apple dev site. so go to the dev site, login, go to ios provisioning and walk through the steps to create your certs.
I am doing a school project and I am required to deploy an iphone app to my phone. I have some really noob questions to ask. I have tried to read some solutions from this website but I dont understand! like from these questions: iPhone app minus app store and How can I deploy an iphone application from xcode to real iPhone device.
Can anyone here give me an easier way to understand please?
Easy:
Sign up for an iOS Developer account. This includes signing up for an Apple ID, enrolling as an Apple developer, then opting that dev account into the Developer Program. That link walks you through the process.
Hook up your device to your machine and look at it in the Xcode organizer (Window > Organizer).
Tell Xcode your want to use it for development.
I believe Xcode will now help you out more than it used to. If it doesn't, then Apple has step-by-step instructions. In short, you need to:
Use Keychain Access to generate a CSR (certificate signing request)
Submit that to Apple via the dev portal
Download the resulting development signing certificate and install it along with Apple's intermediate certificate in your keychain by double-clicking on the files.
You then need to create a provisioning profile.
Add your device ID to it.
Download it and stick it on your device, e.g., by dragging it to your device in iTunes.
Then, you can build and run your app on the device. It's a pain to explain, but pretty easy to feel your way through once you get started.
My fuller answer with pictures is available here.
With Xcode 7 for an iOS 9 target device there is now free provisioning. You don't have to sign up for the Apple Developer Program in order to test an app on a real device.
Summary from the Apple docs:
If you don’t join the Apple Developer Program, you can still build and
run your app on your devices using free provisioning....
In Xcode, add your Apple ID to Accounts preferences
In the project navigator, select the project and your target to display the project editor.
Click General and choose your name from the Team pop-up menu.
Connect the device to your Mac and choose your device from the Scheme toolbar menu.
Below the Team pop-up menu, click Fix Issue.
Click the Run button.
When you run your app on a device, you will also have to trust the developer first. On your device go to Settings > General > Profile > developer account name > Trust.
Related articles:
Xcode 7 allows anyone to download, build and ‘sideload’ iOS apps for free
iOS Untrusted Developer error when testing app
iOS9 Untrusted Enterprise Developer with no option to trust
This SO question here gives detailed steps of how to do what Jeremy suggests.
How can I deploy an iPhone application from Xcode to a real iPhone device?
Take note that /Developer was moved to /Applications/Xcode.app/Contents/Developer in Xcode 4.3.
And, this SO question says what to do if you get an [sed: RE error : Illegal byte sequence].
RE error: illegal byte sequence on Mac OS X
But in XCode-5.1/MacOS-10.9, this still didn't work - I lost the devices tab in XCode-Organizer after editing the plist file!
I wants to test my own application to my actual iPhone Device rather then simulator.
So, is there any chance to do so with ?
I have an apple developer account.. But don't know the procedure, Please help me if u have any solutions..
Thanks in advance...
Log in to http://developer.apple.com/iphone/ with your developer id and password.
Then:
http://developer.apple.com/iphone/manage/team/index.action and set up your team.
http://developer.apple.com/iphone/manage/certificates/team/index.action to create your certificate
Download the certificate you just created and double click on it to run Keychain Access and install it.
http://developer.apple.com/iphone/manage/devices/index.action to enter your iPhone's id
http://developer.apple.com/iphone/manage/bundles/index.action create an appID
http://developer.apple.com/iphone/manage/provisioningprofiles/index.action to download a provisioning profile
Drop that provisioning profile onto Xcode
Go into your project's info.plist and change your Bundle identifier to be the same as you used for the provisioning profile, minus everything up to the first "."
Go into your project's Build Info, and select the appropriate Code Signing Profile
I think now you're ready to go. Select an iPhone Device from the pop-up menu in your main project browser window, plug your iPhone in and let Xcode see it, and then Build and Run.
You can, but as iPhone applications need to be signed - you need to be a paid developer. It is then a case of logging into the portal, assigning a test device, application settings and then downloading a provisioning certificate.
The procedure is cumbersome, however it is very well documented.
You need to create your Developer Certificate and a Certificate for your software projects.
Go to http://developer.apple.com/iphone/, log in and click iPhone Developer Program Portal on the right side. You will find a "launch Assistant" there that will guide you through the next steps. It's pretty easy.
You have to join the iPhone Developer Program, which is $99 for the Standard Program, $299 for the Enterprise Program.
I am new to iPhone development. I just registered with Apple for the iPhone Developer Program. When I try to build, I am receiving an error:
Code Sign error: a valid provisioning profile matching the application’s identifier could not be found
I'm not sure what is wrong. I tried browsing the Internet but I get confused. Can anyone help me with what I should do?
At first it seems a complex process, but it's pretty straightforward when you've been through it a few times.
In a nutshell the process is this:
(I'm assuming you've set up your iPhone/iPod touch as a test device)
Via the iPhone Developer Portal
Create an App ID
(give your application a name, this is just for reference on the website and nothing to do with your own build of your application)
enter a string to identify it, like com.yourcompany.appname
(this is important and should be the same as in your .plist file inside Xcode)
Click and Save this
Go to Provisioning
There are 2 provisioning profiles you'll need
a) development - so you can install your application on a test device (i.e. your iPhone / iPod touch)
b) distribution - if you want to sell the application via the App Store
You can create the profiles by selecting your App ID, created in the previous step, from the drop down list and clicking Save
In a few moments (usually, though it can be longer) the certificate is available for download. Download this to your Mac and drop it onto the Xcode icon. Sometimes the development profile doesn't work for me like this and I drop it directly into the Organiser window in Xcode that shows my connected device.
Besides, if you are in a team account, team admin need to edit Development Provisioning Profiles, and add modify your certificates privilege.
In Xcode inside 'Edit Project Settings' you can select the certificate you wish to code sign with. Usually for debug I sign with the development certificate. Follow the instructions on the apple site and clone the release profile and call it something like release and sign this with your distribution profile. (You won't be able to load the app onto your phone with the distribution profile selected)
Make sure you select the target device as Device and not Simulator when building for the App Store!
Hope that helps, it's from memory so apologies if I've skipped some small steps.
xcode top left corner make sure you're running as "similator" "iphone"
Did you set up an iPhone provisioning profile for either development, ad hoc distribution, or app store distribution?
If not go to the iPhone developer program portal, which is linked from the developer.apple.com/iphone. Apple has provided a great series of video tutorials.
Just make sure you install the certificates or the profile won't be selectable in the project configuration. When you download the certificates double-click on them to install.
Possibly more use for others seeing this issue on a previously configured dev environment.
This error is also shown if your provisioning profile has expired, in this case you can go through the steps in Neosionnach's answer or you can go to Organizer, click on the profile and click Refresh.
This was the winner for me when I had this issue.
As of July 2012, you can go here:
https://developer.apple.com/ios/manage/overview/index.action
Then launch the "Development Provisioning Assistant." It walks through all the steps outlined by FiddleMeRagged.
You can use this process to create a Wildcard ID, if you're just looking to test your app on your iOS device and don't need to deploy to the App Store right away.