2011-03-11 4 views
0

이것은 아래에서 실행 한 결과입니다. 며칠 전, 개체의 일부 (.xib 파일 포함)의 이름을 변경했으며 Xcode 4에서 이름을 변경하지 않은 것을 발견했습니다. (나는 그것을로드 할 수 없다고 말하기 때문에 추측하고있다). NIB의 이름을 어떻게 찾거나 XIB 파일을 변경하여 NIB의 이름을 올바르게 지정합니까?NIB 파일 (또는 펜촉의 이름을 바꿀 수 있도록 xib 이름을 바꾸는 방법)

GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 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 "x86_64-apple-darwin".Attaching to process 27080. 
2011-03-11 09:43:00.142 PointsEncodeDecode[27080:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/rolfmarsh/Library/Application Support/iPhone Simulator/4.3/Applications/4066ECCF-3937-49B1-9FBE-1CE9BFA56844/PointsEncodeDecode.app> (loaded)' with name 'ReaderSampleViewController'' 

답변

0

이 누락 된 펜촉은의 Info.plist 파일에 지정된 이름이있는 응용 프로그램의 메인 nib 파일 될 것 같지 않습니다. 아마도 다른 Nib 파일에 외부 객체를 생성하기위한 이전 Nib 이름이있을 수 있습니다. 먼저 전체 build 디렉토리를 삭제하고 터미널의 이전 파일 이름에 대한 모든 텍스트 참조를 grep하여 누가 아직도 참조를했는지 확인합니다.

grep -rnF '<old Nib name>' <path_to_your_project_directory> 
+0

NIB는 XIB에 의해 빌드됩니까? – SpokaneDude

+0

예. 정확히 말하면 Xib은 Xib에서 Nib로 변환되기 전에 Xib라는 용어를 사용해야했습니다. 그러나 언젠가는이 두 용어를 서로 바꾸어 사용하는 데 익숙해 져 있습니다 .... – MHC

관련 문제