add Framework - systemConfiguration
User Header Search Paths - *.h 주소 추가
deployment Target 4.3(개인사항)
other linker Flags -all_load -ObjC
add Framework - systemConfiguration
User Header Search Paths - *.h 주소 추가
deployment Target 4.3(개인사항)
other linker Flags -all_load -ObjC
lipo -create "mergeFileName1" "mergeFileName2" - output "outputFileName"
purgeIdleCellConnections: found one to purge conn = 0x5f15c0
iOS6업데이트 이후 콘솔에 이게 자꾸 찍힌다.
검색 결과 다음과 같은 답을 얻었다
통신상태가 좋지 않을 때 OS 레벨에서 발생하는 에러
이게 많이 불리게 되면 crash로 앱이 죽을 수도 있다고 함.
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *path = [documentsDirectory stringByAppendingPathComponent:@"file.txt"];
NSFileManager *fileManager = [NSFileManager defaultManager];
if ([fileManager fileExistsAtPath:path] == NO) { // 파일 존재 유무 확인
if ([fileManager createFileAtPath:path contents:nil attributes:nil] == NO) { // 파일 생성 성공 여부 확인
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Fail" message:@"File Create Failed" delegate:self cancelButtonTitle:@"Comfirm" otherButtonTitles:nil];
[alert show];
[alert release];
return ;
}
}
/Users/본인피씨이름/Library/Application Support/iPhone Simulator/iOS개발버전/Applications/개발프로젝트ID
10.6 이전 버전은 위의 경로로 바로 이동 가능
10.7 이후 버전은 파인더 > 메뉴 > option 키를 누르면 라이브러리 표시 됨
이때 이동 가능
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"Message" delegate:self cancelButtonTitle:@"Comfirm" otherButtonTitles:nil, nil];
[alert show];
[alert release];
# simulator일 경우
NSString *filepath = [[NSBundle mainBundle] pathForResource:@"fileName" ofType:@"확장자"];
NSError *error = [[NSError alloc] init];
NSString *data = [[NSString alloc] initWithContentsOfFile:filepath encoding:NSUTF8StringEncoding error:&error];