Post

Replies

Boosts

Views

Activity

Reply to Getting error when integrating binary framework in SPM, Does not contain expected binary artifact
I'm assuming that the correctness of the url is not the issue and only to hide where the *.zip actually located. Package example from the Apple docs here seem to align with your approach but that url scheme above is a bit concerning. Is your framework an XCFramework binary? // swift-tools-version:5.3 import PackageDescription let package = Package( name: "MyLibrary", platforms: [ .macOS(.v10_14), .iOS(.v13), .tvOS(.v13) ], products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. .library( name: "MyLibrary", targets: ["MyLibrary", "SomeRemoteBinaryPackage", "SomeLocalBinaryPackage"]) ], dependencies: [ // Dependencies declare other packages that this package depends on. ], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages this package depends on. .target( name: "MyLibrary" ), .binaryTarget( name: "SomeRemoteBinaryPackage", url: "https://url/to/some/remote/xcframework.zip", checksum: "The checksum of the ZIP archive that contains the XCFramework." ), .binaryTarget( name: "SomeLocalBinaryPackage", path: "path/to/some.xcframework" ) .testTarget( name: "MyLibraryTests", dependencies: ["MyLibrary"]), ] )
Topic: Graphics & Games SubTopic: General Tags:
Mar ’22
Reply to İpad 7 syscfg help
Welcome to the Apple Developer Forums: Post your questions, exchange knowledge, and connect with fellow developers and Apple engineers on a variety of software development topics. For questions about using Apple hardware and services, visit Apple Support Communities
Topic: App & System Services SubTopic: Hardware Tags:
Mar ’22
Reply to SwiftUI retain cycle with .searchable
If you do this then there is no need to create a new object model on each push. It is created once and destroyed once on app exit: @main struct MyApp: App {     @StateObject var model = Retainer()     var body: some Scene {         WindowGroup {             ContentView()                 .environmentObject(model)         }     } } struct RetainCycleView: View {     @EnvironmentObject var model: Retainer     var body: some View {         VStack(alignment: .leading, spacing: 4) {             Text("Navigate back to the previous view.")             Text("You will see that 'Retainer' was NOT deallocated.")             Text("(it's deinit function prints deallocing Retainer)")                 .font(.callout)         }         .padding()         .searchable(text: $model.enteredText)         .onChange(of: model.enteredText) { newValue in             print("Searching for: ", newValue)         }     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’22
Reply to iphone 11 pro max nfc problem
Maybe @Apple needs to post a disclaimer to non-developers that this is not the place to ask consumer related questions hence the reason also for so much spam where any non-developer can just sign up and post unrelated questions. Please go the to Apple community forums here for all non-developer related questions.
Topic: App & System Services SubTopic: Hardware Tags:
Mar ’22