-
Notifications
You must be signed in to change notification settings - Fork 617
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
[Windows] No signature files found in META-INF. Cannot proceed. #802
Comments
The application is not signed, you need to run the |
Thank you for super fast response @TobiasRoikjer
|
@d-konovalov What is the full ouput (including the command you have executed)? |
The next line is attempt to build it |
@d-konovalov Run using Look for the line below Signing using the digest algorithm: . |
@TobiasRoikjer
But as you can see the initial error message is still available Thanks |
You have to build the the same .calabash_settings as the ones you use to resign it. |
hm |
Yes. Calabash has to have a server (created using build) signed used the same credentials as the app under test (resigned using resign) |
I've changed order of these actions but the output is the same (
|
@d-konovalov Unzip the apk after running |
I can see MANIFEST.MF, CERT.SF and CERT.RSA files |
To confirm, on the CI machine, you resigned the app, and on the CI machine, you unzipped the app, and saw those files in the META-INF directory? |
Yep |
And you are doing it from the same directory and user as the CI script is running as? |
The directory is the same but I'm not sure about the user |
This one is still happens when triggered by CI
|
To confirm, that happens when you execute |
That's right
When 'resign':
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.0/lib/calabash-android/java_keystore.rb:60:in `sign_apk': Could not sign app: C:/Users/Test/AppData/Local/Temp/d20170117-7352-1c81xzp/unsigned.apk (RuntimeError)
When 'build' I see the error from the first message:
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.0/lib/calabash-android/helpers.rb:188:in `block (2 levels) in fingerprint_from_apk': No signature files found in META-INF. Cannot proceed. (RuntimeError) from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.0/lib/calabash-android/helpers.rb:170:in `chdir' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.0/lib/calabash-android/helpers.rb:170:in `block in fingerprint_from_apk' from C:/Ruby22-x64/lib/ruby/2.2.0/tmpdir.rb:88:in `mktmpdir' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.0/lib/calabash-android/helpers.rb:169:in `fingerprint_from_apk' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.0/bin/calabash-android-build.rb:2:in `calabash_build' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.0/bin/calabash-android:72:in `<top (required)>' from C:/Ruby22-x64/bin/calabash-android:23:in `load' from C:/Ruby22-x64/bin/calabash-android:23:in `<main>'
|
Probably you're using the JDK 151 or 152. These versions of JDK changed the way that keytool works. The quick fix for this is downgrading the JDK to 144 (previous version). And your error should be fixed |
Hello, I am having the exact same issue. I've tried downgrading to JDK 144 and still I see the following:
|
Guys i'm also facing same issue, after resigning the apk(resigning will be success) ResignD:\test>bundle exec calabash-android resign app-staging.apk D:\test> When i do run/buildD:\test>bundle exec calabash-android run app-staging.apk |
@KGMSathish try downgrading the version of calabash-android to 0.9.5 and rubyzip to 1.2.1. |
@TobiasRoikjer facing the same issue can you help me with it? |
@shahbaz-qaiser-10p |
hey does it still happen with 0.9.22 version of the gem? |
When I run this command:
calabash-android build BuildName.apk
on mac all works as expected
but if I try to do it on windows I get next error:
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.0/lib/calabash-android/helpers.rb:188:in `block (2 levels) in fingerprint_from_apk': No signature files found in META-INF. Cannot proceed. (RuntimeError) from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.0/lib/calabash-android/helpers.rb:170:in `chdir' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.0/lib/calabash-android/helpers.rb:170:in `block in fingerprint_from_apk' from C:/Ruby22-x64/lib/ruby/2.2.0/tmpdir.rb:88:in `mktmpdir' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.0/lib/calabash-android/helpers.rb:169:in `fingerprint_from_apk' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.0/bin/calabash-android-build.rb:2:in `calabash_build' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.0/bin/calabash-android:72:in `<top (required)>' from C:/Ruby22-x64/bin/calabash-android:23:in `load' from C:/Ruby22-x64/bin/calabash-android:23:in `<main>'
Please help me to find what I do wrong
Best regards
The text was updated successfully, but these errors were encountered: