sidekick-feedback icon indicating copy to clipboard operation
sidekick-feedback copied to clipboard

Sidekick Auto Generate for provision and certificate failed.

Open pollyolly opened this issue 5 years ago • 24 comments

Please, provide the details below:

Did you verify whether this issue has already been reported here?

Yes

Tell us about the problem

After I tried to use auto generate for the ISO provisioning and certificate this error comes out.

Auto Generation Failed An error has occured while generating the certificate and mobile provision. Reason: expecting an array or an iterable object but got [object Null].

Which platform(s) does the issue occur on?

MacBook Pro macOS High Siera v10.13.16 Sidekick

Provide the following version numbers that the issue occurs with:

Version: 1.19.1-v.2019.8.1.2 NativeScript CLI version: 6.2.0 CLI extension nativescript-cloud version: 1.19.2 CLI extension nativescript-starter-kits version: 0.3.5

How to obtain this information is explained in the Gather information about your development environment section.

Tell us how to recreate the issue in as much detail as possible

  1. Start the sidekick
  2. In the connected devises.
  3. Click the gear icon and use auto generate of provision and certificate.
  4. Provide iOS free apple account.
  5. Error comes out.

Does this issue happen every time?

Today after I updated and upgraded to nativescript 6

Send the client logs

[19-11-11 13:48:52.545] (CLI) Starting Cloud code sign. Cloud operation id: 48a0ea04-c5fe-4fbf-9b15-166b6010dd48 [19-11-11 13:48:52.545] (CLI) Starting generation of iOS certificate and provision files. [19-11-11 13:49:00.441] An error has occured while generating the certificate and mobile provision. Reason: expecting an array or an iterable object but got [object Null]., Error: Codesign failed. Reason is: expecting an array or an iterable object but got [object Null]. at CloudCodesignService. (/Users/UPDILC/.local/share/.nativescript-cli/extensions/node_modules/nativescript-cloud/lib/services/cloud-codesign-service.js:75:29) at Generator.next () at fulfilled (/Users/UPDILC/.local/share/.nativescript-cli/extensions/node_modules/nativescript-cloud/lib/services/cloud-codesign-service.js:4:58) at process._tickCallback (internal/process/next_tick.js:68:7)

pollyolly avatar Nov 11 '19 05:11 pollyolly

Same error even I already created a new project using sidekick. Please help.

pollyolly avatar Nov 12 '19 05:11 pollyolly

Hey everyone, Thank you for reporting this issue. We've reproduced it and we've investigated the case - the problem is caused by change in Apple's API for the Free Developer program. We'll need some time to investigate it further and see how to resolve this issue. Please, excuse us for the caused inconvenience.

rosen-vladimirov avatar Nov 13 '19 05:11 rosen-vladimirov

Hey everyone, Thank you for reporting this issue. We've reproduced it and we've investigated the case - the problem is caused by change in Apple's API for the Free Developer program. We'll need some time to investigate it further and see how to resolve this issue. Please, excuse us for the caused inconvenience.

Hi, thanks for looking into this. Any updates?

edmundpf avatar Nov 18 '19 14:11 edmundpf

Haha. I got excited when it said there was an update. But then it was just a better looking error message.😅 I take this won't be an easy fix and might take a little while?

Nickmanbear avatar Nov 20 '19 08:11 Nickmanbear

Any updates on this? Looks like windows users just can't do cloud builds without this functionality, currently stuck on deployment of an app since I can't test for iOS

edmundpf avatar Dec 13 '19 13:12 edmundpf

Is there a workaround for this until the bug is fix? Do I open a MAC and generate the certificate and provision that I then copy to my PC?

EDIT I tried on MAC and same problem. I just notice that the issue occur on a MAC. I initially thought the problem was for PC only. The problem is the Apple's API for the Free Developer program which does not care about the hardware.

robomaniac avatar Dec 22 '19 03:12 robomaniac

Any Update?

gzimgashi avatar Dec 25 '19 13:12 gzimgashi

Maybe it's because 2FA?

poldixd avatar Dec 29 '19 17:12 poldixd

Hey, is there any workaround for this? Without the autogen feature it doesnt seem possible to work off a windows machine with a free apple account

mayerlench avatar Jan 08 '20 14:01 mayerlench

Is there any progress with this issue yet?

hasanbildirici avatar Jan 15 '20 16:01 hasanbildirici

Still Sidekick showing this error today. Is there any update on this issue.

vikasacharya16 avatar Jan 30 '20 04:01 vikasacharya16

Still Sidekick showing this error today. Is there any update on this issue.

No, right now the only way to develop for IOS on a windows machine is to use cloud builds with a payed developer license. I spun up a MacOS virtual machine on my windows machine and i am able to develop using the free IOS developer account

mayerlench avatar Jan 30 '20 04:01 mayerlench

@mayerlench Can you post the exact steps to achieve what you did. So, that it will be very help full which might reduce the burden of researching. Currently i started exploring aws virtual machine to build ios app. but I didn't achieved it yet and wasting time in lot of researching.

vikasacharya16 avatar Jan 30 '20 04:01 vikasacharya16

@mayerlench

What MACOS for VM you use? can you share it?

pollyolly avatar Jan 31 '20 08:01 pollyolly

In order to use the free apple developer license you need to be on MacOS. You can achieve this by using an apple computer or running MacOS virtually on a windows machine.

I dont recommend to do this if you arent familiar with virtual machines. Heres a link https://bit.ly/31ezWpX

Once you are running MacOS you will need to install all the nativescript dependencies and download Xcode to provision the free developer certificate for you app

While this works, its not an ideal way of developing. It can be heavy and slow. Personally i got a paid dev account and use nativescript cloud builds

mayerlench avatar Jan 31 '20 12:01 mayerlench

Hi @rosen-vladimirov have you got any update on this issue?

CameronRiou avatar Feb 04 '20 22:02 CameronRiou

@mayerlench, I'm running on a Mac and I have this issue too, so I'm not sure setting up a Mac VM will resolve it.

mcasto avatar Feb 26 '20 13:02 mcasto

@mayerlench, I'm running on a Mac and I have this issue too, so I'm not sure setting up a Mac VM will resolve it.

Have you provisioned the certificate in xcode?

mayerlench avatar Feb 26 '20 13:02 mayerlench

Shouldn't Auto Generate provisioning profile & cert within NativeScript Sidekick do that? Or are you saying I need to do something extra in Xcode?

mcasto avatar Feb 26 '20 15:02 mcasto

Shouldn't Auto Generate provisioning profile & cert within NativeScript Sidekick do that? Or are you saying I need to do something extra in Xcode?

You need to open the project in xcode and theres a button there to provision the certificate but this must be done through xcode

mayerlench avatar Feb 26 '20 16:02 mayerlench

Interesting. I haven't used NS in ~1.5 years. At that point, I could generate the cert in NS Sidekick & it worked. Apparently, things have changed a little :D

mcasto avatar Feb 26 '20 17:02 mcasto

Interesting. I haven't used NS in ~1.5 years. At that point, I could generate the cert in NS Sidekick & it worked. Apparently, things have changed a little :D

Yup. The ability to to provision through sidekick has been broken for a while as apples api no longer supports because shame be it on them to make developers lifes a little easier 😅

mayerlench avatar Feb 26 '20 17:02 mayerlench

Right? I love my Mac & iPhone (though, since Jobs's death they seem to have slipped a bit in some areas), but, as a developer ... { groan }

mcasto avatar Feb 26 '20 23:02 mcasto

Still Sidekick showing this error today. Is there any update on this issue.

No, right now the only way to develop for IOS on a windows machine is to use cloud builds with a payed developer license. I spun up a MacOS virtual machine on my windows machine and i am able to develop using the free IOS developer account

I did the same. How to get your ipa loaded to a device for testing? Thanks!

nonereally avatar Apr 25 '20 19:04 nonereally