2015-12-03 17 views
5

Bir şey kaçırıyorsam sorunum için üzgünüz.Fastlane sunum profili delilik

desc "Submit a new Beta Build to Apple TestFlight" 
    desc "This will also make sure the profile is up to date" 
    lane :beta do 
    ... 
    # download certificate 
    cert 
    # download provisioning profile 
    sigh 
    # set profile uiid 
    # https://github.com/fastlane/fastlane/blob/master/docs/CodeSigning.md 
    ENV["PROFILE_UUID"] = lane_context[SharedValues::SIGH_UDID] 
    # build 
    gym(
     scheme: "Release" 
    ) 
    pilot 
    end 

aşağıdaki hata ile jimnastik adımdan sonra başarısız sürecine sahip tutuyorum:

❌ Code Sign error: No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID “8bd6dafb-2596-41d9-8907-8c012d23a5ac”, however, no such provisioning profile was found. 

[19:27:21]: Exit status: 65 
[19:27:21]: Invalid code signing settings 
[19:27:21]: Your project defines a provisioning profile which doesn't exist on your local machine 
[19:27:21]: You can use sigh (https://github.com/KrauseFx/sigh) to download and install the provisioning profile 
[19:27:21]: Follow this guide: https://github.com/KrauseFx/fastlane/blob/master/docs/CodeSigning.md 

Ancak görebildiğim

böyle arayan bir şerit kullanıyorum uygulama dizinimdeki doğru profil indiriliyor. Ben de ~/Library/MobileDevice/Provisioning Profiles de bu profili bulabilir ve sonunda benim Xcode proje kullanılarak sigh tarafından uuid indirilen kullanmak yapılandırmak edilir:

PROVISIONING_PROFILE = "$(PROFILE_UUID)"; 

değişken dökümü:

{ 
    :DEFAULT_PLATFORM=>:ios, 
    :PLATFORM_NAME=>:ios, 
    :LANE_NAME=>"ios beta", 
    :GIT_REPO_WAS_CLEAN_ON_START=>true, 
    :BUILD_NUMBER=>"55", 
    :VERSION_NUMBER=>"1.0", 
    :CERT_FILE_PATH=>"/Users/xxx/Developer/xxx/56HRT5HYC6.cer", 
    :CERT_CERTIFICATE_ID=>"56HRT5HYC6", 
    :SIGH_PROFILE_PATH=>"/Users/xx/Developer/xx/AppStore_com.xx.xx.mobileprovision", 
    :SIGH_PROFILE_PATHS=>["/Users/xxx/Developer/WiredResearch/AppStore_com.xx.xx.mobileprovision"], 
    :SIGH_UDID=>"8bd6dafb-2596-41d9-8907-8c012d23a5ac", 
    :SIGH_PROFILE_TYPE=>"app-store" 
} 

DÜZENLEME: 2015/12/04 - Ekleme Bunun yerine sigh vekullanmanın Sertifika & Kederlen çıkışı

[09:46:47]: ------------------ 
[09:46:47]: --- Step: cert --- 
[09:46:47]: ------------------ 

+-------------+----------------------------------+ 
|    Summary for cert 1.2.6    | 
+-------------+----------------------------------+ 
| development | false       | 
| force  | false       | 
| username | [email protected] | 
| output_path | .        | 
+-------------+----------------------------------+ 

[09:46:49]: Starting login with user '[email protected]' 
[09:46:53]: Successfully logged in 
[09:46:56]: Found the certificate 56HRT5HYC6 (WB Technologies) which is installed on the local machine. Using this one. 
[09:46:56]: Use signing certificate '56HRT5HYC6' from now on! 


[09:46:57]: ------------------ 
[09:46:57]: --- Step: sigh --- 
[09:46:57]: ------------------ 
+-------------------------------+----------------------------------+ 
|      Summary for sigh 1.1.4      | 
+-------------------------------+----------------------------------+ 
| adhoc       | false       | 
| skip_install     | false       | 
| development     | false       | 
| force       | false       | 
| app_identifier    | com.xx.xx | 
| username      | [email protected] | 
| output_path     | .        | 
| cert_id      | 56HRT5HYC6      | 
| skip_fetch_profiles   | false       | 
| skip_certificate_verification | false       | 
+-------------------------------+----------------------------------+ 

[09:46:57]: Starting login with user '[email protected]' 
[09:46:58]: Successfully logged in 
[09:46:58]: Fetching profiles... 
[09:47:01]: Found 1 matching profile(s) 
[09:47:01]: Downloading provisioning profile... 
[09:47:02]: Successfully downloaded provisioning profile... 
[09:47:02]: Installing provisioning profile... 
/Users/hugues/Developer/xx/AppStore_com.xx.xx.mobileprovision 
[09:47:02]: Setting 

Provisioning Profile type to 'app-store' 
+0

ile kullanılması önerilir. "Cert" ve "sigh" eylemlerinin çıktıları nelerdir? – mokagio

+0

@mokagio Yanıt eklemek için cevabımı düzenledim. Teşekkürler! Yanıt için –

cevap

7

10 doğrudan, yeni match'un codesigning.guide

+0

Thx @KrauseFX (ve fastlane btw için). Bu yeni projeyi görmüştüm, ama projede tek bir geliştirici olarak çalışıyorum, bu yüzden gerçekten ihtiyaç duymadığım için bunu kurmak istemedim, ama yapması gereken şey buysa, yapacağım. Thx –

+0

@KrauseFx Hızlı soru, kullanım durumum, birden fazla müşteri uygulaması için birkaç Apple Geliştirici hesabım (10+) olduğu için bu değişikliği korumak için çok zor hale getirecektir. Yeni bir müşterim olduğunda her zaman çok yeni repos oluşturmaya gerek kalmadan ilerlemeye yönelik herhangi bir öneri? Ayrıca, maç yaklaşımı lehine tamamen çekilip terkedilecek ve terk edilecek mi? –

+0

İç çekiş ve cert, her ikisi de temel araç olarak eşleştirilerek kullanıldığı için her zaman yanınızda olacaktır. – KrauseFx