fastlane-plugin-ionic_integration
fastlane-plugin-ionic_integration copied to clipboard
[!] Unable to locate Main Target for Ionic App in MyApp
When I run bundle exec fastlane run ionic_ios_config_snapshot ionic_scheme_name:ionic-screen-shots
I get this output:
Jans-MBP:stromzaehler sujan$ bundle exec fastlane run ionic_ios_config_snapshot ionic_scheme_name:ionic-screen-shots
+------------------------+---------+------------------------+
| Used plugins |
+------------------------+---------+------------------------+
| Plugin | Version | Action |
+------------------------+---------+------------------------+
| fastlane-plugin-updat | 1.0.1 | update_xcodeproj |
| e_xcodeproj | | |
| fastlane-plugin-ionic | 0.1.3 | ionic_ios_config_snap |
| _integration | | shot |
| | | ionic_ios_snapshot |
+------------------------+---------+------------------------+
[03:56:16]: ---------------------------------------
[03:56:16]: --- Step: ionic_ios_config_snapshot ---
[03:56:16]: ---------------------------------------
[03:56:16]: Creating New UI Unit Tests for Snapshots, with Scheme ionic-screen-shots in fastlane/ionic/config/ios/ui-tests
[03:56:16]: Copying iOS UI Tests from /Users/sujan/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-plugin-ionic_integration-0.1.3/lib/fastlane/plugin/ionic_integration/resources/ios/ui-snapshots to fastlane/ionic/config/ios/ui-tests/ionic-screen-shots
[03:56:16]: Configuring Xcode with UI Tests Located in fastlane/ionic/config/ios/ui-tests/**
[03:56:16]: Found ["fastlane/ionic/config/ios/ui-tests/ionic-screen-shots/"]...
[03:56:16]: Setting up ionic-screen-shots as UI Unit Test folder and Scheme in platforms/ios for Xcode Project MyApp
[03:56:16]: Xcode Project is Version Xcode 3.2 Compatible
[03:56:16]: Creating UI Test Group ionic-screen-shots for snapshots testing
[03:56:16]: Finding Main Target (of the Project)...
[!] Unable to locate Main Target for Ionic App in MyApp
Any idea what could cause this?
Ok, found the unpacked gem and added some debug output:
[04:00:24]: Finding Main Target (of the Project)...
[04:00:24]: project_name Zählerstand
[04:00:24]: compare Zählerstand to Zählerstand
[!] Unable to locate Main Target for Ionic App in Zählerstand
Umm.... Does it hate the Umlaut? What could I do about it?
For now I monkey-patched it with if 1 == 1 #t.name == project_name
to finish the run 🙈 - for more I would have to learn Ruby I guess...
Thank you @janpio for looking into this. If you want to submit a fix that would be excellent
I actually don't understand what the problem is...
I will try later with a project without Umlauts, maybe this fixes it without work needed. Then I can investigate further.
Thank you @janpio . I must admit this was the first time I attempted anything in ruby so, I'm sure it's something I have not taken into account.
Future Jan is here an had to do this again.
File: lib/fastlane/plugin/ionic_integration/actions/ionic_ios_snapshot_action.rb Line 75