我最近升級到xCode 4.0.1以便使用最新的iOS SDK(4.3)。我目前正在爲iOS 3.X設備開發,但在不久的將來希望擴展到iOS 4.X。無法運行使用iOS SDK 4.3編譯的iOS 3.X應用程序
問題是,我似乎無法成功運行我的當前3.X設備上的任何東西。據我瞭解,4.3 SDK支持編譯到所有版本的iOS 3.0及其後續,當然我可以編譯這樣的應用程序就好了。但是,如果我嘗試在模擬器或設備上運行它,它會開始加載,然後崩潰。
現在我只是試圖讓默認的基於窗口的應用程序運行沒有任何修改。我選擇了4.3作爲基礎SDK,並將我的部署目標設置爲3.0。我可以從3.0版本中選擇每個版本的iOS作爲我的構建目標,但只有使用4.3才能真正起作用。
當我跑我的手機上的應用程序,我獲取日誌中的以下內容:
GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:56:02 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=x86_64-apple-darwin --target=arm-apple-darwin".tty /dev/ttys002
warning: Unable to read symbols from "dyld" (prefix __dyld_) (not yet mapped into memory).
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3 (7E18)/Symbols/System/Library/Frameworks/UIKit.framework/UIKit (file not found).
warning: Unable to read symbols from "UIKit" (not yet mapped into memory).
warning: Unable to read symbols from "Foundation" (not yet mapped into memory).
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3 (7E18)/Symbols/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics (file not found).
warning: Unable to read symbols from "CoreGraphics" (not yet mapped into memory).
warning: Unable to read symbols from "libgcc_s.1.dylib" (not yet mapped into memory).
warning: Unable to read symbols from "libSystem.B.dylib" (not yet mapped into memory).
warning: Unable to read symbols from "libobjc.A.dylib" (not yet mapped into memory).
warning: Unable to read symbols from "CoreFoundation" (not yet mapped into memory).
target remote-mobile /tmp/.XcodeGDBRemote-18423-39
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
[Switching to process 11779 thread 0x0]
[Switching to process 11779 thread 0x0]
gdb stack crawl at point of internal error:
0 gdb-arm-apple-darwin 0x000000010010974a internal_vproblem + 308
1 gdb-arm-apple-darwin 0x0000000100109924 internal_verror + 27
2 gdb-arm-apple-darwin 0x00000001001099c2 align_down + 0
3 gdb-arm-apple-darwin 0x0000000100150c5e macosx_solib_add + 794
4 gdb-arm-apple-darwin 0x000000010016417c remote_macosx_complete_create_or_attach + 187
5 gdb-arm-apple-darwin 0x000000010016489e remote_macosx_create_inferior + 1252
6 gdb-arm-apple-darwin 0x000000010005f6c3 run_command_1 + 586
7 gdb-arm-apple-darwin 0x0000000100107b7f execute_command + 557
8 gdb-arm-apple-darwin 0x00000001000171e7 mi_execute_async_cli_command + 204
9 gdb-arm-apple-darwin 0x00000001000168e5 captured_mi_execute_command + 344
10 gdb-arm-apple-darwin 0x0000000100072a62 catch_exception + 57
11 gdb-arm-apple-darwin 0x000000010001443e mi_execute_command + 140
12 gdb-arm-apple-darwin 0x0000000100077721 process_event + 133
13 gdb-arm-apple-darwin 0x0000000100078435 gdb_do_one_event + 1049
14 gdb-arm-apple-darwin 0x0000000100072b49 catch_errors + 70
/SourceCache/gdb/gdb-1518/src/gdb/macosx/macosx-nat-dyld.c:1648: internal-error: unrecognized shared library breakpoint
A problem internal to GDB has been detected,
further debugging may prove unreliable.
我猜測,沿線某處,應用程序的不正確設置鏈接到3 .X版本的API,因此「無法讀取符號」的東西出現在日誌中。我似乎無法弄清楚如何糾正這種情況。
任何建議感激地讚賞!
感謝您的建議。看起來它最終可能是供應配置文件 - 僅僅爲了一個百靈之源,我嘗試了一個全新的手機來查看它是否可行(當然這需要更新供應配置文件),並且它工作正常。再次感謝! – Mac 2011-04-12 01:43:05
很高興能幫到你! – 2011-04-13 22:32:14