Search code examples
iosrubyrubymotion

RubyMotion Build: ERROR! Can't find a provisioning profile named `(?-mix:iOS Team Provisioning Profile)'


I am trying to build a Simple RubyMotion app so that i can transfer it on my iPhone.

I executed rake build:device

    Ankits-MacBook-Pro:hello ankitgupta$ rake build:device
    Build ./build/iPhoneOS-6.0-Development
    Create ./build/iPhoneOS-6.0-Development/hello.app/embedded.mobileprovision
    ERROR! Can't find a provisioning profile named `(?-mix:iOS Team Provisioning Profile)'

Any idea on this error?


Solution

  • According to the RubyMotion forum post by @RayHightower here:

    https://groups.google.com/forum/?fromgroups=#!topic/rubymotion/Nvo8dH_8rkI

    ...you should do this:

    In order to successfully run a RubyMotion app on a non-jailbroken iPhone 3GS (via "rake device") I had to:

    • Delete all of the expired provisioning profiles in the Mac OS X Keychain Access app. Yeah, my past is littered with many random experiments :-)
    • Explicitly set the path to my provisioning profile in the rakefile for the app (the defaults didn't work for me).
    • Explicitly set the name of my codesign_certificate.

    The default "iOS Team Profile" didn't work for me. I had to set explicit values in my rakefile for the app. Here's my rakefile for the 'Tweets' sample app at https://github.com/HipByte/RubyMotionSamples :

    $:.unshift("/Library/RubyMotion/lib")
    require 'motion/project' 
    Motion::Project::App.setup do |app| 
      # Use `rake config' to see complete project settings. 
      app.name = 'Tweets' 
      app.provisioning_profile = '/Users/[username]/Library/MobileDevice/Provisioning Profiles/[string-of-numbers].mobileprovision' 
      app.codesign_certificate = 'iPhone Developer: John Q Developer  (A5QZ9QF4Z1)'
     end 
    

    Of course, my name isn't "John Q Developer", but you get the idea. Hope this helps!

    -@RayHightower