[Solution] Error Domain = kCLErrorDomain Code = 0 & quot; The operation couldn't be completed., operationcode

Source: Internet
Author: User

[Solution] Error Domain = kCLErrorDomain Code = 0 "The operation couldn't be completed., operationcode


Environment: XCODE6.0.1 + iPhone/iOS8


Error: Use CoreLocation to obtain geographic location information. An error is returned.

Error Domain = kCLErrorDomain Code = 0 "The operation couldn't be completed. (kCLErrorDomain error 0 .)"


Solution:

1. confirm that the simulator (mobile phone) is connected to the Internet and allow the program to obtain the geographic location

2. Reset the location service or NETWORK SERVICE


PS: if it is a Simulator, You can Reset it directly. IOS Simulator-Reset Content and Settings...


When iOS AVAudioPlayer is playing audio, it has downloaded the audio locally. How can I see the following error?

You can try my code. This code can work.
NSData * audioData = [NSData dataWithContentsOfURL: someURL];
NSString * docDirPath = [NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex: 0];
NSString * filePath = [NSString stringWithFormat: @ "% @/%@.mp3", docDirPath, fileName];
[AudioData writeToFile: filePath atomically: YES];

NSError * error;
NSURL * fileURL = [NSURL fileURLWithPath: filePath];
Player = [[AVAudioPlayer alloc] initWithContentsOfURL: fileURL error: & error];
If (player = nil ){
NSLog (@ "AudioPlayer did not load properly: % @", [error description]);
} Else {
[Player play];
}

An error occurred while installing the black apple donghuang v32 (v22 was successfully installed). The installation log is as follows:

There are a lot of log problems. We recommend that you check the md5 of the installed image. It is likely that the file is damaged. In addition, if it is a version later than 8.4, do not delete the original driver directly, info in kext to be retained. plist File

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.