- Home /
iOS location permission plugin build fails
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'.
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?
screen-shot-2018-11-26-at-130756.png
(32.6 kB)
Comment
Your answer
Follow this Question
Related Questions
Using NavigationController in an iOS plugin 1 Answer
Call Unity class in XCode 1 Answer
Open Web page embedded in unity app using native UIVIEW 0 Answers
xCode to Unity communication? 1 Answer