Closed itsterry closed 7 years ago
SOLVED.
It looks like an issue with my Xcode management.
I hadn't added my Apple Developer Account to Xcode. I did this, then
RESET my iOS Development and Distribution signing identities, then
rake device recreate_profile=1
And all became good.
Closing this issue.
You could have also ran the command with recreate_certificate
, which does the same as recreate_profile
but for the certificate.
motion-provisioning has a bunch of checks to make sure the certificate and private key are properly installed in the keychain, so my only guess is the codesign
binary is not looking in the same keychain as motion-provisioning 🤔
Thanks Mark: I didn't know about recreate_certificate. Filed for future use!
I didn't copy over any files from the old Mac, but I did do a side-by-side in 'Keychain Access' with the two machines. I noticed that on the old machine (on which 'rake device' worked) there was no entry for the private key, while there WAS an entry for the private key on the new one. That flummoxed me a little, as I was expecting it to be the other way round.
Even so, it now works, so life is good :)
Thank you for following up. SO impressed with motion-provisioning - you've removed the biggest pain point (I've encountered so far) of iOS dev work: appreciated!
Here's a weird one. I recently got a new MacBook Pro (yay!). Everything works nicely in my simulator, but 'rake device' fails with 'The specified item could not be found in the keychain'
The same code still deploys nicely using 'rake device' on my previous MacBook Pro, so I'm guessing it's a certificate thing.
I'm using Motion Provisioning, (of course!) which should take care of my certs
My keychain shows the appropriate cert in the 'Certificates' list in Keychain Access The Provisioning profile shows the device in 'ProvisionedDevices' in the build's embedded.mobileprovision file
Here's the output from 'rake device --trace'
I'm guessing the important bit is
I've tried 'rake device recreate_profile=1', but it doesn't fix it
I remember there was a way to put the device id into the rake device command, but despite a bunch of Googling, I can't find it again (is there a page anywhere with the 'rake device' options listed? - I've tried 'motion ri rake')
Any ideas anyone? (I also posted this to Rubymotion Community, just in case anyone there has solved already)