简体   繁体   中英

How to deploy phonegap app to ipad/iphone

I am totally new to making ipad/iphone application. I am totally new to using phonegap. I downloaded a HelloWorld application and opened it up with xcode. it works fine in simulator. So i tried to deploy it to my iPad. When I hit Build and Run in xcode, i get this error:

Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain.

I have no idea what this means. I applied for the Apple Developer program a few months ago. I got back an email saying I successfully enrolled. Do I need to copy some kind of certificate from my Apple Account on the website to my ipad to enable xcode to deploy my helloworld program to the ipad?

I am totally confused on how to test the HelloWorld application on my iPad....

Additional Notes

OK, i followed some steps on how to sign a certificate and install it in xcode. Now when I try to Build and Run to a device, I get this error:

Code Sign error: Provisioning profile 'forgelink' specifies the Application Identifier 'forgelink' which doesn't match the current setting 'R8T3VN6VR7.forgelink.forgelink'

Did I type something wrong when creating my certificates, bundle identifiers, app ids etc...?

To summarize, as I've just spent a whole day trying to deploy to iOS devices through xcode:

  1. You must pay the $99 + $7 in tax, to join the Apple Developer Network and deploy to actual devices

  2. You setup this association in XCode by signing in using you AppleID.

  3. You must give the unique device ID to Apple, along with signing a request and downloading a cert in order to use any real devices. Just follow their tutorial exactly, especially the copying of the.mobileprovisioning file: Apple's Provisioning Tool (sigin with your apple ID if it doesn't work)

    I created a provisioning profile for every apple device I hooked up to my computer, but maybe you can do it with one...

  4. Your device will now show up in the dropdown menu next to the play button in XCode. If not, the provisioning didn't complete successfully, and you need to go back and fix it.

you need to get developer certificates (code signing certificates) from your apple developer site. log into developer.apple.com and follow the steps

Edit:

Here's the link to iOS Provisioning portal http://developer.apple.com/ios/manage/overview/index.action

You need to install a developer certificate and create a provisioning profile. The Dev Center has detailed instructions and links, and a nice portal for creating and downloading the profiles.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM