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

Target Models R5 fails to link for watchOS #21

Open
fritzt0 opened this issue May 22, 2023 · 2 comments
Open

Target Models R5 fails to link for watchOS #21

fritzt0 opened this issue May 22, 2023 · 2 comments

Comments

@fritzt0
Copy link

fritzt0 commented May 22, 2023

Trying to build the project with Xcode 14.3 (or 14.3.1) as Swift PM module for a watchOS App fails on M1 Max & M2 Pro with the following error:

Ld ModelsR5.o normal armv7k (in target 'ModelsR5' from project 'FHIRModels')
ld: scattered reloc r_address too large for architecture armv7k

Currently, there is no way to control which architectures a module is build for in Xcode SPM, which makes it impossible to use the project for watchOS.

@fritzt0 fritzt0 changed the title Target Models R5 fails to link for arch armv7k on ARM Macs Target Models R5 fails to link for watchOS on ARM Macs May 24, 2023
@fritzt0
Copy link
Author

fritzt0 commented May 25, 2023

Small correction, it also fails to build for watchOS on Intel Macs.

@fritzt0 fritzt0 changed the title Target Models R5 fails to link for watchOS on ARM Macs Target Models R5 fails to link for watchOS May 25, 2023
@fritzt0
Copy link
Author

fritzt0 commented May 25, 2023

For anyone having this issue as well:

  1. set swift-tools-version:5.8
  2. set .watchOS(.v9)

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

No branches or pull requests

1 participant