Giter Club home page Giter Club logo

motion-provisioning's People

Contributors

amirrajan avatar andrewhavens avatar ben5516 avatar dam13n avatar jeremiahlukus avatar jjaffeux avatar markvillacampa avatar p8 avatar spnkr avatar watson1978 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

motion-provisioning's Issues

Can't use free account

  • Result
$ rake
License file not present. Please activate RubyMotion with `motion activate' and try again.
Couldn't verify that spaceship is up to date
      Info Output directory for MotionProvisioning set to '/Users/watson/prj/RubyMotionSamples/ios/SpaceRocks/provisioning'.
      Info Logging into the Developer Portal with email '[email protected]'.
rake aborted!
User '[email protected]' does not have access to any teams with an active membership
/Users/watson/prj/motion-provisioning/lib/motion-provisioning.rb:98:in `client'
/Users/watson/prj/motion-provisioning/lib/motion-provisioning/certificate.rb:6:in `client'
/Users/watson/prj/motion-provisioning/lib/motion-provisioning/certificate.rb:39:in `certificate_name'
/Users/watson/prj/motion-provisioning/lib/motion-provisioning.rb:207:in `certificate'
/Users/watson/prj/RubyMotionSamples/ios/SpaceRocks/Rakefile:15:in `block in <top (required)>'
/Users/watson/prj/RubyMotion/lib/motion/project/config.rb:121:in `block in setup'
/Users/watson/prj/RubyMotion/lib/motion/project/config.rb:121:in `each'
/Users/watson/prj/RubyMotion/lib/motion/project/config.rb:121:in `setup'
/Users/watson/prj/RubyMotion/lib/motion/project/app.rb:66:in `config'
/Users/watson/prj/RubyMotion/lib/motion/project/template/ios.rb:156:in `block in <top (required)>'
Tasks: TOP => default => simulator
(See full trace by running task with --trace)
  • Configuration
Motion::Project::App.setup do |app|
...

  app.codesign_certificate = MotionProvisioning.certificate(
    type: :development,
    platform: :ios,
    free: true
  )
  app.provisioning_profile = MotionProvisioning.profile(
    bundle_identifier: app.identifier,
    app_name: app.name,
    platform: :ios,
    type: :development,
    free: true
  )
end

Doesn't handle updated license not agreed

Spaceship::Client::UnexpectedResponse: {"responseId"=>"5068aec2-d34d-4bdd-a998-d8f3d777b073", "resultCode"=>4550, "resultString"=>"Program License Agreement updated", "userString"=>"The selected team&#x27;s agent, &#x27;xxxx xxxx&#x27; must agree to the latest Program License Agreement in their developer account.&#xa;https&#x3a;&#x2f;&#x2f;developer.apple.com&#x2f;account&#x2f;", "creationTimestamp"=>"2016-08-14T15:07:35Z", "protocolVersion"=>"QH65B2", "userLocale"=>"en_US", "requestUrl"=>"https://developer.apple.com/services-account/QH65B2/account/ios/identifiers/listAppIds.action", "httpCode"=>200}
/Users/joffreyjaffeux/.gem/ruby/2.3.1/gems/spaceship-0.31.1/lib/spaceship/client.rb:433:in `parse_response'
/Users/joffreyjaffeux/.gem/ruby/2.3.1/gems/spaceship-0.31.1/lib/spaceship/portal/portal_client.rb:115:in `block in apps'
/Users/joffreyjaffeux/.gem/ruby/2.3.1/gems/spaceship-0.31.1/lib/spaceship/client.rb:182:in `block in paging'
/Users/joffreyjaffeux/.gem/ruby/2.3.1/gems/spaceship-0.31.1/lib/spaceship/client.rb:180:in `loop'
/Users/joffreyjaffeux/.gem/ruby/2.3.1/gems/spaceship-0.31.1/lib/spaceship/client.rb:180:in `paging'
/Users/joffreyjaffeux/.gem/ruby/2.3.1/gems/spaceship-0.31.1/lib/spaceship/portal/portal_client.rb:108:in `apps'
/Users/joffreyjaffeux/.gem/ruby/2.3.1/gems/spaceship-0.31.1/lib/spaceship/portal/app.rb:80:in `all'
/Users/joffreyjaffeux/.gem/ruby/2.3.1/gems/spaceship-0.31.1/lib/spaceship/portal/app.rb:105:in `find'
/Users/joffreyjaffeux/.gem/ruby/2.3.1/gems/motion-provisioning-0.0.3/lib/motion-provisioning/application.rb:6:in `find_or_create'
/Users/joffreyjaffeux/.gem/ruby/2.3.1/gems/motion-provisioning-0.0.3/lib/motion-provisioning/provisioning_profile.rb:38:in `provisioning_profile'
/Users/joffreyjaffeux/.gem/ruby/2.3.1/gems/motion-provisioning-0.0.3/lib/motion-provisioning.rb:227:in `profile'
/Users/joffreyjaffeux/Documents/projects/ColorGolfMobile/config/ios.rb:19:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/config.rb:202:in `development'
/Users/joffreyjaffeux/Documents/projects/ColorGolfMobile/config/ios.rb:14:in `block in <top (required)>'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `block in setup'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `each'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `setup'
/Library/RubyMotion/lib/motion/project/app.rb:66:in `config'
/Library/RubyMotion/lib/motion/project/template/ios.rb:157:in `block in <top (required)>'
/Users/joffreyjaffeux/.gem/ruby/2.3.1/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
Tasks: TOP => simulator
(See full trace by running task with --trace)

Typo when typing password

FYI, when entering my Apple ID and entering the corresponding password, the backspace key adds additional keystrokes instead of deleting the previous character. Services does gracefully fail and prompts for authentication again. However, this does appear to be untypical behavior.

Provisioning error for content-extension

Content-extension (for new push notificaitons) throwing the error below when trying to upload. Was this something we needed to take care of in the Apple portal? I thought this was working fine before, but I haven't looked into it too much yet.

Upload: ./build/iPhoneOS-10.0-Release/Levee.ipa
✗ Error: Errors uploading './build/iPhoneOS-10.0-Release/Levee.ipa': (
✗ ERROR ITMS-90161: \"Invalid Provisioning Profile. The provisioning profile included in the bundle com.getlevee.levee.new-transaction [Payload/Levee.app/PlugIns/new-transaction.appex] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal.\"

developer_id type not working

with the following configuration

app.release do
    app.codesign_certificate = MotionProvisioning.certificate(platform: :mac, type: :developer_id, free: false)
end
bundle exec rake build:release

I get

      Info Do you want to add the 'provisioning' folder fo your '.gitignore' file? (Recommended) (Y/n): 
      Info Your Apple ID email: <REDACTED>
      Info Do you want to save the email to the config file ('/Users/gauberger/dev/islandmagic/obelisk-osx/provisioning/config.yaml') so you dont have to type it again? (Y/n): 
      Info Logging into the Developer Portal with email '<REDACTED>'.
Available session is not valid any more. Continuing with normal login.
      Info Selected team "< REDACTED >).
rake aborted!
NoMethodError: undefined method `developer_i_d_application' for Spaceship::Portal::Certificate:Class
/Users/gauberger/.rvm/gems/ruby-2.6.4@obelisk/gems/fastlane-2.158.0/spaceship/lib/spaceship/base.rb:191:in `method_missing'
/Users/gauberger/.rvm/gems/ruby-2.6.4@obelisk/bundler/gems/motion-provisioning-3baf8750c996/lib/motion-provisioning/certificate.rb:166:in `certificate_type'
/Users/gauberger/.rvm/gems/ruby-2.6.4@obelisk/bundler/gems/motion-provisioning-3baf8750c996/lib/motion-provisioning/certificate.rb:144:in `certificates'
/Users/gauberger/.rvm/gems/ruby-2.6.4@obelisk/bundler/gems/motion-provisioning-3baf8750c996/lib/motion-provisioning/certificate.rb:42:in `certificate_name'
/Users/gauberger/.rvm/gems/ruby-2.6.4@obelisk/bundler/gems/motion-provisioning-3baf8750c996/lib/motion-provisioning.rb:204:in `certificate'
/Users/gauberger/dev/islandmagic/obelisk-osx/Rakefile:60:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/config.rb:207:in `release'
/Users/gauberger/dev/islandmagic/obelisk-osx/Rakefile:59:in `block in <top (required)>'
/Users/gauberger/.rvm/gems/ruby-2.6.4@obelisk/gems/bubble-wrap-1.9.7/lib/bubble-wrap/ext/motion_project_app.rb:10:in `block in setup_with_bubblewrap'
/Library/RubyMotion/lib/motion/project/config.rb:122:in `block in setup'
/Library/RubyMotion/lib/motion/project/config.rb:122:in `each'
/Library/RubyMotion/lib/motion/project/config.rb:122:in `setup'
/Users/gauberger/.rvm/gems/ruby-2.6.4@obelisk/gems/sugarcube-4.0.0/lib/sugarcube_pre_setup.rb:37:in `setup'
/Library/RubyMotion/lib/motion/project/app.rb:66:in `config'
/Users/gauberger/.rvm/gems/ruby-2.6.4@obelisk/gems/bubble-wrap-1.9.7/lib/bubble-wrap/ext/motion_project_app.rb:24:in `config_with_bubblewrap'
/Users/gauberger/.rvm/gems/ruby-2.6.4@obelisk/bundler/gems/motion.h-b78219e6d490/lib/motion.h.rb:23:in `build_with_motion_h'
/Users/gauberger/.rubymotion/rubymotion-templates/motion/project/template/osx.rb:50:in `block (2 levels) in <top (required)>'
/Users/gauberger/.rvm/gems/ruby-2.6.4@obelisk/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/Users/gauberger/.rvm/rubies/ruby-2.6.4/bin/bundle:30:in `block in <main>'
/Users/gauberger/.rvm/rubies/ruby-2.6.4/bin/bundle:22:in `<main>'
Tasks: TOP => build:release
(See full trace by running task with --trace)

using type: :distribution works

Two-step verification not supported

Hey Mark,

Excellent work! but could it be that 2-step verification is not supported?

Two Step Verification for account '[email protected]' is enabled
Please select a device to verify your identity
rake aborted!
NoMethodError: undefined method`choose' for #Spaceship::PortalClient:0x007fe8eee43868
/usr/local/lib/ruby/gems/2.2.0/gems/spaceship-0.34.1/lib/spaceship/two_step_client.rb:35:in `handle_two_step'
/usr/local/lib/ruby/gems/2.2.0/gems/spaceship-0.34.1/lib/spaceship/client.rb:297:in`send_shared_login_request'
/usr/local/lib/ruby/gems/2.2.0/gems/spaceship-0.34.1/lib/spaceship/portal/portal_client.rb:13:in `send_login_request'
/usr/local/lib/ruby/gems/2.2.0/gems/spaceship-0.34.1/lib/spaceship/client.rb:372:in`do_login'
/usr/local/lib/ruby/gems/2.2.0/gems/motion-provisioning-0.0.5/lib/motion-provisioning.rb:68:in `client'
/usr/local/lib/ruby/gems/2.2.0/gems/motion-provisioning-0.0.5/lib/motion-provisioning/certificate.rb:6:in`client'
/usr/local/lib/ruby/gems/2.2.0/gems/motion-provisioning-0.0.5/lib/motion-provisioning/certificate.rb:42:in `certificate_name'
/usr/local/lib/ruby/gems/2.2.0/gems/motion-provisioning-0.0.5/lib/motion-provisioning.rb:195:in`certificate'
/Users/jj/Source/tarot/Rakefile:45:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/config.rb:202:in`development'
/Users/jj/Source/tarot/Rakefile:42:in `block in <top (required)>'
/Library/RubyMotion/lib/motion/project/config.rb:121:in`call'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `block in setup'
/Library/RubyMotion/lib/motion/project/config.rb:121:in`each'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `setup'
/Library/RubyMotion/lib/motion/project/app.rb:66:in`config'
/Library/RubyMotion/lib/motion/project/template/ios.rb:157:in `block in <top (required)>'
/usr/local/lib/ruby/gems/2.2.0/gems/rake-11.3.0/exe/rake:27:in`<top (required)>'

Getting Invalid 2 step response

Has Apple changed the format of the 2 Step response? I'm getting this from two_step_client.rb:43:in 'handle_two_step':

Invalid 2 step response {"trustedPhoneNumbers"=>[{"id"=>1, "pushMode"=>"sms", "obfuscatedNumber"=>"(•••) •••-••53"}], "securityCode"=>{"length"=>6, "tooManyCodesSent"=>false, "tooManyCodesValidated"=>false, "securityCodeLocked"=>false}, "authenticationType"=>"hsa2", "recoveryUrl"=>"https://iforgot.apple.com/phone/[email protected]&autoSubmitAccount=true&appId=142", "cantUsePhoneNumberUrl"=>"https://iforgot.apple.com/iforgot/phone/add?context=cantuse&[email protected]&autoSubmitAccount=true&appId=142", "recoveryWebUrl"=>"https://iforgot.apple.com/password/verify/[email protected]&autoSubmitAccount=true&appId=142", "repairPhoneNumberUrl"=>"https://gsa.apple.com/appleid/account/manage/repair/verify/phone", "repairPhoneNumberWebUrl"=>"https://appleid.apple.com/widget/account/repair?#!repair", "aboutTwoFactorAuthenticationUrl"=>"https://support.apple.com/kb/HT204921", "trustedPhoneNumber"=>{"id"=>1, "pushMode"=>"sms", "obfuscatedNumber"=>"(•••) •••-••53"}, "hsa2Account"=>true, "supportsRecovery"=>true, "managedAccount"=>false}

I see that the code is expecting a hash with a key of trustedDevices but the response Apple is sending me doesn't contain that key. Has that changed to trustedPhoneNumbers? I tried modifying the gem's code to look for that instead and it got a little further. The code got to the point of trying to list devices for me to choose but then it failed with: NoMethodError: undefined method 'choose' for #<Spaceship::PortalClient:0x007f8c9b38c398>. So I'm guessing that a lot has changed in that response from Apple.

Relax fastlane version

Fastlane has a newer feature version 2.116.x.
motion-provisioning locks to ~> 2.113.0

Proposal

Change gemspec to lock fastlane to ~> 2.113

Revoking certificates on macOS fails

When trying to add developer ID to a Mac app. I have the developer certificates in my Keychain but RM doesn't seem to be finding them. The error says the certificate can only be revoked by developer support.

 Error None of the available certificates (1) is installed on the local machine. Revoking...
rake aborted!
Spaceship::Client::UnexpectedResponse: {"responseId"=>"f040e3d3-2cb2-4a54-9e1d-c28bb6c16c69", "resultCode"=>7475, "resultString"=>"This certificate can only be revoked by Apple Developer Program Support.&#xa;https&#x3a;&#x2f;&#x2f;developer.apple.com&#x2f;support", "userString"=>"This certificate can only be revoked by Apple Developer Program Support.&#xa;https&#x3a;&#x2f;&#x2f;developer.apple.com&#x2f;support", "creationTimestamp"=>"2017-01-03T22:44:48Z", "protocolVersion"=>"QH65B2", "userLocale"=>"en_US", "requestUrl"=>"https://developer.apple.com/services-account/QH65B2/account/mac/certificate/revokeCertificate.action", "httpCode"=>200}

Can 'rake device' from one Mac, but not from another, with same Motion Provisioning

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'

** Invoke device (first_time)
** Invoke archive (first_time)
** Invoke build:device (first_time)
** Execute build:device
Info Using certificate 'iPhone Developer: Terry Shuttleworth (46K3D9CXH7)'.
Info Using provisioning profile '(MotionProvisioning) com.morsedigital.helpware2 ios development'.
rm -f ./build/iPhoneOS-9.3-Development/nav.app/Info.plist
/usr/bin/ar -rc "libext.a" CoreDataQueryManagedObjectBase.m.o
/usr/bin/ranlib "libext.a"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -o "./build/iPhoneOS-9.3-Development/nav.app/nav" -filelist "/var/folders/2n/_8tdxrn97mg12m0hs0l2g69r0000gn/T/linker-objs-list20161216-10241-1yvqxe8" -arch arm64 -arch armv7 -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk" -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/System/Library/Frameworks -miphoneos-version-min=9.3 -Wl,-no_pie -L"/Library/RubyMotion/data/ios/9.3/iPhoneOS" -lrubymotion-static -lobjc -licucore -framework AddressBook -framework AddressBookUI -framework CFNetwork -framework CoreAudio -framework CoreData -framework CoreFoundation -framework CoreGraphics -framework CoreLocation -framework CoreMotion -framework Foundation -framework MapKit -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework QuartzCore -framework Security -framework SpriteKit -framework SystemConfiguration -framework UIKit -force_load "/Users/terry/.rvm/gems/ruby-2.3.3/gems/motion-yaml-1.6.1/lib/YAMLKit/libYAMLKit_iOS.a" -force_load "/Users/terry/.rvm/gems/ruby-2.3.3/gems/cdq-1.0.0/vendor/cdq/ext/build-iPhoneOS/libext.a" -force_load "/Users/terry/ios/helpware_ios/vendor/Pods/build-iPhoneOS/libAFNetworking.a" -force_load "/Users/terry/ios/helpware_ios/vendor/Pods/build-iPhoneOS/libISO8601DateFormatterValueTransformer.a" -force_load "/Users/terry/ios/helpware_ios/vendor/Pods/build-iPhoneOS/libRestKit.a" -force_load "/Users/terry/ios/helpware_ios/vendor/Pods/build-iPhoneOS/libRKValueTransformers.a" -force_load "/Users/terry/ios/helpware_ios/vendor/Pods/build-iPhoneOS/libSOCKit.a" -force_load "/Users/terry/ios/helpware_ios/vendor/Pods/build-iPhoneOS/libSVProgressHUD.a" -force_load "/Users/terry/ios/helpware_ios/vendor/Pods/build-iPhoneOS/libTPKeyboardAvoiding.a" -force_load "/Users/terry/ios/helpware_ios/vendor/Pods/build-iPhoneOS/libTransitionKit.a"
ld: warning: -no_pie ignored for arm64
/usr/bin/plutil -convert binary1 "./build/iPhoneOS-9.3-Development/nav.app/Info.plist"
/usr/bin/dsymutil "./build/iPhoneOS-9.3-Development/nav.app/nav" -o "./build/iPhoneOS-9.3-Development/nav.app.dSYM"
while processing /Users/terry/.rvm/gems/ruby-2.3.3/gems/motion-yaml-1.6.1/lib/YAMLKit/libYAMLKit_iOS.a(YKEmitter.o):
warning: /var/folders/zm/rqj5mcrx0pg0j9mslw69ctnc0000gn/C/com.apple.DeveloperTools/7.2-7C68/Xcode/SharedPrecompiledHeaders/YAMLKit_Prefix-berfqicfzenrkfgqbeeevjiesmcj/YAMLKit_Prefix.pch.pch: No such file or directory
while processing /Users/terry/.rvm/gems/ruby-2.3.3/gems/motion-yaml-1.6.1/lib/YAMLKit/libYAMLKit_iOS.a(YKEmitter.o):
warning: /var/folders/zm/rqj5mcrx0pg0j9mslw69ctnc0000gn/C/com.apple.DeveloperTools/7.2-7C68/Xcode/SharedPrecompiledHeaders/YAMLKit_Prefix-exmqkmtyfvenfseuaqkwegrdrscd/YAMLKit_Prefix.pch.pch: No such file or directory
CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate" /usr/bin/codesign -f -s "iPhone Developer: Terry Shuttleworth (46K3D9CXH7)" --entitlements ./build/iPhoneOS-9.3-Development/Entitlements.plist "./build/iPhoneOS-9.3-Development/nav.app"
error: The specified item could not be found in the keychain.
rake aborted!
Command failed with status (1): [CODESIGN_ALLOCATE="/Applications/Xcode.app...]

I'm guessing the important bit is

CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate" /usr/bin/codesign -f -s "iPhone Developer: Terry Shuttleworth (46K3D9CXH7)" --entitlements ./build/iPhoneOS-9.3-Development/Entitlements.plist "./build/iPhoneOS-9.3-Development/nav.app"
error: The specified item could not be found in the keychain.

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)

Make sure RubyMotion is using a valid (non-expired) provisioning profile

Hi, I've used this gem to create a .mobileprovision certificate when running rake device. It didn't work as expected, though. Neither Xcode nor iTunes were running at the time. Furthermore there wasn't an error message about not specified device identifier, so I guess this should be fine.

I'm using OSX 10.11.6 El Capitan and iOS 10.0.2.

This is the error message:

Error when starting debug server service: code -402653150
Make sure RubyMotion is using a valid (non-expired) provisioning profile
and that no other process (iTunes, Xcode) is connected to your iOS device
at the same time (even through Wi-Fi).

What else could be the reason for this error? Could this be connected to the initial certificate, which is created via the keychain wizard? I've closely followed instructions here.

Thanks!

Spaceship 0.31.9 causes ArgumentError when calling ensure_csrf

   Warning Couldn't find any existing certificates... creating a new one.
rake aborted!
ArgumentError: wrong number of arguments (0 for 1)
/Users/dan/.rvm/gems/ruby-2.2.4@tv-os/gems/spaceship-0.31.9/lib/spaceship/portal/portal_client.rb:427:in `ensure_csrf'
/Users/dan/.rvm/gems/ruby-2.2.4@tv-os/gems/motion-provisioning-0.0.3/lib/motion-provisioning/spaceship/portal_client.rb:20:in `create_certificate!'

Seems they are actively working on this today:

fastlane/fastlane@2284e79#diff-039fca4abe1ab7d3789453780230a0b3R427

Specifying spaceship version 0.31.8 in my gemfile works for now

after enter my apple account info get an error

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

SL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
rake aborted!
Spaceship::Client::AppleTimeoutError: Could not receive latest API key from iTunes Connect, this might be a server issue.
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:354:in `rescue in itc_service_key'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:331:in `itc_service_key'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:294:in `block in send_shared_login_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:374:in `block in run_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:388:in `block in build_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/request.rb:26:in `block in create'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/request.rb:25:in `tap'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/request.rb:25:in `create'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:384:in `build_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:370:in `run_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:177:in `post'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:464:in `block in send_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:362:in `with_retry'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:463:in `send_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:400:in `request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:293:in `send_shared_login_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/portal/portal_client.rb:13:in `send_login_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:430:in `do_login'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/motion-provisioning-0.0.7/lib/motion-provisioning.rb:69:in `client'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/motion-provisioning-0.0.7/lib/motion-provisioning/certificate.rb:6:in `client'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/motion-provisioning-0.0.7/lib/motion-provisioning/certificate.rb:39:in `certificate_name'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/motion-provisioning-0.0.7/lib/motion-provisioning.rb:206:in `certificate'
/Users/hugorincon/Trabajo/CCConnect/curbcall/Rakefile:51:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/config.rb:202:in `development'
/Users/hugorincon/Trabajo/CCConnect/curbcall/Rakefile:50:in `block in <top (required)>'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/bubble-wrap-1.9.6/lib/bubble-wrap/ext/motion_project_app.rb:10:in `call'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/bubble-wrap-1.9.6/lib/bubble-wrap/ext/motion_project_app.rb:10:in `block in setup_with_bubblewrap'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `call'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `block in setup'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `each'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `setup'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/sugarcube-3.3.7/lib/sugarcube_pre_setup.rb:37:in `setup'
/Library/RubyMotion/lib/motion/project/app.rb:66:in `config'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/bubble-wrap-1.9.6/lib/bubble-wrap/ext/motion_project_app.rb:24:in `config_with_bubblewrap'
/Library/RubyMotion/lib/motion/project/template/ios.rb:157:in `block in <top (required)>'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/bin/ruby_executable_hooks:15:in `eval'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/bin/ruby_executable_hooks:15:in `<main>'
Faraday::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/adapter/net_http.rb:81:in `perform_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/adapter/net_http.rb:41:in `block in call'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/adapter/net_http.rb:88:in `with_net_http_connection'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/adapter/net_http.rb:33:in `call'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-cookie_jar-0.0.6/lib/faraday/cookie_jar.rb:22:in `call'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday_middleware-0.10.1/lib/faraday_middleware/response_middleware.rb:30:in `call'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday_middleware-0.10.1/lib/faraday_middleware/response_middleware.rb:30:in `call'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday_middleware-0.10.1/lib/faraday_middleware/response_middleware.rb:30:in `call'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/rack_builder.rb:139:in `build_response'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:377:in `run_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:140:in `get'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:464:in `block in send_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:362:in `with_retry'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:463:in `send_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:400:in `request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:345:in `itc_service_key'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:294:in `block in send_shared_login_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:374:in `block in run_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:388:in `block in build_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/request.rb:26:in `block in create'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/request.rb:25:in `tap'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/request.rb:25:in `create'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:384:in `build_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:370:in `run_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:177:in `post'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:464:in `block in send_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:362:in `with_retry'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:463:in `send_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:400:in `request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:293:in `send_shared_login_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/portal/portal_client.rb:13:in `send_login_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:430:in `do_login'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/motion-provisioning-0.0.7/lib/motion-provisioning.rb:69:in `client'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/motion-provisioning-0.0.7/lib/motion-provisioning/certificate.rb:6:in `client'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/motion-provisioning-0.0.7/lib/motion-provisioning/certificate.rb:39:in `certificate_name'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/motion-provisioning-0.0.7/lib/motion-provisioning.rb:206:in `certificate'
/Users/hugorincon/Trabajo/CCConnect/curbcall/Rakefile:51:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/config.rb:202:in `development'
/Users/hugorincon/Trabajo/CCConnect/curbcall/Rakefile:50:in `block in <top (required)>'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/bubble-wrap-1.9.6/lib/bubble-wrap/ext/motion_project_app.rb:10:in `call'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/bubble-wrap-1.9.6/lib/bubble-wrap/ext/motion_project_app.rb:10:in `block in setup_with_bubblewrap'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `call'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `block in setup'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `each'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `setup'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/sugarcube-3.3.7/lib/sugarcube_pre_setup.rb:37:in `setup'
/Library/RubyMotion/lib/motion/project/app.rb:66:in `config'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/bubble-wrap-1.9.6/lib/bubble-wrap/ext/motion_project_app.rb:24:in `config_with_bubblewrap'
/Library/RubyMotion/lib/motion/project/template/ios.rb:157:in `block in <top (required)>'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/bin/ruby_executable_hooks:15:in `eval'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/bin/ruby_executable_hooks:15:in `<main>'
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/adapter/net_http.rb:81:in `perform_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/adapter/net_http.rb:41:in `block in call'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/adapter/net_http.rb:88:in `with_net_http_connection'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/adapter/net_http.rb:33:in `call'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-cookie_jar-0.0.6/lib/faraday/cookie_jar.rb:22:in `call'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday_middleware-0.10.1/lib/faraday_middleware/response_middleware.rb:30:in `call'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday_middleware-0.10.1/lib/faraday_middleware/response_middleware.rb:30:in `call'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday_middleware-0.10.1/lib/faraday_middleware/response_middleware.rb:30:in `call'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/rack_builder.rb:139:in `build_response'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:377:in `run_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:140:in `get'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:464:in `block in send_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:362:in `with_retry'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:463:in `send_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:400:in `request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:345:in `itc_service_key'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:294:in `block in send_shared_login_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:374:in `block in run_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:388:in `block in build_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/request.rb:26:in `block in create'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/request.rb:25:in `tap'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/request.rb:25:in `create'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:384:in `build_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:370:in `run_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/faraday-0.10.0/lib/faraday/connection.rb:177:in `post'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:464:in `block in send_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:362:in `with_retry'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:463:in `send_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:400:in `request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:293:in `send_shared_login_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/portal/portal_client.rb:13:in `send_login_request'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/spaceship-0.39.0/lib/spaceship/client.rb:430:in `do_login'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/motion-provisioning-0.0.7/lib/motion-provisioning.rb:69:in `client'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/motion-provisioning-0.0.7/lib/motion-provisioning/certificate.rb:6:in `client'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/motion-provisioning-0.0.7/lib/motion-provisioning/certificate.rb:39:in `certificate_name'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/motion-provisioning-0.0.7/lib/motion-provisioning.rb:206:in `certificate'
/Users/hugorincon/Trabajo/CCConnect/curbcall/Rakefile:51:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/config.rb:202:in `development'
/Users/hugorincon/Trabajo/CCConnect/curbcall/Rakefile:50:in `block in <top (required)>'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/bubble-wrap-1.9.6/lib/bubble-wrap/ext/motion_project_app.rb:10:in `call'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/bubble-wrap-1.9.6/lib/bubble-wrap/ext/motion_project_app.rb:10:in `block in setup_with_bubblewrap'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `call'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `block in setup'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `each'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `setup'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/sugarcube-3.3.7/lib/sugarcube_pre_setup.rb:37:in `setup'
/Library/RubyMotion/lib/motion/project/app.rb:66:in `config'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/bubble-wrap-1.9.6/lib/bubble-wrap/ext/motion_project_app.rb:24:in `config_with_bubblewrap'
/Library/RubyMotion/lib/motion/project/template/ios.rb:157:in `block in <top (required)>'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/bin/ruby_executable_hooks:15:in `eval'
/Users/hugorincon/.rvm/gems/ruby-2.2.2@ccconnect/bin/ruby_executable_hooks:15:in `<main>'

NoMethodError: undefined method `shellescape' for #<MotionProvisioning::Utils::Answer:0x007f977296bde0>

Hi

When I want to build a version to run on my device i get the following error directly after giving my password:

NoMethodError: undefined method `shellescape' for #<MotionProvisioning::Utils::Answer:0x007f977296bde0>
/Users/mpouleijn/.rvm/gems/ruby-2.3.0@sesame/gems/security-0.1.3/lib/security/password.rb:45:in `block in flags_for_options'
/Users/mpouleijn/.rvm/gems/ruby-2.3.0@sesame/gems/security-0.1.3/lib/security/password.rb:45:in `each'
/Users/mpouleijn/.rvm/gems/ruby-2.3.0@sesame/gems/security-0.1.3/lib/security/password.rb:45:in `collect'
/Users/mpouleijn/.rvm/gems/ruby-2.3.0@sesame/gems/security-0.1.3/lib/security/password.rb:45:in `flags_for_options'
/Users/mpouleijn/.rvm/gems/ruby-2.3.0@sesame/gems/security-0.1.3/lib/security/password.rb:102:in `flags_for_options'
/Users/mpouleijn/.rvm/gems/ruby-2.3.0@sesame/gems/security-0.1.3/lib/security/password.rb:84:in `add'
/Users/mpouleijn/.rvm/gems/ruby-2.3.0@sesame/gems/motion-provisioning-0.0.4/lib/motion-provisioning.rb:62:in `client'
/Users/mpouleijn/.rvm/gems/ruby-2.3.0@sesame/gems/motion-provisioning-0.0.4/lib/motion-provisioning/certificate.rb:6:in `client'
/Users/mpouleijn/.rvm/gems/ruby-2.3.0@sesame/gems/motion-provisioning-0.0.4/lib/motion-provisioning/certificate.rb:42:in `certificate_name'
/Users/mpouleijn/.rvm/gems/ruby-2.3.0@sesame/gems/motion-provisioning-0.0.4/lib/motion-provisioning.rb:195:in `certificate'
/Users/mpouleijn/development/rubymotion/sesame/Rakefile:22:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/config.rb:202:in `development'
/Users/mpouleijn/development/rubymotion/sesame/Rakefile:21:in `block in <top (required)>'
/Users/mpouleijn/.rvm/gems/ruby-2.3.0@sesame/gems/bubble-wrap-1.9.5/lib/bubble-wrap/ext/motion_project_app.rb:10:in `block in setup_with_bubblewrap'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `block in setup'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `each'
/Library/RubyMotion/lib/motion/project/config.rb:121:in `setup'
/Library/RubyMotion/lib/motion/project/app.rb:66:in `config'
/Users/mpouleijn/.rvm/gems/ruby-2.3.0@sesame/gems/bubble-wrap-1.9.5/lib/bubble-wrap/ext/motion_project_app.rb:24:in `config_with_bubblewrap'
/Library/RubyMotion/lib/motion/project/template/ios.rb:47:in `pre_build_actions'
/Library/RubyMotion/lib/motion/project/template/ios.rb:74:in `block (2 levels) in <top (required)>'
/Users/mpouleijn/.rvm/gems/ruby-2.3.0@sesame/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
/Users/mpouleijn/.rvm/gems/ruby-2.3.0@sesame/bin/ruby_executable_hooks:15:in `eval'
/Users/mpouleijn/.rvm/gems/ruby-2.3.0@sesame/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => device => archive => build:device
(See full trace by running task with --trace)

My rakefile looks like this:

# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/ios'

begin
  require 'bundler'
  Bundler.require
rescue LoadError
end

Motion::Project::App.setup do |app|
  # Use `rake config' to see complete project settings.
  app.name = 'Sesame'
  app.identifier = 'com.gynzy.sesame'
  app.device_family = [:iphone]

  app.pods do
    pod 'NSData+Base64'
  end

  app.development do
    app.codesign_certificate = MotionProvisioning.certificate(
      type: :development,
      platform: :ios)

    app.provisioning_profile = MotionProvisioning.profile(
      bundle_identifier: app.identifier,
      app_name: app.name,
      platform: :ios,
      type: :development)
  end

  app.release do
    app.codesign_certificate = MotionProvisioning.certificate(
      type: :distribution,
      platform: :ios)

    app.provisioning_profile = MotionProvisioning.profile(
      bundle_identifier: app.identifier,
      app_name: app.name,
      platform: :ios,
      type: :distribution)
  end
end

I'm using rubymotion version 4.13

Error provisioning

I get an SMS message to OK login, but before I can respond, the rake task errors out (I changed my email to dummy value MYACCOUNT before pasting the following):

$ rake
Couldn't verify that spaceship is up to date
Info Logging into the Developer Portal with email '[email protected]'.
rake aborted!
Invalid 2 step response {"trustedPhoneNumbers"=>[{ ... STUFF DELETED HERE ...}}
/usr/local/lib/ruby/gems/2.4.0/gems/spaceship-0.39.0/lib/spaceship/two_step_client.rb:41:in handle_two_step' /usr/local/lib/ruby/gems/2.4.0/gems/spaceship-0.39.0/lib/spaceship/client.rb:316:in send_shared_login_request'
/usr/local/lib/ruby/gems/2.4.0/gems/spaceship-0.39.0/lib/spaceship/portal/portal_client.rb:13:in send_login_request' /usr/local/lib/ruby/gems/2.4.0/gems/spaceship-0.39.0/lib/spaceship/client.rb:430:in do_login'
/usr/local/lib/ruby/gems/2.4.0/gems/motion-provisioning-0.0.7/lib/motion-provisioning.rb:69:in client' /usr/local/lib/ruby/gems/2.4.0/gems/motion-provisioning-0.0.7/lib/motion-provisioning/certificate.rb:6:in client'
/usr/local/lib/ruby/gems/2.4.0/gems/motion-provisioning-0.0.7/lib/motion-provisioning/certificate.rb:39:in certificate_name' /usr/local/lib/ruby/gems/2.4.0/gems/motion-provisioning-0.0.7/lib/motion-provisioning.rb:206:in certificate'
/Users/markw/BITBUCKET/ios_cookingspace/Rakefile:23:in block (2 levels) in <top (required)>' /Library/RubyMotion/lib/motion/project/config.rb:202:in development'
/Users/markw/BITBUCKET/ios_cookingspace/Rakefile:21:in block in <top (required)>' /Library/RubyMotion/lib/motion/project/config.rb:121:in block in setup'
/Library/RubyMotion/lib/motion/project/config.rb:121:in each' /Library/RubyMotion/lib/motion/project/config.rb:121:in setup'
/Library/RubyMotion/lib/motion/project/app.rb:66:in config' /Library/RubyMotion/lib/motion/project/template/ios.rb:156:in block in <top (required)>'
/usr/local/lib/ruby/gems/2.4.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => default => simulator

User does not have access to any teams with an active membership

I have configured motion-provisioning with the free:true flag, however, I'm still getting the following error message when trying to run my app:

"User [email protected] does not have access to any teams with an active membership"

I have a team in my account that expired and has not been renewed yet so I may have a bit of a unique situation that isn't appropriately handled.

/Users/steve/.rvm/gems/ruby-2.2.4@rubymotion/gems/spaceship-0.31.10/lib/spaceship/portal/portal_client.rb:70:in `team_id'
/Users/steve/.rvm/gems/ruby-2.2.4@rubymotion/gems/motion-provisioning-0.0.4/lib/motion-provisioning.rb:96:in `client'
/Users/steve/.rvm/gems/ruby-2.2.4@rubymotion/gems/motion-provisioning-0.0.4/lib/motion-provisioning/certificate.rb:6:in `client'
/Users/steve/.rvm/gems/ruby-2.2.4@rubymotion/gems/motion-provisioning-0.0.4/lib/motion-provisioning/certificate.rb:42:in `certificate_name'
/Users/steve/.rvm/gems/ruby-2.2.4@rubymotion/gems/motion-provisioning-0.0.4/lib/motion-provisioning.rb:195:in `certificate'
.../Rakefile:37:in `block (2 levels) in <top (required)>'

Two step verification is not working

When I ran rake device after setting up the gem, I got this error


Info Your Apple ID email: [email protected]
      Info Do you want to save the email to the config file ('provisioning/config.yaml') so you dont have to type it again? (Y/n): 
      Info Logging into the Developer Portal with email '[email protected]'.
Two Step Verification for account '[email protected]' is enabled
Please select a device to verify your identity
rake aborted!
undefined method `choose' for #<Spaceship::PortalClient:0x007f94ae241428>
/Users/lori/.rvm/gems/ruby-2.0.0-p576@wimby/gems/spaceship-0.31.7/lib/spaceship/two_step_client.rb:35:in `handle_two_step'
/Users/lori/.rvm/gems/ruby-2.0.0-p576@wimby/gems/spaceship-0.31.7/lib/spaceship/client.rb:295:in `send_shared_login_request'
/Users/lori/.rvm/gems/ruby-2.0.0-p576@wimby/gems/spaceship-0.31.7/lib/spaceship/portal/portal_client.rb:35:in `send_login_request'
/Users/lori/.rvm/gems/ruby-2.0.0-p576@wimby/gems/spaceship-0.31.7/lib/spaceship/client.rb:352:in `do_login'
/Users/lori/.rvm/gems/ruby-2.0.0-p576@wimby/gems/motion-provisioning-0.0.3/lib/motion-provisioning.rb:67:in `client'
/Users/lori/.rvm/gems/ruby-2.0.0-p576@wimby/gems/motion-provisioning-0.0.3/lib/motion-provisioning/certificate.rb:18:in `client'
/Users/lori/.rvm/gems/ruby-2.0.0-p576@wimby/gems/motion-provisioning-0.0.3/lib/motion-provisioning/certificate.rb:54:in `certificate_name'
/Users/lori/.rvm/gems/ruby-2.0.0-p576@wimby/gems/motion-provisioning-0.0.3/lib/motion-provisioning.rb:194:in `certificate'

After I disabled two step verification, I was able to successfully finish the provisioning setup process.

Faraday Connection Error

Anyone else getting this error?

$ rake ios:device
Info Logging into the Developer Portal with email '[email protected]'.
rake aborted!
Faraday::ConnectionFailed: Connection reset by peer - SSL_connect

does not work with new required 2 factor authentication

now that apple requires 2 factor auth for apple developer account apple IDs, motion-provisioning says 'invalid password' on build.

Info Using certificate 'iPhone Developer: NAME (----------)'.
      Info The login information you enter will be stored safely in the macOS keychain.
      Info Password for [email protected]: *************
security: SecKeychainAddInternetPassword <NULL>: The specified item already exists in the keychain.
      Info Logging into the Developer Portal with email '[email protected]'.
     Error There was an error logging into your account. Your password may be wrong.
      Info Do you want to reenter your password? (Y/n): n

yes, i enabled 2 factor auth for this apple id.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.