IOS用Jenkins持續整合筆記

來源:互聯網
上載者:User

標籤:jenkins   error   錯誤集   

這篇文章不是一個介紹如何使用jenkins的教程,而是自己在實際搭建過程中遇到的種種問題的一個總結

1 關於教程推薦幾個不錯的

使用Jenkins搭建iOS開發的CI伺服器 | webfrogs

Jenkins+Github+Testflight在Mac下搭建持續整合環境 | Tiger的小站


2 下載安裝問題

直接下載 http://ftp-chi.osuosl.org/pub/jenkins/osx/jenkins-1.576.pkg

或官網http://jenkins-ci.org 右邊有個mac os x 點擊下載。

java環境系統已預設安裝,所以pkg直接安裝就可以。


3 Check dependencies時,不能找到認證?

原因:jenkins使用者下沒有相應的鑰匙鏈和認證

解決辦法:從原來的登入使用者拷貝過來


拷貝 /Users/你的登入使用者/Library/keychains

/mobileDevice

到 jenkins的Home目錄,也就是 /Users/Shared/Jenkins/Library

Library是隱藏檔案夾,可通過前往檔案夾 如 “/使用者/hhd/資產庫” 來定位.

然後雙擊/Users/Shared/Jenkins/Library/keychains/login.keychain

對在鑰匙鏈程式中開啟,回多出一個登入,解鎖此登入


4 Argument list too long: resurive header extension failed

原因:xcode 配置了環境變數。xcode-preference-Locations-Source Trees有自訂的設定

解決辦法:jenkins中做同樣的配置

系統管理-系統設定-Environment Variables 增加變數


5 Command /usr/bin/codesign failed with exit code 1

如果你在編譯iPhone App的時候遇到command /usr/bin/codesign failed with exit code 1

可 以確認以下的步驟,開啟Keychain Access,找到你的開發人員key,Get Info,看一下Access Control這個Tab,選擇allow all applications to access this item。再重新編譯一下,試一下,看看是否OK了




這東西好是好,但問題也不少,一個個解決下來,也學到了不少知識

未完待續。。。

IOS用Jenkins持續整合筆記

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.