Im constructing an XCFramework for distribution. The entire lessons and properties i need uncovered and accessible are marked open or public. I’ve a number of lessons and recordsdata on this framework, however when i open and consider the .swiftinterface file i solely see reference to a single class, and thus when i import this framework in my undertaking the non referenced properties are unavailable.
The generated .swiftinterface seems to be 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 {}
i compiled these utilizing the next instructions
xcodebuild archive -workspace MyFramework.xcworkspace
-scheme MyFramework
-configuration Launch
-destination 'generic/platform=iOS Simulator'
-archivePath './construct/MyFramework.framework-iphonesimulator.xcarchive'
SKIP_INSTALL=NO
BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
xcodebuild archive -workspace MyFramework.xcworkspace
-scheme MyFramework
-configuration Launch
-destination 'generic/platform=iOS'
-archivePath './construct/MyFramework.framework-iphoneos.xcarchive'
SKIP_INSTALL=NO
BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
xcodebuild -create-xcframework
-framework './construct/MyFramework.framework-iphonesimulator.xcarchive/Merchandise/Library/Frameworks/MyFramework.framework'
-framework './construct/MyFramework.framework-iphoneos.xcarchive/Merchandise/Library/Frameworks/MyFramework.framework'
-output './construct/MyFramework.xcframework'
MyFramework.h file from my framework earlier than compilation seems to be like
#import
FOUNDATION_EXPORT double MyFrameworkVersionNumber;
FOUNDATION_EXPORT const unsigned char MyFrameworkVersionString[];
What’s required to have all my public/open properties out there to the undertaking that imports the xcframework?