尝试使用Apportal在Android手机上运行应用程序时出现PTP_ERROR_IO



我正在尝试使用Apportal转换带有UIKit的iOS应用程序,并在我的Android手机上调试它。

我能够使用Starter Apportal在我的索尼爱立信Xperia Arc S安卓4.0.4上构建和运行Apportal的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 loadEARLY_LIFECYCLE_DEBUG=yes apportable just_debug

我尝试过将USB连接模式设置为MTP,也尝试过使用MSC。

如果我能让它发挥作用,我会考虑采用独立计划。

有人能帮我吗?

更新:在我的另一个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) 

该应用程序只是挂在"可接受的测试版"发布图片上,什么也没发生。

更新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) 

">无法获取设备文件夹"错误来自传输程序失败。

重新启动设备可以解决此问题。

否则,运行MTP=no apportable load将运行速度较慢但可能更可靠的adb,以便将应用程序传输到设备。

相关内容

  • 没有找到相关文章

最新更新