Lost connection to "iPhone” when running app
<p>I am running my app first time in xcode 6.0.1 given below error occur.</p>

<p>Restore the connection to "iPhone 6" and run "AppName" again, or if "AppName" is still running, you can attach to it by selecting Debug > Attach to Process > AppName.</p>

<p>How do I solve this issue?</p>

<p>And I am maintaining Services integrating classes at a separate class. </p>

<p>And after getting Response from services I am getting response in my main class using protocols.</p>

<p>Like below my code.</p>

<p>Please help me.</p>

<h2>my code:-</h2>

<pre><code>- (void) GetCallService2: (id)MainResponse{

    dispatch_async(dispatch_get_main_queue(), ^{

    });
}
-(void)BsicEroor:(NSString *)ErrorString{

    dispatch_async(dispatch_get_main_queue(), ^{

    });
}
</code></pre>