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

Cannot find config.xml #42

Closed
merlinofcha0s opened this issue Dec 18, 2018 · 7 comments
Closed

Cannot find config.xml #42

merlinofcha0s opened this issue Dec 18, 2018 · 7 comments

Comments

@merlinofcha0s
Copy link

merlinofcha0s commented Dec 18, 2018

Hi,
I have an issue when I try to do fastlane android build_debug on MacOS and on Ubuntu 18.04
The error : No such file or directory @ rb_sysopen - config.xml

I use the following version :
[email protected] with a project based on 3.x.x
[email protected]
[email protected]
[email protected]

Is it possible to have a look on that ?

Thanks

Regards

@janpio
Copy link
Collaborator

janpio commented Dec 18, 2018

Sure.

How is your project set up?
platforms and config.xml in the same folder as your fastlane folder?

What does your build_debug lane look like?

@merlinofcha0s
Copy link
Author

I generate a ionic project with ionic start myApp tabs
Then, cordova platform add android
fastlane init in the platform/android folder
My lane is like this :

default_platform(:android)
platform :android do
  desc "Build Debug"
  lane :build_debug do
    ionic(
      platform: 'android',
      prod: true,
      release: false
    )
  end
end

So no my config.xml is not in the same folder as the platform folder

@janpio
Copy link
Collaborator

janpio commented Dec 19, 2018

Ah ok, the plugin (and the one this is based on) kind of assume there to be a config.xml. That is actually something that might be improved I guess :/

Can you try fastlane init in the Ionic/Cordova project root and run the lane as you have it there?

@merlinofcha0s
Copy link
Author

I can't do that because fastlane tell me that he didn't detect any android or IOS project

@janpio
Copy link
Collaborator

janpio commented Dec 19, 2018

Ok, so the fastlane init process got dumbed down :(

Just create the fastlane folder and Fastfile in it manually and try running it, that should work.

@merlinofcha0s
Copy link
Author

Yup in this case it's working 😄
Kind of misleading with fastlane init 😭
Thanks

@janpio
Copy link
Collaborator

janpio commented Dec 19, 2018

Great, I created #43 to think about a solution for the initial problem you were having. This is some very special code reading/writing to config.xml that porbably would not have been relevant to you anyway, so I am not happy this cause problems for you.

Feel free to ask further questions if you encounter any additional problem! 🎢

@janpio janpio closed this as completed Dec 19, 2018
@janpio janpio removed the question label Dec 19, 2018
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