2012-08-22 101 views
2

我有一個簡單的應用程序,我想在我的iphone上運行。但是,我發現一個惱人的錯誤,無法找到配置文件。它發生了,我去我的項目文件夾,並運行: sudo rake device:iphone:productionrhomobile構建爲iPhone失敗,配置文件無法找到

=== 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/[email protected] 
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和輪廓是分佈特設在插入的設備

我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

過了一段時間後,我發現該腳本檢查/Library/MobileDevice/Provisioning Profiles而不是~/Library/MobileDevice/Provisioning Profiles的配置文件,這是由於使用sudo命令,但沒有sudo我不dont有權解決方法是創建一個/庫/移動設備/供應Profiles文件夾和安裝配置文件複製到該位置代碼簽名現在工作得很好

編輯:。甚至更​​好的解決辦法是重裝羅德寶石不sudo。通過安裝套件,我不得不sudo它來進行系統更改,但是這使得編譯需要sudo,因此需要在錯誤的地方查找ng配置文件。

這奏效了:

sudo gem uninstall rhodes 
gem install rhodes 
+1

後尋找個小時,這是它!謝謝。 – Swati

+0

花了我幾天;) – Vikko

相關問題