2013년 11월 13일 수요일

Error : setValue:forUndefinedKey: This class is not key value coding-compliant for the key

Error : setValue:forUndefinedKey:
This class is not key value coding-compliant for the key
원인 : XIB에서 어떤 컨트롤에 할당된 class명이 잘못되었거나 명시되지 않은 경우 (정리하면 XIB 문제)
해결 : 에러가 발생한 뷰 컨트롤러의 XIB에서 느낌표가 뜨는 컨트롤이 없는지 찾고 할당된 class를 확인

2013년 11월 9일 토요일

How to merge conflicts project.pbxproj in Xcode use git?

project.pbxproj 파일은 Xcode 구성 번들을 담고 있는 파일로 중요한 파일이다. 프로젝트에 링크된 파일과 프레임워크, 빌드 설정을 유지하도록 한다. 따라서 git에서 제외할 수 없다.

하지만 협업으로 개발할 때 서로 다른 리소스나 프레임워크를 추가하거나 빌드 설정을 바꾸면 계속해서 충돌을 일으킨다. 계속 merge를 해줘야 하는데 정말 매우 귀찮다.

이를 해결하기 위해서는 .gitattributes 파일을 만들고 project.pbxproj 파일을 바이너리처럼 인식하도록 하는 것이다.

add .gitattributes file and add one line :