-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SwiftPM archiving hotfix #185
SwiftPM archiving hotfix #185
Conversation
…included, add MavsdkServer library for mavsdk_server.xcframework binaryTarget import to fix archiving issue, update Package.swift usages and naming
@@ -21,7 +25,7 @@ let package = Package( | |||
.package(url: "https://github.com/ReactiveX/RxSwift.git", from: "5.0.0"), | |||
], | |||
targets: [ | |||
.target(name: "MAVSDK-Swift", | |||
.target(name: "Mavsdk", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this target now depend on mavsdk_server
? Could it be the reason why the build fails in CI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just added it to try it but there may be an issue with binary targets as dependencies in other targets. We may have to create a separate Swift Package just for the binary dependency in another GitHub repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once a release is tagged on MAVSDK-XCFramework for v0.37.0 this should be ready to merge. It should be tested with the MAVSDK-Swift-Example by adding my fork as a Swift Package dependency referencing branch swiftpm-archiving-hotfix.
…ver as a dependency for Mavsdk library in Package.swift
@JonasVautherin The scripts to generate the protos and docs are failing, can you take a look? |
…e, use private @_implementationOnly import mavsdk_server in MavsdkServer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested to work (could archive) with the MAVSDK-Swift-Example!
Thanks a lot! 🚀
Hotfix in response to an issue with archiving projects using the MAVSDK-Swift SwiftPM dependency remotely. This fix has only been tested with a local SwiftPM import; I will need to test a remote import from this fork.
MAVSDK_Swift
import toMavsdk
and include MavsdkServer.swift.MavsdkServer
import for themavsdk_server
binary target import to fix archiving issues. NOTE Currently, a Libary in Package.swift can support multiple.target
or one.binaryTarget
.