Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
janpio opened this issue Aug 5, 2017 · 6 comments
Open

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

janpio opened this issue Aug 5, 2017 · 6 comments

Comments

@janpio
Copy link
Contributor

janpio commented Aug 5, 2017

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
Copy link
Contributor Author

janpio commented Aug 5, 2017

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
Copy link
Contributor Author

janpio commented Aug 5, 2017

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

@knocknarea
Copy link
Owner

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

@janpio
Copy link
Contributor Author

janpio commented Aug 7, 2017

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.

@knocknarea
Copy link
Owner

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.

@janpio
Copy link
Contributor Author

janpio commented Aug 2, 2018

Future Jan is here an had to do this again.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants