Git Product home page Git Product logo

fastlane-plugin-cordova_screenshots's People

Contributors

brownoxford avatar janpio avatar knocknarea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fastlane-plugin-cordova_screenshots's Issues

Ionic apps fail with "Error Unable to load app"

I followed the instructions and some issues (switch to Swift 5, update SnapshotHelper) to get this set up. I was able to run fastlane screenshots and it worked for half of the shots, but failed with a screenshot of "Error Unable to load app" for about half of them. Looking up this error I found it can happen if multiple instances run concurrently as that can cause contention for the port ionic uses to serve up the web content.

From that, I found that adding concurrent_simulators(false) to my Snapfile (or, I would suspect using the corresponding CLI parameter or option in Fastfile) fixed this issue.

I'm actually not sure if this is an Ionic or Cordova issue, but regardless I hope this helps someone and it may be worth adding to the documentation.

[iOS] swift version 3.0 is not supported

After retrofit I've got the new test_schema in the workspace.
I can't compile it because Build Settings -> Swift Language Version is set to Swift 3.0 (unsupported).
It should be Swift 5.0.

I use XCode version 11.3.

[Android] Espresso / UIAutomatorTest cannot access WebView

Error in mainActivityTest(de.xxx.test.MainActivityTest):
▸ android.support.test.espresso.NoMatchingViewException: No views in hierarchy found matching: WebView with JS enabled
▸ View Hierarchy...

Please could you provide a rich example of how to access IONIC app components from within the UIAutomator test. To be able to navigate inside the app ...
And perhaps add some documentation about how to write and debug your tests in Android Studio. I managed to get that working some months ago, but now something broke and I didn't manage to get it working again.

thx in advance,
Anne

Multiple commands produce '.../Info.plist'

With XCode 11.2.1, I get the following error when running snapshot after retrofit_cordova_screenshots_ios:

❌  error: Multiple commands produce '/var/folders/b8/zbn4kbds68d8s7_brr4yx3880000gn/T/snapshot_derived20191220-99448-1de3tt3/Build/Products/Debug-iphonesimulator/ui-snapshots-Runner.app/PlugIns/ui-snapshots.xctest/Info.plist':

    The Compile Sources build phase contains this target's Info.plist file '/src/my.project/my.bundle/fastlane/cordova_screenshots/ios/ui-snapshots/Info.plist'. (in target 'ui-snapshots' from project 'my.project')
    duplicate output file '/var/folders/b8/zbn4kbds68d8s7_brr4yx3880000gn/T/snapshot_derived20191220-99448-1de3tt3/Build/Products/Debug-iphonesimulator/ui-snapshots-Runner.app/PlugIns/ui-snapshots.xctest/Info.plist' on task: ProcessInfoPlistFile /var/folders/b8/zbn4kbds68d8s7_brr4yx3880000gn/T/snapshot_derived20191220-99448-1de3tt3/Build/Products/Debug-iphonesimulator/ui-snapshots-Runner.app/PlugIns/ui-snapshots.xctest/Info.plist /src/my.project/my.bundle/fastlane/cordova_screenshots/ios/ui-snapshots/Info.plist (in target 'ui-snapshots' from project 'my.project')
Testing failed:
        Multiple commands produce '/var/folders/b8/zbn4kbds68d8s7_brr4yx3880000gn/T/snapshot_derived20191220-99448-1de3tt3/Build/Products/Debug-iphonesimulator/ui-snapshots-Runner.app/PlugIns/ui-snapshots.xctest/Info.plist':
1) Target 'ui-snapshots' (project 'my.project') has copy command from '/src/my.project/my.bundle/fastlane/cordova_screenshots/ios/ui-snapshots/Info.plist' to '/var/folders/b8/zbn4kbds68d8s7_brr4yx3880000gn/T/snapshot_derived20191220-99448-1de3tt3/Build/Products/Debug-iphonesimulator/ui-snapshots-Runner.app/PlugIns/ui-snapshots.xctest/Info.plist'
2) Target 'ui-snapshots' (project 'my.project') has process command with output '/var/folders/b8/zbn4kbds68d8s7_brr4yx3880000gn/T/snapshot_derived20191220-99448-1de3tt3/Build/Products/Debug-iphonesimulator/ui-snapshots-Runner.app/PlugIns/ui-snapshots.xctest/Info.plist'

        Testing cancelled because the build failed.

Rename actions

ionic_ios_config_snapshot_action.rb
ionic_ios_snapshot_action.rb

to probably something like this:

cordova_screenshots_ios_setup_action.rb
cordova_screenshots_ios_retrofit_action.rb

Config paths should be parameters

I wanted to put config files to a different folder. I had to override CordovaScreenshots::CORDOVA_SCREENSHOTS_IOS_CONFIG_PATH from a lane as a workaround for now.

SnapshotHelper.swift is outdated

The SnapshotHelper.swift file distributed with this plugin is out of date and results in the following error when running snapshot:

Your './fastlane/cordova_screenshots/ios/ui-snapshots/SnapshotHelper.swift' is outdated, please run fastlane snapshot update to update your Helper file

how to write a test

can your provide an example of a working test
because i didn't know how to do it

SWIFT_VERSION '3.0' is unsupported

When I try to use this plugin, I get this error:

❌ error: SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0. (in target 'appName')

Here is my system informations:

Ionic:

ionic (Ionic CLI) : 4.12.0 (/Users/muratcorlu/.nvm/versions/node/v8.15.1/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.3.0
@angular-devkit/build-angular : 0.10.6
@angular-devkit/schematics : 7.2.1
@angular/cli : 7.2.1
@ionic/angular-toolkit : 1.5.1

Cordova:

cordova (Cordova CLI) : 9.0.0 ([email protected])
Cordova Platforms : browser 6.0.0, ios 5.0.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.2.0, (and 15 other plugins)

System:

ios-sim : ios-sim/9.0.0-dev.4 darwin-x64 node-v8.15.1
NodeJS : v8.15.1 (/Users/muratcorlu/.nvm/versions/node/v8.15.1/bin/node)
npm : 6.4.1
OS : macOS Mojave
Xcode : Xcode 10.2.1 Build version 10E1001

[iOS] Absolute vs. relative path?

Currently the iOS tests are (afaik) linked into the Xcode project via an absolute system path.
Can and should this maybe be changed to a relative path?

Multiple commands produce ... error

I tried to use this plugin for my ionic application. When I tried to run it, all of my tests are failing with this error:

Testing failed:
Multiple commands produce '/var/folders/_r/ssl659l55k36rcthxbjzcy700000gn/T/snapshot_derived20181102-72161-87p9tr/Build/Products/Debug-iphonesimulator/scheme-Runner.app/PlugIns/scheme.xctest/Info.plist':
1) Target 'scheme' (project 'bilibu') has copy command from '/Users/murat.corlu/works/bilibu/fastlane/cordova_screenshots/ios/scheme/Info.plist' to '/var/folders/_r/ssl659l55k36rcthxbjzcy700000gn/T/snapshot_derived20181102-72161-87p9tr/Build/Products/Debug-iphonesimulator/scheme-Runner.app/PlugIns/scheme.xctest/Info.plist'
2) Target 'scheme' (project 'bilibu') has process command with output '/var/folders/_r/ssl659l55k36rcthxbjzcy700000gn/T/snapshot_derived20181102-72161-87p9tr/Build/Products/Debug-iphonesimulator/scheme-Runner.app/PlugIns/scheme.xctest/Info.plist'

I'm using ionic 4, XCode 10. Any suggestion to fix this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.