有一个问题使用Calabash-Android来辞职安卓apk文件

时间:2014-01-23 20:38:01

标签: android macos ant automated-tests calabash

我想弄清楚我缺少让calabash-android签署一个apk文件。任何帮助表示赞赏。控制台日志如下。目前正在运行Mac OS X 10.9

Last login: Thu Jan 23 09:25:44 on console
xxxxx2m3:~ xxxxx2$ echo $ANDROID_HOME
/Users/xxxxx2/android/android-sdk/sdk
xxxxx2m3:Calabash_Automation xxxxx2$ calabash-android resign android-app.apk 
/Users/xxxxx2/.rvm/gems/ruby-2.1.0@global/gems/calabash-android-0.4.18/lib/calabash-android/helpers.rb:102:in `sign_apk': private method `sign_apk' called for nil:NilClass (NoMethodError)
    from /Users/xxxxx2/.rvm/gems/ruby-2.1.0@global/gems/calabash-android-0.4.18/lib/calabash-android/helpers.rb:82:in `block in resign_apk'
    from /Users/xxxxx2/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/tmpdir.rb:88:in `mktmpdir'
    from /Users/xxxxx2/.rvm/gems/ruby-2.1.0@global/gems/calabash-android-0.4.18/lib/calabash-android/helpers.rb:76:in `resign_apk'
    from /Users/xxxxx2/.rvm/gems/ruby-2.1.0@global/gems/calabash-android-0.4.18/bin/calabash-android:107:in `<top (required)>'
    from /Users/xxxxx2/.rvm/rubies/ruby-2.1.0/bin/calabash-android:23:in `load'
    from /Users/xxxxx2/.rvm/rubies/ruby-2.1.0/bin/calabash-android:23:in `<main>'
    from /Users/xxxxx2/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval'
    from /Users/xxxxx2/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `<main>'
xxxxx2m3:Calabash_Automation xxxxx2$ android
xxxxx2m3:Calabash_Automation xxxxx2$ calabash-android build android-app.apk 
No keystores found.
Please create one or run calabash-android setup to configure calabash-android to use an existing keystore.
xxxxx2m3:Calabash_Automation xxxxx2$ calabash-android setup
Please enter keystore information to use a custom keystore instead of the default
Please enter keystore location

Please enter the password for the keystore

Please enter the alias

Saved your settings to .calabash_settings. You can edit the settings manually or run this setup script again
xxxxx2m3:Calabash_Automation xxxxx2$ 

任何帮助将不胜感激。这让我感到很沮丧。

2 个答案:

答案 0 :(得分:1)

查看https://github.com/calabash/calabash-android/wiki/Running-Calabash-Android

在那里解释了如何重新启动应用程序。 使用 calabash-android setup 并设置以下内容: - 密钥库位置:〜/ .android / debug.keystore - 密码: android - 别名: androiddebugkey

答案 1 :(得分:0)

我有一个名为calabash-settings的文件,内容为:

{ “keystore_location”: “... ”“ keystore_password ”:“ ... ”“ keystore_alias ”:“ ...”}

在我执行calabash

的文件夹中