Quantcast
Channel: Questions in topic: "xcode"
Viewing all articles
Browse latest Browse all 1047

iOS location permission plugin build fails

$
0
0
I have a plugin to check if the app has permission to use the location, and to ask for permission. When I run the code in a simple Xcode project, it builds and works. This is the swift file: import CoreLocation @objc class PermissionsPlugin: NSObject, CLLocationManagerDelegate { // ... } Building the generated Xcode project fails in the Obj-c generated interface header file "PermissionsBridge-Swift.h", **No type or protocol named 'CLLocationManagerDelegate'**. ![No type or protocol named 'CLLocationManagerDelegate'][1] ---------- How do I fix this? My searches haven't found any solutions. I'm now considering rewriting the plugin without any swift code, should that help? [1]: /storage/temp/128358-screen-shot-2018-11-26-at-130756.png

Viewing all articles
Browse latest Browse all 1047

Trending Articles