用于iphone的rhomobile版本失败,无法找到配置文件

时间:2012-08-22 18:37:55

标签: ios5 osx-lion rhomobile provisioning-profile

我想在iphone上运行一个简单的应用程序。但是,我发现一个恼人的错误,找不到配置文件。它发生在我转到我的项目文件夹并运行之后: sudo rake device:iphone:production

=== BUILD NATIVE TARGET RhoLib OF PROJECT RhoLib WITH CONFIGURATION Release ===

Check dependencies


=== BUILD NATIVE TARGET rhoextlib OF PROJECT rhoextlib WITH CONFIGURATION Release ===
Check dependencies


=== BUILD NATIVE TARGET curl OF PROJECT curl WITH CONFIGURATION Release ===
Check dependencies


=== BUILD NATIVE TARGET rhorunner OF PROJECT rhorunner WITH CONFIGURATION Release ===
Check dependencies
Code Sign error: Provisioning profile '0558F1B2-FE5A-4236-B9EE-A200EFAD68E9' can't be found


cd ~/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rhodes-3.3.3
set bundle identifier
set URL name
restore_default_images
rm -f platform/iphone/Default.png
rm -f platform/iphone/Default.png
cp platform/iphone/Default.bak platform/iphone/Default.png
rm -f platform/iphone/Default.bak
rm -f platform/iphone/Default@2x.png
rm -f platform/iphone/Default-Portrait.png
rm -f platform/iphone/Default-PortraitUpsideDown.png
rm -f platform/iphone/Default-Landscape.png
rm -f platform/iphone/Default-LadscapeLeft.png
rm -f platform/iphone/Default-LandscapeRight.png
restore icon
rm -f platform/iphone/icon.png
cp platform/iphone/icon.bak platform/iphone/icon.png
rm -f platform/iphone/icon.bak
rm -f platform/iphone/icon57.png
cp platform/iphone/icon57.bak platform/iphone/icon57.png
rm -f platform/iphone/icon57.bak
rm -f platform/iphone/icon72.png
cp platform/iphone/icon72.bak platform/iphone/icon72.png
rm -f platform/iphone/icon72.bak
rm -f platform/iphone/icon114.png
cp platform/iphone/icon114.bak platform/iphone/icon114.png
rm -f platform/iphone/icon114.bak
************************************
ERROR during building by XCode !
XCode return next error code = pid 9102 exit 65

我检查了xcode管理器,配置文件同时在手机和库中。 我检查了developer.apple.com,该配置文件是插入设备的Distribution Ad Hoc。

我的build.yml:

sdkversion: 3.3.2
name: My Application
version: 0.1
vendor: rhomobile
build: release
bbver: 4.6
applog: rholog.txt
iphone:
  provisionprofile: 0558F1B2-FE5A-4236-B9EE-A200EFAD68E9
  sdk: iphoneos5.1
  codesignidentity: "iPhone Distribution"
  entitlements: 
  configuration: Release
  emulator: 5.1
  emulatortarget: iphone
  BundleIdentifier: com.randomname.myapplication
  BundleURLScheme: myapplication
wp:
  productid: 
  uid: 3928127822
android:
  version: 2.1
extensions:
  - accelerometer

任何人都知道我错过了什么?已经尝试了几天不同的事情没有结果:(

1 个答案:

答案 0 :(得分:1)

过了一段时间后,我发现脚本会在/Library/MobileDevice/Provisioning Profiles而不是~/Library/MobileDevice/Provisioning Profiles中检查配置文件。这是由使用sudo命令引起的,但是没有sudo我没有权限。解决方法是创建/ Library / MobileDevice / Provisioning Profiles文件夹并将安装的配置文件复制到该位置。代码签名现在工作正常。

编辑:甚至更好的解决方案是重新安装没有sudo的rhodes gem。通过安装套件我不得不sudo它来进行系统更改,但是这使得编译也需要sudo,因此在错误的位置查找配置文件。

这就是诀窍:

sudo gem uninstall rhodes
gem install rhodes