According to my research this is a very rare problem?!
[SearchAttribution] No matching attribution source found for org.volunteermatch ... (+4 other domains)
Error loading attribution info for identifier org.volunteermatch from geod: Error Domain=GEOErrorDomain Code=-8 "No matching attribution source found for org.volunteermatch" UserInfo={NSDebugDescription=No matching attribution source found for org.volunteermatch} ... (+4 other domains)
Code Block var searchCompleter = MKLocalSearchCompleter() var searchResults = [MKLocalSearchCompletion]()
This code is running everytime the search term is changed:
Code Block searchCompleter.queryFragment = text searchCompleter.resultTypes = .address searchCompleter.region = region
In tableView … didSelectRowAt… this code is executed:
Code Block let selectedItem = searchResults[indexPath.row] let searchRequest = MKLocalSearch.Request() searchRequest.naturalLanguageQuery = selectedItem.title searchRequest.resultTypes = .address let search = MKLocalSearch(request: searchRequest) search.start { (response, error) in guard let coordinate = response?.mapItems[0].placemark.coordinate else { return } // send to mainVC self.delegate?.userSelectedPlace(coordinate: coordinate) }