Skip to content
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

Downgrade platform requirement and link frameworks #1

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

hi2gage
Copy link

@hi2gage hi2gage commented Oct 18, 2024

⛔️Don't merge this yet. I don't know it actually solved my problem.⛔️

I'm having serious issues linking this package to another Swift Package which doesn't make sense to me.

Part 1 of implementing Implement Security Key Auth into xcodes CLI tool.

Reference: XcodesOrg/XcodesApp#617

Since the CLI tool is a swift package and not an Xcode project we need to Explicitly link these binary dependencies to your library. This allows the linker down stream to work correctly.

Let me know if you have any questions. Also if this is going to be a "true" dependency it would be great to get releases setup on GitHub so we don't reference commit hashes.

@hi2gage hi2gage force-pushed the reduce_platform_and_link_frameworks branch from 81fe5d4 to a495c67 Compare October 18, 2024 06:52
@@ -4,8 +4,7 @@
version = "1.8">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more of an annoyance thing. With this set to automatic the version = "1.8" will switch back and other across machines.

@@ -5,7 +5,7 @@ import PackageDescription

let package = Package(
name: "LibFido2Swift",
platforms: [.macOS(.v13)],
platforms: [.macOS(.v10_15)],
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keeping this at minimum possible value is usually best for adoption

@@ -18,7 +18,12 @@ let package = Package(
.target(
name: "LibFido2Swift",
dependencies: ["LibCrypto", "libfido2", "LibCbor"],
path: "LibFido2Swift"
path: "LibFido2Swift",
linkerSettings: [
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the explicit linking

@hi2gage hi2gage force-pushed the reduce_platform_and_link_frameworks branch from a495c67 to 79c1dd5 Compare October 18, 2024 07:40
@hi2gage hi2gage force-pushed the reduce_platform_and_link_frameworks branch from 79c1dd5 to ac05b0c Compare October 18, 2024 07:41
@hi2gage hi2gage force-pushed the reduce_platform_and_link_frameworks branch 6 times, most recently from ae8d7eb to 91327db Compare October 18, 2024 09:12
@kinoroy
Copy link
Owner

kinoroy commented Oct 18, 2024

Thanks for this! Good idea on the GitHub releases I can get that set up. And just lmk whenever this is ready to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants