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

[!] Unable to locate Main Target for Ionic App in MyApp

Open janpio opened this issue 7 years ago • 6 comments

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?

janpio avatar Aug 05 '17 02:08 janpio

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?

janpio avatar Aug 05 '17 02:08 janpio

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...

janpio avatar Aug 05 '17 02:08 janpio

Thank you @janpio for looking into this. If you want to submit a fix that would be excellent

knocknarea avatar Aug 07 '17 21:08 knocknarea

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.

janpio avatar Aug 07 '17 21:08 janpio

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.

knocknarea avatar Aug 07 '17 22:08 knocknarea

Future Jan is here an had to do this again.

File: lib/fastlane/plugin/ionic_integration/actions/ionic_ios_snapshot_action.rb Line 75

janpio avatar Aug 02 '18 21:08 janpio