Addresponse - add only to memory (Xcode)

I try to connect my project to a php file, but every time it shows:

ADDRESPONSE - ADDING TO MEMORY ONLY 

I've never seen this before. this is the code i use:

 //Gets the php FindURL = [NSString stringWithFormat:@"http://domain.com/Myfile.php?username=%@", Username.text]; // to execute php code URLData = [NSData dataWithContentsOfURL:[NSURL URLWithString:FindURL]]; // to receive the returend value DataResult = [[NSString alloc] initWithData:URLData encoding:NSUTF8StringEncoding]; NSLog(@"%@",DataResult); 

What can I do?

Thank you in advance

Update code:

 - (IBAction)UpdateList:(id)sender{ NSURLRequest *request=[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://domain.com/Myfile.php"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:15.0]; NSURLConnection *Connection = [[NSURLConnection alloc] initWithRequest:request delegate:self]; if (Connection) { //Connect }else{ //Error } } - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data{ DataResult = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; NSLog(@"%@", DataResult); } 
+5
source share
2 answers

I had the same problem - check the following: this may help you: Log messages that I did not request in Xcode 4.5 with iOS 6.0

So far I have not found a solution, but since now I know that this log is created by the OS, I no longer look for its source in my source :)

+2
source

I got this log by setting NSURLRequest to an invalid URL. My application should show UIAlertView when it causes a server-side error, so I asked our system administrator to delete our entire site so that I could see what was happening. He rejected my request, so I typed in random letters and put .com at the end of the request URL.

It turns out that we have an internal test server that does not seem to be accessible from my WiFi connection, so when I changed the URL to it, the log stopped.

0
source

Source: https://habr.com/ru/post/957030/


All Articles