Codesigning fail LC 8.1.5, Xocde 8.3.3

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Codesigning fail LC 8.1.5, Xocde 8.3.3

Mike Kerner via use-livecode
Have proved that Xcode can make a default project, build and install on an
iPad running 10.3.2.  This is on a fresh MacBook running Sierra.

Used a couple of weeks ago (with LC 8.1.4) for the same purpose (my main
machine is on El Capitan, hence can't have Xcode 8.3.3, hence can't build for
10.3.2), successfully. Not used since.

On attempting to update the build, got a load of invalid entitlements stuff.
Used xcode to reset certificates until it could build again.

Now, under either LC 8.1.4 or 8.1.5, I get a message
        codesigning failed with /bin/sh: line 1: 869 Segmentation fault 11
        ...

I'm cranking ahead of a demo tomorrow - any suggestions as to how I go from here?

Many thanks,

Ben

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Codesigning fail LC 8.1.5, Xocde 8.3.3

Mike Kerner via use-livecode
Hi Ben,

Yes, this probably happens because you have more than one certificates with
the same name (and one of them is valid, the other is not). The standalone
builder uses the name of the certificate to sign the binary, so it probably
picks the invalid one and this causes problems.

Mike Kerner had the same problem, and here is how he resolved it:

"I'm getting the same error with XC 8.3.
Interesting, though, I think I may have stumbled on the problem.
Every time I launch XC and go into my account and the certs/profiles list,
XC creates a new cert for development and a new one for distribution.  I
just went into my keychain, removed all of the certs, re-downloaded them
from the Apple Dev website, instead of from xcode, and reinstalled them.
Build
worked for both apps I tried."

A proper fix in the standalone builder will come soon, which will allow to
choose the certificate based on the unique HEX id rather than the
(non-unique) name.

http://quality.livecode.com/show_bug.cgi?id=20030

Hope this helps,
Panos
--

On Thu, Jul 13, 2017 at 11:24 AM, Ben Rubinstein via use-livecode <
[hidden email]> wrote:

> Have proved that Xcode can make a default project, build and install on an
> iPad running 10.3.2.  This is on a fresh MacBook running Sierra.
>
> Used a couple of weeks ago (with LC 8.1.4) for the same purpose (my main
> machine is on El Capitan, hence can't have Xcode 8.3.3, hence can't build
> for 10.3.2), successfully. Not used since.
>
> On attempting to update the build, got a load of invalid entitlements
> stuff. Used xcode to reset certificates until it could build again.
>
> Now, under either LC 8.1.4 or 8.1.5, I get a message
>         codesigning failed with /bin/sh: line 1: 869 Segmentation fault 11
>         ...
>
> I'm cranking ahead of a demo tomorrow - any suggestions as to how I go
> from here?
>
> Many thanks,
>
> Ben
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Codesigning fail LC 8.1.5, Xocde 8.3.3

Mike Kerner via use-livecode
Hi Panos,

(Apologies didn't have a chance to reply before) - fantastic, that sorted it.
Thanks for the swift reply.

FFR, a slightly quicker fix than Mike's - perhaps easier to see because this
was on a clean machine - I looked in keychain and it was obvious that of two
identically named certs, one was younger than the other; so I deleted the
older one and that fixed it - no need to re-downlaod.

BTW this has partly arisen because when I used xcode to sort out certificates,
it seems to be creating ones that expire in a week? Has anyone else seen this?

thanks again,

Ben

On 13/07/2017 11:39, panagiotis merakos via use-livecode wrote:

> Hi Ben,
>
> Yes, this probably happens because you have more than one certificates with
> the same name (and one of them is valid, the other is not). The standalone
> builder uses the name of the certificate to sign the binary, so it probably
> picks the invalid one and this causes problems.
>
> Mike Kerner had the same problem, and here is how he resolved it:
>
> "I'm getting the same error with XC 8.3.
> Interesting, though, I think I may have stumbled on the problem.
> Every time I launch XC and go into my account and the certs/profiles list,
> XC creates a new cert for development and a new one for distribution.  I
> just went into my keychain, removed all of the certs, re-downloaded them
> from the Apple Dev website, instead of from xcode, and reinstalled them.
> Build
> worked for both apps I tried."
>
> A proper fix in the standalone builder will come soon, which will allow to
> choose the certificate based on the unique HEX id rather than the
> (non-unique) name.
>
> http://quality.livecode.com/show_bug.cgi?id=20030
>
> Hope this helps,
> Panos
> --
>
> On Thu, Jul 13, 2017 at 11:24 AM, Ben Rubinstein via use-livecode <
> [hidden email]> wrote:
>
>> Have proved that Xcode can make a default project, build and install on an
>> iPad running 10.3.2.  This is on a fresh MacBook running Sierra.
>>
>> Used a couple of weeks ago (with LC 8.1.4) for the same purpose (my main
>> machine is on El Capitan, hence can't have Xcode 8.3.3, hence can't build
>> for 10.3.2), successfully. Not used since.
>>
>> On attempting to update the build, got a load of invalid entitlements
>> stuff. Used xcode to reset certificates until it could build again.
>>
>> Now, under either LC 8.1.4 or 8.1.5, I get a message
>>          codesigning failed with /bin/sh: line 1: 869 Segmentation fault 11
>>          ...
>>
>> I'm cranking ahead of a demo tomorrow - any suggestions as to how I go
>> from here?
>>
>> Many thanks,
>>
>> Ben

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Codesigning fail LC 8.1.5, Xocde 8.3.3

Mike Kerner via use-livecode
When you create the cert is there anything that allows you to define the period?

Bob S


> On Jul 13, 2017, at 10:21 , Ben Rubinstein via use-livecode <[hidden email]> wrote:
>
> Hi Panos,
>
> (Apologies didn't have a chance to reply before) - fantastic, that sorted it. Thanks for the swift reply.
>
> FFR, a slightly quicker fix than Mike's - perhaps easier to see because this was on a clean machine - I looked in keychain and it was obvious that of two identically named certs, one was younger than the other; so I deleted the older one and that fixed it - no need to re-downlaod.
>
> BTW this has partly arisen because when I used xcode to sort out certificates, it seems to be creating ones that expire in a week? Has anyone else seen this?
>
> thanks again,
>
> Ben


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Codesigning fail LC 8.1.5, Xocde 8.3.3

Mike Kerner via use-livecode
Hi all,

I think that the free provisioning profiles expire after a week. Not sure
about certificates. The certificates I have created expire after 1 year.

Best regards,
Panos
--

On Thu, Jul 13, 2017 at 6:23 PM, Bob Sneidar via use-livecode <
[hidden email]> wrote:

> When you create the cert is there anything that allows you to define the
> period?
>
> Bob S
>
>
> > On Jul 13, 2017, at 10:21 , Ben Rubinstein via use-livecode <
> [hidden email]> wrote:
> >
> > Hi Panos,
> >
> > (Apologies didn't have a chance to reply before) - fantastic, that
> sorted it. Thanks for the swift reply.
> >
> > FFR, a slightly quicker fix than Mike's - perhaps easier to see because
> this was on a clean machine - I looked in keychain and it was obvious that
> of two identically named certs, one was younger than the other; so I
> deleted the older one and that fixed it - no need to re-downlaod.
> >
> > BTW this has partly arisen because when I used xcode to sort out
> certificates, it seems to be creating ones that expire in a week? Has
> anyone else seen this?
> >
> > thanks again,
> >
> > Ben
>
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Codesigning fail LC 8.1.5, Xocde 8.3.3

Mike Kerner via use-livecode
Bob,
I have filed a bug report with Apple.  Every time I go into XC 8.3.x, open
the settings, and hit "Manage Certificates", it creates a new developer
cert and a new distribution cert.

On Thu, Jul 13, 2017 at 1:29 PM, panagiotis merakos via use-livecode <
[hidden email]> wrote:

> Hi all,
>
> I think that the free provisioning profiles expire after a week. Not sure
> about certificates. The certificates I have created expire after 1 year.
>
> Best regards,
> Panos
> --
>
> On Thu, Jul 13, 2017 at 6:23 PM, Bob Sneidar via use-livecode <
> [hidden email]> wrote:
>
> > When you create the cert is there anything that allows you to define the
> > period?
> >
> > Bob S
> >
> >
> > > On Jul 13, 2017, at 10:21 , Ben Rubinstein via use-livecode <
> > [hidden email]> wrote:
> > >
> > > Hi Panos,
> > >
> > > (Apologies didn't have a chance to reply before) - fantastic, that
> > sorted it. Thanks for the swift reply.
> > >
> > > FFR, a slightly quicker fix than Mike's - perhaps easier to see because
> > this was on a clean machine - I looked in keychain and it was obvious
> that
> > of two identically named certs, one was younger than the other; so I
> > deleted the older one and that fixed it - no need to re-downlaod.
> > >
> > > BTW this has partly arisen because when I used xcode to sort out
> > certificates, it seems to be creating ones that expire in a week? Has
> > anyone else seen this?
> > >
> > > thanks again,
> > >
> > > Ben
> >
> >
> > _______________________________________________
> > use-livecode mailing list
> > [hidden email]
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



--
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Codesigning fail LC 8.1.5, Xocde 8.3.3

Mike Kerner via use-livecode
I just got a reply from Apple.  The drop-down list isn't for filtering,
it's just so you can select which cert you wish to add, which was not clear
to me.

On Thu, Jul 13, 2017 at 2:04 PM, Mike Kerner <[hidden email]>
wrote:

> Bob,
> I have filed a bug report with Apple.  Every time I go into XC 8.3.x, open
> the settings, and hit "Manage Certificates", it creates a new developer
> cert and a new distribution cert.
>
> On Thu, Jul 13, 2017 at 1:29 PM, panagiotis merakos via use-livecode <
> [hidden email]> wrote:
>
>> Hi all,
>>
>> I think that the free provisioning profiles expire after a week. Not sure
>> about certificates. The certificates I have created expire after 1 year.
>>
>> Best regards,
>> Panos
>> --
>>
>> On Thu, Jul 13, 2017 at 6:23 PM, Bob Sneidar via use-livecode <
>> [hidden email]> wrote:
>>
>> > When you create the cert is there anything that allows you to define the
>> > period?
>> >
>> > Bob S
>> >
>> >
>> > > On Jul 13, 2017, at 10:21 , Ben Rubinstein via use-livecode <
>> > [hidden email]> wrote:
>> > >
>> > > Hi Panos,
>> > >
>> > > (Apologies didn't have a chance to reply before) - fantastic, that
>> > sorted it. Thanks for the swift reply.
>> > >
>> > > FFR, a slightly quicker fix than Mike's - perhaps easier to see
>> because
>> > this was on a clean machine - I looked in keychain and it was obvious
>> that
>> > of two identically named certs, one was younger than the other; so I
>> > deleted the older one and that fixed it - no need to re-downlaod.
>> > >
>> > > BTW this has partly arisen because when I used xcode to sort out
>> > certificates, it seems to be creating ones that expire in a week? Has
>> > anyone else seen this?
>> > >
>> > > thanks again,
>> > >
>> > > Ben
>> >
>> >
>> > _______________________________________________
>> > use-livecode mailing list
>> > [hidden email]
>> > Please visit this url to subscribe, unsubscribe and manage your
>> > subscription preferences:
>> > http://lists.runrev.com/mailman/listinfo/use-livecode
>> >
>> _______________________________________________
>> use-livecode mailing list
>> [hidden email]
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>    and did a little diving.
> And God said, "This is good."
>



--
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode