Issue instantiating CLPlacemark

Xcode Version: 10.0 beta 6 (10L232m)


I'm getting an error instantiating a CLPlacemark with this constructor: https://developer.apple.com/documentation/corelocation/clplacemark/2132103-init


The error message is the following:

`Type of expression is ambiguous without more context`


This was working fine using the beta 5 build of Xcode. I notice the headers no longer include this constructor, but the documentation does not indicate it was deprecated or removed.


Any ideas?

Replies

Update: Looks like the constructor is included in the Intents framework (which is imported in the Swift file).

Hey there,

I just hit the same problem.

Can you tell me how to fix it? I've imported CoreLocation as well as Intents but still see the error


Cheers,

Georg

Just add

import Contacts

Initializer can not resolve address parameter type CNPostalAddress and gives this silly error message.