2015-01-28 5 views
-1

, 내가 얻을 오류 :애플 마하-O 링커 오류 (객체를 할당 할 수 없습니다)

Undefined symbols for architecture i386: 
"_OBJC_CLASS_$_PlayerProfileSectionProReviewModel", referenced from: 
    objc-class-ref in PlayerProfileSectionProReviewViewController.o 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

나는 내가 방법 라인 _playerProfileSectionProReviewModel = [[PlayerProfileSectionProReviewModel alloc]init];을 실행하려고 할 때 내가 얻을이 오류 :

- (PlayerProfileSectionProReviewModel *)playerProfileSectionProReviewModel 
{ 
    if (!_playerProfileSectionProReviewModel) 
    { 
     _playerProfileSectionProReviewModel = [[PlayerProfileSectionProReviewModel alloc]init]; 
    } 

    return _playerProfileSectionProReviewModel; 
} 

어디에서 문제가 발생합니까? 제발 도와주세요!

+0

'PlayerProfileSectionProReviewModel' 클래스에 대한 참조가 타겟과 올바르게 연결되어 있습니다. – Kampai

+0

뷰 컨트롤러에는'_property (비 원자력, 강함) PlayerProfileSectionProReviewModel * playerProfileSectionProReviewModel; 속성이 있습니다. _playerProfileSectionProReviewModel = [[PlayerProfileSectionProReviewModel alloc] init]; ' –

답변

2

클래스가 대상을 참조하는지 확인하십시오. 아래 단계를 통해 확인할 수 있습니다.

사례 탐색기에서 PlayerProfileSectionProReviewModel 클래스를 선택하십시오. Xcode의 오른쪽 속성 창에있는 유틸리티 확인 창.

대상 멤버십은 현재 클래스에서 true입니다. 상기 이미지 간단한에서

enter image description here

프로젝트 대상이다.

+0

대단히 고마워요! –

관련 문제