2017-08-30 142 views
0

我想通過Terminal/Using Shell腳本將我的證書和配置文件添加到我的項目中,但無法找到任何代碼。想通過代碼訪問鑰匙串訪問。或者我們可以使用命令訪問Xcode的Build設置。如何通過命令行/使用shell腳本在項目中安裝Provising配置文件和證書

+0

我將調查FASTLANE工具:https://fastlane.tools/,特別是嘆了一套工具:https://github.com/fastlane/fastlane/tree/master/sigh#readme – wottle

+0

好吧,但每當我嘗試訪問fastlane它給我錯誤,如「fastlane:command not found」我已經安裝它在我的寶石 –

+0

他們給我的建議是「選擇配置文件的」D ebug「在項目編輯器中構建配置。」但我不想通過編輯器設置它。 –

回答

0

命令安裝.CER/.p12文件是

security unlock-keychain -p "" ~/Library/Keychains/login.keychain 
security import XXX.cer -k ~/Library/Keychains/login.keychain -P "" -T /usr/bin/codesign 

和附加提供檔案

output="~/Library/MobileDevice/Provisioning Profiles/$uuid.mobileprovision" 
cp -R "$mp" "$output" 
相關問題