简体   繁体   中英

“PBRequester failed with Error Error Domain=NSURLErrorDomain Code=-1000 ”bad URL"

I have tested mapview with reverse geocoding location in iOS 7 devices and i get the following error:

PBRequester failed with Error Error Domain=NSURLErrorDomain Code=-1000 "bad URL"

but on an iOS 8 device it's working fine. What can I do to solve this?

I was able resolve this error by updating the scheme options to Allow Location Services and set a default location.

In Xcode, go to Product>Scheme>Edit Scheme. Under Run>Options, make sure the "Allow Location Simulation" is checked, then set a default Location.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM