Unknown type

Using Fire, I have something that compiled just fine before, using CLLocationCoordinate2D. Now, it’s asking if I meant _LocationEssentials.CLLocationCoordinate2D. If I change some parts to that, it works, but not for a class property.

For example:

namespace App17;

uses
CoreLocation;

type
demoClass = public class
public
// Stores the current geographic coordinate (lat/long) for use with MapKit, etc.
property currentLocation: CLLocationCoordinate2D;
protected
private
end;

end.

This gives unknown type. It also does if I change it to



property currentLocation: _LocationEssentials.CLLocationCoordinate2D;

Codebot tells me this:

_LocationEssentials.CLLocationCoordinate2D. That internal helper namespace isn’t available for you to reference directly on Toffee.

Ah yes, i ran into the same. You need to add a reference to e.g. .../SDKs/Island/Darwin/iOS 26.2/_LocationEssentials.fx, and also use the _LocationEssentials namespace.

Apple, in its infinite wisdom, moved this type into a private-ish sub-framework…

Thanks, can you give me more info on the location of that? I couldn’t add it from the one in Fire’s package and couldn’t find it elsewhere!

It should be in the SDK folder, next to the standard ones like CoreLocation.fx. For some (good, I think) reason, the Add References sheet hides frameworks starting with _, so you need to add it manually via drag (I’ll revisit that). I suggest doing “Drop Hint Path”, after you do that, for future-proofing.

Found the file, and could then drag it in, and that (with the drop hint path) was sufficient. Didn’t need to change the namespace.

Thanks marc.

1 Like

Curious.