시뮬레이터에서 코드가 실행되지만 장치에서 제대로 실행되지 않게되는 원인은 무엇입니까?장치가 작동하지 않습니다. 시뮬레이터가 수행합니까
ftp를 통해 서버에 파일을 업로드하고 있습니다. 업로드를 수행하기 위해 http://code.google.com/p/s7ftprequest/
을 사용하고 있습니다. ftp를 통해 업로드하는 간단한 방법이 있습니까?
대상을 지우고 모든 것을 재설정하려고 시도했지만 도움이되지 않습니다.
//create file for new submission
[submission.text writeToURL:[NSString stringWithFormat:@"%d.txt", submissionNum] atomically:YES encoding:NSUTF8StringEncoding error:nil];
//create new number.txt file
NSString *numberFileString = [NSString stringWithFormat:@"%d",submissionNum];
[numberFileString writeToURL:[NSString stringWithFormat:@"number.txt"] atomically:YES encoding:NSUTF8StringEncoding error:nil];
//connect and upload submission
S7FTPRequest *ftpRequest = [[S7FTPRequest alloc] initWithURL:[NSURL URLWithString:@"ftp://cheekyapps.com/ezhighasiam"]
toUploadFile:[NSString stringWithFormat:@"%d.txt", submissionNum]];
예외가 있습니까? – tomasmcguinness
예외가 없지만 (코코아 오류 260) 발생합니다. – Chris
오류에 대한 정보를 찾을 수 없습니까? http://stackoverflow.com/questions/2547075/cocoa-contentsofdirectorypath-method-failing-with-error-for-certain-users-ma? – vikingosegundo