fastlane-plugin-bluepill icon indicating copy to clipboard operation
fastlane-plugin-bluepill copied to clipboard

how to run this plugin

Open okanerdogan09 opened this issue 7 years ago • 6 comments

Hi i want to use this plugin. Have some question though

  • do i need to build for testing before test

  • scheme and app is not clear for me can you please give some details.

okanerdogan09 avatar Oct 02 '17 11:10 okanerdogan09

do i need to build for testing before test

Yap, you have to build it and create .app file.

scheme and app is not clear for me can you please give some details.

app is a path to the .app file. scheme is a path to the .xcscheme of your project. See an example in README.md

bluepill(
    app: 'path/to/SomeApp.app',
    scheme: 'path/to/SomeApp.xcscheme',
    output_dir: 'path/to/output_dir',
    device: 'iPhone 6',
    number_of_simulators: 2,
    headless: true,
    reuse_simulator: true,
  )

tbrand avatar Oct 02 '17 11:10 tbrand

Thanks for your quick reply. Does it support XCUITest ? bluepill( app: '/Users/xxx/ios-repo/app/builds/Build/Products/Debug-iphonesimulator/xxxx.app', scheme: "/Users/xxxxx/ios-repo/ios-app/lounge/lounge.xcodeproj/xcshareddata/xcschemes/xxxxx.xcscheme", output_dir: '/Users/xxxxxx/ios-repo/ios-app/output_dir', device: 'iPhone 6', number_of_simulators: 5, headless: true, reuse_simulator: false, ) and i get ---- Packing failed: Found no XCTest files.

okanerdogan09 avatar Oct 02 '17 14:10 okanerdogan09

Oops, I may did some mis-implementation. There is no option from -s in https://github.com/linkedin/bluepill but I did at https://github.com/tbrand/fastlane-plugin-bluepill/blob/master/lib/fastlane/plugin/bluepill/actions/bluepill_action.rb#L9.

May be it should be replaced by xctestrun-path option. I've released new version 0.1.4 now Could you try this? Then please remove .xcscheme and put .xctestrun into the options. 2017-10-02 23 42 53

I also updated README.md, please refer to see how to specify the option. Thanks!

tbrand avatar Oct 02 '17 14:10 tbrand

how can upgrade plugin to this new version?

okanerdogan09 avatar Oct 02 '17 15:10 okanerdogan09

I have a problem when try to run from Fastlane

[!] Could not find option 'scheme' in the list of available options: xctestrun, output_dir, app, device, headless, number_of_simulators, reuse_simulator

moatazeldebsy avatar Sep 29 '19 15:09 moatazeldebsy

Is this fastlane run implementation working ? @FelipeDocil @tbrand

We are also receiving this error [!] Could not find option 'scheme' in the list of available options: xctestrun, output_dir, app, device, headless, number_of_simulators, reuse_simulator

karthikjothinath avatar Jul 28 '21 19:07 karthikjothinath