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

Task: Xcode 12 issue - libpact_mock_server.a missing arm64 architecture #27

Closed
surpher opened this issue Sep 2, 2020 · 3 comments
Closed
Assignees
Labels
draft Needs more analysis, discussion, smarty farty enhancement New feature or request

Comments

@surpher
Copy link
Owner

surpher commented Sep 2, 2020

❕ Problem Statement

Xcode 12 is about to be released and compiler is building for the upcoming arm64 architecture. When having command line tools set to Xcode 12 and running carthage build [--no-skip-current], the build fails with:

error: The linked library 'libpact_mock_server.a' is missing one or more architectures required by this target: arm64. (in target 'PactSwift_macOS' from project 'PactSwift')

💬 Task Description

Build new libpact_mock_server.a static libs that include arm64 architecture.
DTK poking it’s head up when building with Xcode 12 due to new arm64 architecture missing in libpact_mock_server.a.

👩‍🔧 Technical Design Notes

Carthage v0.35.0
Xcode 12 beta 6,
Xcode 12 Command line tools

🤝 Relationships

@surpher surpher added enhancement New feature or request draft Needs more analysis, discussion, smarty farty labels Sep 2, 2020
@surpher surpher added this to To do in Beta release - consumer via automation Sep 2, 2020
@surpher surpher self-assigned this Sep 2, 2020
@surpher surpher moved this from To do to In progress in Beta release - consumer Sep 2, 2020
@surpher surpher changed the title Task: Support Xcode 12 command line tools with Carthage Task: libpact_mock_server.a missing arm64 architecture Sep 2, 2020
@surpher surpher changed the title Task: libpact_mock_server.a missing arm64 architecture Task: Xcode 12 issue - libpact_mock_server.a missing arm64 architecture Sep 2, 2020
@rastersize
Copy link

rastersize commented Sep 2, 2020

This is likely going to be difficult to solve until Carthage adds XCFrameworks support. See Carthage/Carthage#3019 for more details.

@surpher
Copy link
Owner Author

surpher commented Sep 2, 2020

Correct. If anyone notices it being sorted out, a PR is welcome. I will commit a script/documentation that will run cargo build commands and replace the existing binaries.

On top of that, having these binaries wrapped in a XCFramework might be a better idea altogether.

@surpher surpher removed their assignment Sep 3, 2020
@surpher surpher moved this from In progress to To do in Beta release - consumer Sep 3, 2020
@surpher surpher self-assigned this Sep 15, 2020
@surpher surpher moved this from To do to In progress in Beta release - consumer Oct 25, 2020
@surpher
Copy link
Owner Author

surpher commented Oct 25, 2020

Got fed up with waiting for Carthage and used @rastersize provided bash script to test with Xcode 12.2.
Script added to PactSwift with commit 473f298.

@surpher surpher closed this as completed Oct 25, 2020
Beta release - consumer automation moved this from In progress to Done Oct 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
draft Needs more analysis, discussion, smarty farty enhancement New feature or request
Projects
No open projects
Development

No branches or pull requests

2 participants