iOS certification generation with Codename One - ios

I am trying to generate the required certificates to build Apple App, but I get a runtime error while adding a new device via the certificate wizard.
The error reads (RuntimeError) Please login using Spaceship::Portal.login('user','password')
Before trying to generate a certificate I first connected successfully to itunes connect with my credentials. The error seems to be related to Fastlane presumably used internally by CodenameOne to generate the certificate.
Moreover I also tried to remove one character in the UDID and I got the same error which is estonishing. However the UDID has been double checked with someone who dictated it to me. So the UDID is a 1-to-1 copy of the one shown in itunes.
Why do I get this error message and what can be done to remove it and be able to add the new device ?
Please note : My setup involves codenameone running under Eclipse Mars under Linux 64.
Any help appreciated!

Thanks for reporting this. It should now be fixed. Please give it another try.

Related

Trouble generating iOS certificates

I'm trying to get the Hello World app running on a iPhone, but have been getting a confusing error. I've tried this 4-5 times over the last 4 days with the same results. Here are the steps I have followed:
1- I started with a fresh NetBeans install (NetBeans 8.2 Patch 1 under Windows 7), installed the plugin (v3.6.0), and created a new CodenameOne Project named 'Hello' from the Flat Blue theme and the template 'Hello World (Bare Bones). I set the package name to something unique as required.
2- Then I went to developer.apple.com and revoked any certificates that were there, and deleted all of the appIDs and Provisioning Profiles. There is one iPhone5 device specified. I believe this should give CodenameOne a clean slate to work with.
3- Back with NetBeans and CodenameOne, I invoked the 'iOS Certificate Wizard', specified my AppleID/pswd when requested (yes they are valid!), and selected my iPhone device. The next screen summarized the certs (2 of them) and an AppID to be used to generate the provisioning profiles. On the next step, I get the error: "Could not create the appstore profile." with accompanying messages to the effect that "The Apple Developer website is undergoing maintenance", etc. I've included the screen capture:
When I check https://developer.apple.com/system-status, everything looks like it should be ok. If I look at my Apple Developer Account, Codename One has generated an iOS Development Certificate and an iOS Distribution Certificate, but not any App IDs or Provisioning Profiles.
FWIW, the plugin is version 3.6.0 from the default update site (https://codenameone.googlecode.com/svn/trunk/CodenameOne/repo/netbeans/updates.xml)
Has anyone else had this problem? I'm at a loss as to what to try next.
Any help would be appreciated.
Thanks,
Terry
On trying to generate a certificate on my side, I experienced the same issue.
It's a generic 'come back later' message from Apple.
Contact Apple and I will do the same to let them know about the issue.
Their system status is an idle dashboard which is unreliable.
Edit:
On trying again, I clicked Ok on that message and proceeded. The certificates and Provisioning Profiles were generated successfully and the app works fine with the certificates.

iOS: How to install a configuration profile programmatically

I would like to install a configuration profile in an iPhone that I receive through Safari from my localhost (RoutingHTTPServer) in the device.
I follow guidelines and tips that I found in this website to make it possible, but I am facing a small issue, in the final steps. I am able to run the localhost and create the configuration profile, but then Safari does not allow me to install the file due to an "unknown error".
I made some research and I found several possibilities to this "unknown error", most of them related to the format of the contents of the file created. I arrange that in different ways, but still the same problem.
My application it is just a concept solution, but I would like to know if the error could be because, it is mandatory to sign and encrypt the configuration file before sending it through Safari.
Thanks in advance
No, it is not mandatory to sign the configuration profile. Try the following steps
Connect the device to the laptop (windows/mac).
Open iPhone Configuration Utility.
Create a profile of your need.
Try installing it into the mobile.
Check the console for error.
If installation succeeded then export the profile and place it into the web-server and try installing the profile OTA. (Note: Uninstall the previously installed profile).
Open the profile and analyse it for identifying your mistake.
Your research is right, the main reason for Unknown Error is the formatting mistake. The detailed description about the payloads and keys are available under this link.

IOS Distribution Certificate using Adobe Flash - Error Storage Issue (Mobile Provisioning File) PackageExtractionFailed

I am trying to install an app on my iPhone from my computer using Flash cs6. I had it working before but my p12 expired. My friend on a mac made me a new one. From developer.apple.com I created a new provisioning file. I run the app install and I get this error.
Error Creating Files.
Installation Error: PackageExtractionFailed.
Device Error: please check if there is enough space on the device.
I have enough space. I think this is an issue with the two files and a combination of many other things. There are just so many options when making the provisioning file that I don't know what ones to choose for DEVELOPMENT.
I am putting all the errors in length in hopes that, when we find the answer, someone will find this in a search and it will help them too. It's very hard to find info on this error. Any help would be greatly appreciated. Thanks
http://www.instructables.com/id/How-to-use-Adobes-iPhone-Packager-without-an-Appl/step2/Exporting-the-App/
try with this one, if it work make another provisioning profile

Receiving Installation Error: ApplicationVerificationFailed in Flash Builder for iOS

This is the error I'm getting when I try to install my app on my iPhone.
More details:
It did work at one point. I used a different computer recently, working on a different project and had to create a new certificate. This invalidated my other projects (profiles). I went back to working on the first computer and uploaded the certificate from that one. I recreated the app profiles and downloaded the provisioning files based on that previous certificate. None of that worked. In the end I had to start over from scratch as shown in the answer below.
I finally got it to work by starting over from scratch. I think the problem was that when I went to a new computer and uploaded a new certificate I had to revoke the old certificate. It seems that once it's revoked that maybe it can't be used again.
So I recreated my signing certificate, recreated a p12 file from it, recreated (modified) the app profile (making sure to select my certificate again and selected all of my devices again), redownloaded the mobile provisioning file, reselected these in the iOS configuration screen and restarted Flash Builder and it worked again.
I had tried to use a wildcard, "com.myactualdomainhere.*" and I couldn't get that to work but I didn't do all the steps above (I didn't recreate my signing certificate) and if you can't reuse a certificate then that may have been the issue.
So I did all the steps above and used the app name, "com.myactualdomainhere.MyApp" and made sure it matched in the application descriptor file (for AIR apps) com.myactualdomainhere.MyApp.
It would be nice if someday they could simplify this process and give better error messages. Maybe they could verify the different parts along the way, for example, "your certificate is ok, your app profile checks out, but your app id is incorrect."
Also, MilkyWay posted a link to a post that has some more helpful information.
I experienced this error working with code from another vendor. As it turns out, they were trying to compile the IPA with an Entitlements.plist file. I just deleted that block of code (below) and it compiled just fine.
<Entitlements>
<![CDATA[
<key>get-task-allow</key>
<true/>
]]>
</Entitlements>
I've just been stuck with this problem this morning, took a while to figure out so thought I'd post incase anyone else has the same issue.
We had a problem adding a device to our provisioning profile, an iPhone 5 on iOS7. It turned out that the application we were using to get the UDID (UDID+) was giving us the wrong UDID. When I used the ID returned by
adt -devices -platform ios
It worked.
In my case it was at matter of unaccepted characters in some embedded folders. Folder names that contained special characters (æ ø å or whitespace) resulted in an ApplicationVerificationFailed error. (Not exactly the most precise error description I have encountered.)
I know this is an old thread, but if anyone else is Googling around and finds this thread and it does NOT fix your issue, I wanted to share my experience on this one. If you've confirmed that your certificates and provisioning profiles are all good and are still getting this, I determined that you will receive this exact same error if you have your app configured for TESTFLIGHT. In other words, in your APPNAME-app.xml make sure that the following is commented out within the IOS entitlements section:
<key>beta-reports-active</key>
<true/>
Once I commented that out, I was able to resume debugging locally. Pissed that I spent a day on this, but at least it's working now.
This can also happen if you change your Apple ID password.
My problem was that in my Application ID under apple developers, my app wasn't checked for PushNotification, but within my xml application descriptor, I had the entitlments for push notifiaction (aps_development).
Once à removed the APS value from my XML, worked all good.
If you haven't compiled in a long time, be sure you set your compilation settings to device testing and make sure you are using your testing provisioning profile. I got this today because my settings were still on app store.
The problem for me was that I was using a .p12 file which was meant for Apple Push Notifications instead of the .p12 file of my Developer certificate..
I used the .p12 I exported from my developer certificate and it works great..!
In my case it was incorrect application id problem (different compiled app id then app id I have defined apple)
sometimes this error occurs because of you bin-debug folder.
if that folder has some unknown character or something this error occurs.
I suggest if in that case you have to clean the project or find that file and change it's name
If it was working previously, just restart the flash builder.
I did some tests today on test flight with the Entitlements tags. It need to be remove when testing localy or I get the same error.
Like jbyun94 mentionned, get rid of unknown characters in filenames.
I had files in conflict from dropbox that prevented the app from compiling.
Removed them and everything worked again (though I'd lost a couple of hours :/)

How to create Deployment package for iOS using Marmalade

I am using Windows7 and Marmalade 5.1.10. I tried to create deployment package for iOS but it is giving error of certificate not found at particular location. I checked in that location and there is one .cer file presents. I installed that certificate under trusted root authorities store. Still I am getting same error. Then I copied that and renamed .cer file to AppleWWDRCA.cer file as per given in error message. After that it is giving me error:
"Signing error: Can't find your developer signing private key at C:\Marmalade\5.1\s3e\deploy\plugins\iphone\certificates\developer_identity.key".
Let me know how to resolve this issue.
Note that I dont have Apple ID created for iOS developper.
Please share your input on this.
What if I just want to test with iPhone simuulator? I tried following:
I created my simple demo application. Then I created package for iPhone on my Windows PC. While creating package I selected option "Do Not Sign". I got success with that. Then I transfered .app to my MacMini. I copied .app to XCode in appropriate folder of Application. Then I started iPhone Simulator and I can see my application. But when I click on that it is not opening.
So now let me know what can be issue. Is it due to certificate issue or due to selected option "Do Not Sign"?
Please treat this as little bit urgent.
Thank you very much in advance for your inputs.
Regards,
Premal Panchal
There is a detailed description of how to create the necessary certificate files in the Marmalade Documentation help file, installed as part of the SDK. You can find it here:-
Marmalade->Platform Guides->iOS Guide (for iPhone, iPad, iPod)->iOS Requirements and Setup Guide
When you say you don't have an Apple ID created for iOS Developer do you mean you haven't signed up to the iOS Developer Program? If so, then you won't be able to generate a signed build at all.
Regarding testing with the iPhone simulator, I don't think that this is possible. If it is possible you will probably need to have a signed app. I believe the reason XCode can run in the iPhone Simulator even without valid developer certificates is that it is doing it's own signing of the generated app behind the scenes.

Resources