[ad_1]
Im constructing an XCFramework for distribution. The entire courses and properties i need uncovered and accessible are marked open or public. I’ve a number of courses and information on this framework, however when i open and look at the .swiftinterface file i solely see reference to a single class, and thus when i import this framework in my mission the non referenced properties are unavailable.
The generated .swiftinterface appears to be like like
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift model 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
// swift-module-flags: -target arm64-apple-ios14.5-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name MyFramework
// swift-module-flags-ignorable: -no-verify-emitted-module-interface
import Basis
@_exported import MyFramework
import Swift
import _Concurrency
import _StringProcessing
import _SwiftConcurrencyShims
open class MyFrameworkClass : Swift.Decodable {
open var url: Swift.String?
open var parameters: MyFrameworkProperty.Parameters?
public init(url: Swift.String? = nil, parameters: MyFrameworkProperty.Parameters? = nil)
@objc deinit
required public init(from decoder: any Swift.Decoder) throws
}
open class Parameters : Swift.Decodable {
open var PropertyA: Swift.String?
open var PropertyB: Swift.String?
open var PropertyC: Swift.String?
public init(PropertyA: Swift.String? = nil, PropertyB: Swift.String? = nil, PropertyC: Swift.String? = nil)
@objc deinit
required public init(from decoder: any Swift.Decoder) throws
}
public enum PropertyC : Swift.String, Swift.CaseIterable {
case a
case b
case c
public init?(rawValue: Swift.String)
public typealias AllCases = [MyFramework.PropertyC]
public typealias RawValue = Swift.String
nonisolated public static var allCases: [MyFramework.PropertyC] {
get
}
public var rawValue: Swift.String {
get
}
}
extension MyFramework.PropertyC : Swift.Equatable {}
extension MyFramework.PropertyC : Swift.Hashable {}
extension MyFramework.PropertyC : Swift.RawRepresentable {}
What’s required to have all my public/open properties accessible to the mission that imports the xcframework?
[ad_2]
Leave a Reply