-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Armv7 related crash on build using SPM #7235
Comments
|
From googling the error, it looks like a long-standing Xcode issue related to the size of the app. As to why, Xcode is building armv7 when the deployment target is iOS 13, that seems like an Xcode/SPM bug. There's no reason to build and link dependencies arm7 if the app has something higher, even if the dependencies support iOS 10. Perhaps worth asking at https://forums.swift.org/c/development/SwiftPM/ ? I'll leave this open for discussion for awhile, but this is unlikely to be a Firebase issue. |
|
Interesting, I'll definitely post there and hope to get a better result. I'm hoping it's not some weird size bug, as my app is only 10K LOC |
|
here's an update, if I connect my device, select that as a run destination, then hit archive, then it succeeds. |
|
We'll likely need a reproducible example to provide additional assistance here. |
|
Hey @Umar-M-Haroon. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
|
Since there haven't been any recent updates here, I am going to close this issue. @Umar-M-Haroon if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
Step 0: Are you in the right place?
file a Github issue.
with the
firebasetag.google group.
of the above categories, reach out to
Firebase Support.
this repository, please delete this section.
[REQUIRED] Step 1: Describe your environment
Swift Package Manager(select one)[REQUIRED] Step 2: Describe the problem
Steps to reproduce:
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.
Relevant Code:
Hi! Sorry for the vagueness here, I'm trying to look towards a more reproducible method.
In short, I was working on archiving my app, which uses SPM and has Firestore, Dynamic Links, Messaging, Auth, and Storage onto a framework target. The main app uses the framework and usually runs fine. As I compiled for MacCatalyst, I had no issues, but when I compiled for any iOS device, I got the error
scattered reloc r_address too large for architecture armv7I've tried setting armv7 as an excluded arch everywhere, but no avail. I'm wondering why it's even compiling for armv7 though. My deployment target is iOS 13.0+ so shouldn't it only need arm64? I found an old tweet regarding a similar bug, but for i386 that recommended a refactor due to the project being too large, but their project was about 100x bigger than mine.
The text was updated successfully, but these errors were encountered: