使用Apportable为Play商店制作应用程序

时间:2014-07-29 22:13:14

标签: android ios apportable

似乎我非常接近让我的应用程序与Apportable一起工作,但我必须遗漏一些东西。我可以在我的Android设备上编译和加载它,但我无法弄清楚如何获得我可以上传到Play商店的版本。

我按照http://docs.apportable.com/publishing的说明进行操作。

我使用此命令生成了一个键:

keytool -genkey -v -keystore release.keystore -alias mykey -keyalg RSA \
        -keysize 2048 -validity 10000

然后我执行这些命令:

BUILD=release
ANDROID_KEYSTORE=release.keystore
ANDROID_KEYSTORE_PASS=mypassword
apportable build

然后这是我看到的输出:

Warning: Unable to find a file to match the following requested asset: /Users/xxx.xxxx/xxxxx/xxxxx/xxxxx/../../../../../var/folders/k6/622y1j591td761hnpbwz9fzr8rr8br/T/tmpdw18sb/TARGET_BUILD_DIR/libObjectiveChipmunk.a
Warning: Module com.rrTenz.Tens/Tens: lib /Users/xxx.xxxx/xxxxx/xxxxx/Tens/z does not exist
Warning: Module com.rrTenz.Tens/Tens: lib /Users/xxx.xxxxx/xxxxxx/app apple/Tens/sqlite3 does not exist
Warning: Module com.rrTenz.Tens/Tens: lib /Users/xxx.xxxxx/xxxxx/xxxxx/Tens/ObjectiveChipmunk does not exist
[1/11] Writing Build/android-armeabi-debug/Tens/AndroidManifest.xml
[2/11] Zipping Build/android-armeabi-debug/Tens/Tens-debug.apk:/assets/Info.plist
[3/11] Creating Build/android-armeabi-debug/Tens/Tens-resources.apk and R.java files
[4/4] Building Build/android-armeabi-debug/Tens/Tens-debug.apk

有人可以告诉我我错过了什么吗?

这是我在更改包名称并从目录名称中删除空格后看到的内容:

 apportable build
Warning: Unable to find a file to match the following requested asset: /Users/ryan.tensmeyer/Dropbox/app_apple/Tens/../../../../../var/folders/k6/622y1j591td761hnpbwz9fzr8rr8br/T/tmpTQQuSR/TARGET_BUILD_DIR/libObjectiveChipmunk.a
Warning: Module com.rrtenz.Tens/Tens: lib /Users/ryan.tensmeyer/Dropbox/app_apple/Tens/z does not exist
Warning: Module com.rrtenz.Tens/Tens: lib /Users/ryan.tensmeyer/Dropbox/app_apple/Tens/sqlite3 does not exist
Warning: Module com.rrtenz.Tens/Tens: lib /Users/ryan.tensmeyer/Dropbox/app_apple/Tens/ObjectiveChipmunk does not exist
ninja: error: expected depfile '/Users/ryan.tensmeyer/.apportable/SDK/Build/android-armeabi-debug/com.rrtenz.Tens/Tens/Users/ryan.tensmeyer/Downloads/iAdHelper/iAdHelper.m.o.d' to mention '/Users/ryan.tensmeyer/.apportable/SDK/Build/android-armeabi-debug/com.rrtenz.Tens/Tens/Users/ryan.tensmeyer/Downloads/iAdHelper/iAdHelper.m.o', got '/Users/ryan.tensmeyer/.apportable/SDK/Build/android-armeabi-debug/com.rrTenz.Tens/Tens/Users/ryan.tensmeyer/Downloads/iAdHelper/iAdHelper.m.o'
Error: command failed: /Users/ryan.tensmeyer/.apportable/SDK/toolchain/macosx/ninja/ninja --no-strip-ansi-escapes -j 16 /Users/ryan.tensmeyer/.apportable/SDK/Build/android-armeabi-debug/Tens/Tens-debug.apk

执行apportable clean后,这是我当前的输出:

apportable build

Warning: Unable to find a file to match the following requested asset: /Users/ryan.tensmeyer/Dropbox/appApple/TensApportable/../../../../../var/folders/k6/622y1j591td761hnpbwz9fzr8rr8br/T/tmpYWZNxo/TARGET_BUILD_DIR/libObjectiveChipmunk.a
Warning: Module com.rrtenz.Tens/Tens: lib /Users/ryan.tensmeyer/Dropbox/appApple/TensApportable/z does not exist
Warning: Module com.rrtenz.Tens/Tens: lib /Users/ryan.tensmeyer/Dropbox/appApple/TensApportable/sqlite3 does not exist
Warning: Module com.rrtenz.Tens/Tens: lib /Users/ryan.tensmeyer/Dropbox/appApple/TensApportable/ObjectiveChipmunk does not exist
[1/10] Writing Build/android-armeabi-debug/Tens/AndroidManifest.xml
[2/10] Creating Build/android-armeabi-debug/Tens/Tens-resources.apk and R.java files
[3/3] Building Build/android-armeabi-debug/Tens/Tens-debug.apk

3 个答案:

答案 0 :(得分:1)

您的包名com.rrTenz.Tens不正确。 T中的第一个首都rrTenz需要是小写,第二个T是好的 - 一个可以保持大写。

只有包名的前两个成员需要为小写。

答案 1 :(得分:1)

核心问题可能是路径中的空间 - /Users/ryan.tensmeyer/Dropbox/app apple

尝试将应用移动到没有空格的文件夹中。

答案 2 :(得分:0)

我终于通过将这些命令复制到一行的文本编辑器中并使用我的密钥库和密码进行修改来实现它。显然,它并不喜欢在两条不同的线上使用它......我想。

BUILD=release ANDROID_KEYSTORE=release.keystore \
        ANDROID_KEYSTORE_PASS=mypassword apportable build