rubymotion-community / motion-provisioning

Simplified provisioning for RubyMotion iOS, tvOS and macOS apps.
Other
46 stars 20 forks source link

Is it necessary to login to the developer portal on every build? #1

Closed andrewtimberlake closed 8 years ago

MarkVillacampa commented 8 years ago

If you have to login on every build, then it is a bug.

Can you paste:

1- The full output when you run "rake" 2- The contents of your "provisioning" folder (e.g. executing "ls provisioning")

amirrajan commented 8 years ago

Can you elaborate on this?

andrewtimberlake commented 8 years ago

Rake output

      Info Logging into the Developer Portal with email '<email address>'.
      Info Selected team 'XXXXXXXXXXXXXX. (YYYYYYYYY)'.
      Info Using certificate 'Andrew Timberlake'.
      Info Using provisioning profile '(MotionProvisioning) com.myapp.identifer ios development'.
     Build ./build/iPhoneSimulator-7.1-Development
   Compile ./app/app_delegate.rb
      Link ./build/iPhoneSimulator-7.1-Development/MYAPP.app/MYAPP
    Create ./build/iPhoneSimulator-7.1-Development/MYAPP.app/Info.plist
    Create ./build/iPhoneSimulator-7.1-Development/MYAPP.app.dSYM
      Copy ./build/iPhoneSimulator-7.1-Development/MYAPP.app.dSYM
  Simulate /Users/andrew/dev/myapp/ios/build/iPhoneSimulator-7.1-Development/MYAPP.app

provisioning folder contents

config.yml
ios_developer_certificate.cer
com.myapp.identifier_ios_development_provisioning_profile.mobileprovision
MarkVillacampa commented 8 years ago

The name of the certificate file is wrong, it should be ios_development_certificate.cer not ios_developer_certificate.cer.

Can you show me the part of the Rakefile where you configure motion-provisioning?

andrewtimberlake commented 8 years ago
  app.development do
    app.info_plist['NSAppTransportSecurity'] = {"NSAllowsArbitraryLoads" => true}

    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
MarkVillacampa commented 8 years ago

Looks like we're checking the private key file is present here:

https://github.com/HipByte/motion-provisioning/blob/master/lib/motion-provisioning/certificate.rb#L34

We well tweak that behavior. Meanwhile you can make it not log in every time by running touch provisioning/ios_development_private_key.p12. If that doesnt work, try "developer" instead of "developent".

andrewtimberlake commented 8 years ago

Thanks, I'll give that a try tomorrow. One thing, the files in there were generated from the first run so motion-provision named them?

Andrew

On 11 Aug 2016, at 17:45, Mark Villacampa notifications@github.com wrote:

Looks like we're checking the private key file is present here:

https://github.com/HipByte/motion-provisioning/blob/master/lib/motion-provisioning/certificate.rb#L34

We well tweak that behavior. Meanwhile you can make it not log in every time by running touch provisioning/ios_development_private_key.p12. If that doesnt work, try "developer" instead of "developent".

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

MarkVillacampa commented 8 years ago

Yes, motion-provisioning named them. I'll try to figure out where the wrong name comes from too

andrewtimberlake commented 8 years ago

When I create a file provisioning/ios_development_private_key.p12 then all works.

MarkVillacampa commented 8 years ago

Should be fixed with e053af3ac81b54037bc6abcdd4c792d9c872bda2

Please update to motion-provisioning 0.0.3

andrewtimberlake commented 8 years ago

Thank you. It is working perfectly.