简体   繁体   English

RubyMotion Build:错误!找不到名为`(?-mix:iOS Team Provisioning Profile)的配置文件

[英]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. 我正在尝试构建一个简单的RubyMotion应用程序,以便我可以在我的iPhone上传输它。

I executed rake build:device 我执行了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? 对这个错误有什么想法吗?

According to the RubyMotion forum post by @RayHightower here: 根据@RayHightower的RubyMotion论坛帖子:

https://groups.google.com/forum/?fromgroups=#!topic/rubymotion/Nvo8dH_8rkI 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: 为了在非越狱的iPhone 3GS上成功运行RubyMotion应用程序(通过“rake设备”),我不得不:

  • Delete all of the expired provisioning profiles in the Mac OS X Keychain Access app. 删除Mac OS X Keychain Access应用程序中的所有过期配置文件。 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). 在应用程序的rakefile中明确设置我的配置文件的路径(默认设置对我不起作用)。
  • Explicitly set the name of my codesign_certificate. 明确设置我的codesign_certificate的名称。

The default "iOS Team Profile" didn't work for me. 默认的“iOS团队简介”对我不起作用。 I had to set explicit values in my rakefile for the app. 我必须在我的rakefile中为应用程序设置显式值。 Here's my rakefile for the 'Tweets' sample app at https://github.com/HipByte/RubyMotionSamples : 这是我在https://github.com/HipByte/RubyMotionSamples上的'推文'示例应用程序的rakefile:

$:.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. 当然,我的名字不是“John Q Developer”,但你明白了。 Hope this helps! 希望这可以帮助!

-@RayHightower - @ RayHightower

Generally speaking, I've found when something is awry with RubyMotion there is an easy fix but it usually involves Xcode and magic . 一般来说,我发现当RubyMotion出现问题时,有一个简单的修复,但它通常涉及Xcode和魔法 Who knows if this will fix it for you (that's the magic part of Xcode), but it doesn't require any changes in your app! 谁知道这是否会为你解决(这是Xcode的神奇部分),但它不需要你的应用程序进行任何更改! :) :)

How to Fix 怎么修

  1. Open Xcode 打开Xcode
  2. Go to 'Preferences' 转到'偏好' 第2步截图

  3. Go to the 'Accounts' tab, and click 'View Details' 转到“帐户”标签,然后点击“查看详细信息” 第3步截图

  4. Click the 'refresh' icon, in the bottom left 单击左下角的“刷新”图标 在此输入图像描述

Wait for it to refresh... et voila! 等待它刷新...等瞧! You should be able to compile without the error. 你应该能够编译没有错误。

NOTE : The first time I clicked refresh, it erred out. 注意 :我第一次点击刷新时,它出错了。 I clicked the 'done' button, then repeated steps three and four. 我点击了“完成”按钮, 然后重复了第三步和第四步。

Good luck, hopefully this helps someone else. 祝你好运,希望这有助于其他人。

I ran into this problem too, and specifying an explicit provisioning profile was unacceptable from a team development perspective since the Rakefile is checked into git. 我也遇到了这个问题,从团队开发的角度来看,指定一个明确的配置文件是不可接受的,因为Rakefile被检入git。

In order to solve this I simply created a new Provisioning Profile named: "iOS Team Provisioning Profile" which includes any devices I want to build for. 为了解决这个问题,我简单地创建了一个名为“iOS Team Provisioning Profile”的新配置文件,其中包含我想要构建的任何设备。 Each member of your team can do the same thing, and no one has to explicitly point to a provisioning profile path like in the other answer. 您团队中的每个成员都可以执行相同的操作,并且没有人必须明确指向配置配置文件路径,就像在另一个答案中一样。

If you browse the source for the RubyMotion project config at: https://github.com/HipByte/RubyMotion/blob/master/lib/motion/project/config.rb you'll notice that it'll look for a default provisioning profile named "iOS Team Provisioning Profile" (scanning each profile for that name). 如果你浏览RubyMotion项目配置的源代码: https//github.com/HipByte/RubyMotion/blob/master/lib/motion/project/config.rb你会发现它会寻找默认的配置名为“iOS Team Provisioning Profile”的配置文件(扫描该名称的每个配置文件)。 So as long as that remains the same, this is probably the easiest way to solve it. 所以只要它保持不变,这可能是解决它的最简单方法。

I think the intent was to be able to specify a provisioning profile name in your Rakefile, instead of specifying the entire path. 我认为目的是能够在Rakefile中指定配置文件 ,而不是指定整个路径。 It should then search through each of your profiles looking for one matching the same you passed (this would be more appropriate for teams working on the same project). 然后,它应该搜索您的每个配置文件,寻找与您传递的匹配项相匹配的配置文件(这对于处理同一项目的团队更合适)。 Unfortunately this isn't the way it currently works. 不幸的是,这不是它目前的工作方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 恢复iOS团队配置文件 - Restore iOS Team Provisioning Profile iOS团队配置文件问题 - Issue with iOS team provisioning profile iOS配置文件错误 - iOS Provisioning Profile error 消息 配置文件“iOS 团队配置文件:*”将在 15 天后过期 - Message The provisioning profile "iOS Team Provisioning Profile: *" will expire in 15 days 配置文件“iOS 团队配置文件:不包括当前选择的设备”Flutter - MacOS - Provisioning profile "iOS Team Provisioning Profile: doesn't include the currently selected device" Flutter - MacOS xcodebuild:检查依赖项配置文件“ iOS Team Provisioning Profile不包括当前选择的设备“ iPhone” - xcodebuild: Check dependencies Provisioning profile “iOS Team Provisioning Profile doesn't include the currently selected device ”iPhone" 配置文件“iOS 团队配置文件:...不支持关联域功能 - Provisioning profile "iOS Team Provisioning Profile: ... doesn't support the Associated Domains capability Jenkins上的iOS:找不到配置文件 - iOS on Jenkins: Provisioning profile can't be found 配置文件“团队”是“未知” - Provisioning Profile “Team” is “Unknown” 开发配置文件和团队配置文件 - Development provisioning profile and Team provisioning profile
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM