분석기를 사용하여 코드의 줄과 연결할 수 없다는 경고가 나타났습니다. 나는 그들을 어떻게 다룰 지 모르겠습니다. 그것들을 클릭하면 편집기에서 올바른 파일로 이동하지만, 분석기 요약 결과는 나에게 많은 것을 말해줍니다. 나는 이들 각각이 무엇을 언급하고 있는지를 알지 못하며, 코드를 한 줄씩 검토하는 것은 생산적이지 않다 (나는 무엇을 찾고 있는지 모른다). 마지막 경고를 들어 세부 정보/줄 번호가없는 XCode 분석기의 경고
Object with +0 retain counts returned to caller where a +1 (owning) retain count is expected
Incorrect decrement of the reference count of an object that is not owned at this point by the caller
Object with +0 retain counts returned to caller where a +1 (owning) retain count is expected
Object sent -autorelease too many times
, 나는 오토 릴리즈를 제거하고 멀리 갔다,하지만 난 그것을 반환 문에 사용 된 이후, 그것을 해제하는 방법을 모르겠어요.
- (Client*) createNewClient {
...
Client *client = [NSEntityDescription insertNewObjectForEntityForName:@"Client"inManagedObjectContext:dataInterface.managedObjectContext];
...
return client;
}
일반적으로 어떻게해야합니까?
어느 Xcode 버전입니까? –
@Bavarious XCode 버전 4 – Jim