최근에 최신 iOS SDK (4.3)를 사용하기 위해 xCode 4.0.1로 업그레이드했습니다. 현재 iOS 3.X 기기 용으로 개발 중이지만 가까운 시일 내에 iOS 4.X로 확장하려고합니다.iOS SDK 4.3으로 컴파일 된 iOS 3.X 앱을 실행할 수 없습니다.
문제는 현재 3.X 장치에서 아무 것도 실행할 수 없다는 것입니다. 내가 이해하는 것처럼, 4.3 SDK는 모든 버전의 iOS 3.0 및 그 이후 버전으로 컴파일을 지원합니다. 물론 과 같은 애플리케이션을 컴파일 할 수는 있습니다. 하지만 시뮬레이터 나 장치에서 실행하려고하면로드가 시작되고 충돌이 발생합니다.
지금은 단순히 기본 윈도우 기반 응용 프로그램을 수정하지 않고 실행하려고합니다. 기본 SDK로 4.3을 선택하고 배포 목표를 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
기꺼이 도와 드리겠습니다! –