简体   繁体   中英

How to clear Fastlane gym output directory?

I try to build my iOS app with Fastlane . That works so far but only for the first build.

If I try to rebuild the project I get this error message:

xcodebuild: error: Existing file at -resultBundlePath "xxx/output/Jenkins.result"

This is my Fastlane config:

lane :jenkins do

setup_jenkins(
   force: '1',
   unlock_keychain: '1',
   keychain_path: "~/Library/Keychains/login.keychain",
   keychain_password: "xxx",
   code_signing_identity: "xxx"
)

clean_build_artifacts
clear_derived_data

gym(
  workspace: "Travel.xcworkspace",
  configuration: "Release",
  scheme: "Jenkins",
  silent: true,
  clean: true,
  export_method: "app-store"
)

end

What is missing to clear the output directory?

使用删除工作区插件或unix shell( rm -f )或Windows shell( rmdir /s /q )命令。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM