fastlane版本號:fastlane 1.108.0
Xcode版本號:8.1
MacOS版本號:10.12
使用fastlane打包 - Release / Ad-Hoc包時報錯:
[13:36:59]: There was an error exporting your application
[13:36:59]: Unfortunately the new Xcode export API is unstable and causes problems on some projects
[13:36:59]: You can temporarily use the :use_legacy_build_api option to work around the issue:
[13:36:59]: In your Fastfile:
[13:36:59]: gym(use_legacy_build_api: true)
[13:36:59]: On the command line:
[13:36:59]: gym --use_legacy_build_api
找到git上有關于這個問題的issues:Issues 1145
現(xiàn)在雖然已經(jīng)關閉了挑庶,但解決的方法卻沒有明確的說明耻煤,但是原因卻一致認為是Xcode版本的問題。
所以使用以下的設置:
use_legacy_build_api: true
在嘗試了以下設置后,在有Extension 時吉嫩,由于證書自動匹配問題,雖然選擇了:
export_method: "ad-hoc"
打出的包卻是企業(yè)版 - Enterprise唤殴。
所以斋攀,只有在證書完全匹配成功的情況下才能打出想要的包,一定要保證工程設置正確弧哎。