adding ios key results in "error: invalid filetype" message

  • 1
  • Problem
  • Updated 9 years ago
Hello -- I am trying to upload my certificate and provisioning profile. I took the following steps.

First I tried exporting my already existing files from the XCode Organizer (the same ones I use when building with PhoneGap on the Mac).

No matter what I try, I get a message... "error: invalid filetype [sic]".

Most recently, I started from scratch...

1) I downloaded the latest developer certificate and provisioning profile from the Apple Provisioning site.

2) I added both of these (updated) in the XCode Organizer window.

3) I exported the developer certificate and chose my standard password. (Note: The PhoneGap documentation mentions right-clicking. In the latest version of XCode, there are Import/Export options at the bottom of the window.)

4) I exported the provisioning profile.

5) I attempted to upload these to Phone Gap Build and received the "invalid file type" message.

I also tried variations of the above steps: sometimes using the exported files, sometimes not, and mixing them. And, I tried re-importing the files back into the XCode Organizer to make sure they were valid.

Of course, these things happen, especially at this stage of PhoneGap Build. A more detailed error message would be useful, however (either a number or an indication of which file is causing the problem).

What else can I do?

THANKS!
Photo of Lee Behzadi

Lee Behzadi

  • 2 Posts
  • 0 Reply Likes
  • frustrated

Posted 9 years ago

  • 1
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
Hi Lee,

For the iOS certificates, we expect an exported certificate with the extension "p12" and a provisioning profile with the extension "mobileprovision" - can you confirm that both the files you're trying to upload have the expected extensions?

Thanks,
Andrew
Photo of Lee Behzadi

Lee Behzadi

  • 2 Posts
  • 0 Reply Likes
Hi Andrew. Thank you for the ultra-quick reply. That was it. Thanks again.
Photo of tanstaafl28

tanstaafl28

  • 2 Posts
  • 0 Reply Likes
Andrew,

Could you provide an example of how the certificate would look at the top of the index.html file? I am getting the "error: invalid filetype" message. I assume because it is written as a standard html file. I am attempting to convert a webform for use on an android tablet as an in-house checklist.