Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 870
AnkitG Avatar asked Nov 24 '12 08:11

AnkitG


People also ask

How do I create a provisioning profile in Xcode 11?

Sign in to your Apple Developer account and navigate to Certificates, IDs & Profiles > Identifiers > Provisioning Profiles. Add a new provisioning profile. Activate App Store. Click Continue.


1 Answers

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

like image 119
Jamon Holmgren Avatar answered Nov 08 '22 19:11

Jamon Holmgren