我試圖使用Apportable將UIKit轉換爲iOS應用程序,並在我的Android手機上進行調試。PTP_ERROR_IO嘗試使用Apportable在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嘗試。
如果我能得到它的工作,我會考慮去爲獨立計劃。
有人能幫我嗎?
UPDATE: 當運行命令EARLY_LIFECYCLE_DEBUG=yes apportable just_debug
,在我的其他iOS應用程序之一,我收到在終端輸出如下:
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公測」發射圖像並沒有任何反應。
更新2:
[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: 運行命令EARLY_LIFECYCLE_DEBUG=yes apportable debug
時出錯
...
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)
嗨保羅。現在應用程序可以使用您的建議命令轉移到設備上,這很好。但它啓動時立即崩潰,所以如果有可能調試它,我可以找到錯誤的原因。 –
使用EARLY_LIFECYCLE_DEBUG =是apportable just_debug –
感謝您的答案。我使用運行該命令時收到的輸出更新了問題。 –