尝试使用Apportable在Android手机上运行应用时PTP_ERROR_IO

时间:2014-03-01 10:55:54

标签: android ios apportable

我正在尝试使用Apportable转换UIKit的iOS应用,并在我的Android手机上进行调试。

我可以使用Starter Apportable在Android 4.0.4索尼爱立信Xperia Arc S上使用Apportable构建和运行Tweejump示例。 设备通过USB连接,并启用USB调试。

我已经恢复,修复并重新启动了我的设备,这使我能够运行Tweejump示例,但是当我尝试构建并运行我自己的应用程序时,它会指出以下错误:

Finalizing Build/android-armeabi-debug/Chaser/Chaser-unaligned.apk
Signing APK with keys
Aligning Build/android-armeabi-debug/Chaser/Chaser-signed.apk
Loading...
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
Android device detected, assigning default bug flags
Found Sony Ericsson LT18i (BX902USN5N)
Could not get device foldersStarting: Intent { cmp=Cromian.CHASER/com.apportable.activity.VerdeActivity (has extras) }
Error type 3
Error: Activity class {Cromian.CHASER/com.apportable.activity.VerdeActivity} does not exist.

scons: done building targets.
Finished.

我尝试使用以下命令构建和运行: apportable load 和  EARLY_LIFECYCLE_DEBUG=yes apportable just_debug

我尝试将USB连接模式设置为MTP以及MSC。

如果我可以开始工作,我会考虑选择Indie计划。

有人可以帮帮我吗?

更新: 在我的其他iOS应用程序上运行命令EARLY_LIFECYCLE_DEBUG=yes apportable just_debug时,我在终端中收到以下输出:

Running process NOT FOUND
1572 KB/s (9848 bytes in 0.006s)
Using Xcode breakpoints v2
am start -e EARLY_LIFECYCLE_DEBUG 1 -e NSUnrecognizedForwardingDisabled 1 -e WAIT_FOR_ATTACH 1 -n AndersFriis.CheckUd/com.apportable.activity.VerdeActivity
Starting: Intent { cmp=AndersFriis.CheckUd/com.apportable.activity.VerdeActivity (has extras) }
Attaching to pid 2108
Attached; pid = 2108
Listening on port 5039
GNU gdb (GDB) 7.5-https://github.com/apportable/gdb Feb 20 2014 18:49:38
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-apple-darwin12.4.0 --target=arm-elf-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Remote debugging from host 127.0.0.1
warning: Could not load shared library symbols for gralloc.msm7x30.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
0x2aabc4b0 in epoll_wait () from /Users/Anders/.apportable/cache/devices/BX902USN5N/libs/libc.so
$1 = 1
/Users/Anders/.apportable/SDK/Build/android-armeabi-debug/Check_ud/gdb/gdb.setup:18: Error in sourced command file:
No symbol table is loaded.  Use the "file" command.
(gdb) 

该应用只是挂在“apportable beta”发布图片上,没有任何反应。

更新2 : 运行命令EARLY_LIFECYCLE_DEBUG=yes apportable debug时出错:

[1/10] Writing Build/android-armeabi-debug/Check_ud/AndroidManifest.xml
[2/10] Creating Build/android-armeabi-debug/Check_ud/Check_ud-resources.apk and R.java files
[3/3] Building Build/android-armeabi-debug/Check_ud/Check_ud-debug.apk
Device 0 (VID=0fce and PID=514f) is a SonyEricsson LT15i Xperia Arc MTP+ADB.
Android device detected, assigning default bug flags
Found Sony Ericsson LT18i (BX902USN5N)
Could not get device foldersError: command failed: /Users/Anders/.apportable/SDK/bin/transfer /Users/Anders/.apportable/SDK/Build/android-armeabi-debug/Check_ud/Check_ud-debug.apk

更新3

...
pull: /system/lib/libpower.so -> /Users/Anders/.apportable/cache/devices/BX902USN5N/libs/libpower.so
pull: /system/lib/lib_get_secure_mode.so -> /Users/Anders/.apportable/cache/devices/BX902USN5N/libs/lib_get_secure_mode.so
278 files pulled. 0 files skipped.
4500 KB/s (65824946 bytes in 14.284s)
1559 KB/s (9848 bytes in 0.006s)
Using Xcode breakpoints v2
am start -e EARLY_LIFECYCLE_DEBUG 1 -e NSUnrecognizedForwardingDisabled 1 -e WAIT_FOR_ATTACH 1 -n AndersFriis.CheckUd/com.apportable.activity.VerdeActivity
Starting: Intent { cmp=AndersFriis.CheckUd/com.apportable.activity.VerdeActivity (has extras) }
Attaching to pid 1935
Attached; pid = 1935
Listening on port 5039
GNU gdb (GDB) 7.5-https://github.com/apportable/gdb Feb 20 2014 18:49:38
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-apple-darwin12.4.0 --target=arm-elf-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Remote debugging from host 127.0.0.1
warning: Could not load shared library symbols for gralloc.msm7x30.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
0x2aabc4b0 in epoll_wait () from /Users/Anders/.apportable/cache/devices/BX902USN5N/libs/libc.so
$1 = 1
/Users/Anders/.apportable/SDK/Build/android-armeabi-debug/Check_ud/gdb/gdb.setup:18: Error in sourced command file:
No symbol table is loaded.  Use the "file" command.
(gdb) 

1 个答案:

答案 0 :(得分:0)

&#34; 无法获取设备文件夹&#34;错误来自转移程序失败。

重新启动设备可能会解决问题。

否则,运行MTP=no apportable load会运行速度较慢但可能更可靠的adb来将应用转移到设备。