Skip to content

Can't expose native type (CBManagerState). #27

@maksimpetrovskycorewill

Description

While having public code with some types from native frameworks other than foundation , I'm getting an error:

/iosArm64/swiftBuild/.build/arm64-apple-macosx/release/BleCommunication.build/BleCommunication-Swift.h:366:33: error: unknown type name 'CBManagerState'

The code which I have is very simple

import CoreBluetooth

public static var state: CBManagerState { .unknown }

Currently I've wrapped my enum, but it's not a best trick.
Can we specify headers or other options?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions