-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
FirebaseAnalyticsSwift-Beta: Failure to Build/Archive with Xcode #7785
Comments
I found a few problems with this issue:
|
Thanks for the report and sorry for the troubles! The workaround of copying the file manually sounds like a good approach for now while we figure out what's going on. I'm not sure why that's an issue though off the top of my head, as we're conditionally checking if
Thanks again, we'll try to reproduce and report back with progress. |
Haven't tested this yet but I think adding a firebase-ios-sdk/Package.swift Line 258 in 881518c
|
@ryanwilson Thanks for taking a look! Obviously the component is in beta and issues are a given, but I figured it is worth mentioning. Let me know if you're able to reproduce it. |
Thanks, I can definitely reproduce it but the fix isn't as simple as I had originally hoped. Even with adding it as an explicitly linked framework, I'm still seeing the issue. I temporarily removed the I'll keep digging, thanks again for the report! |
Hmm, I suspect this is the issue: firebase-ios-sdk/Package.swift Line 24 in 9f36662
If I change that to In the meantime, the workaround of adding the file to your app manually is a good approach. Re: warnings of duplicate build files, when this eventually works you can remove the |
Besides archiving this is also a problem for building FirebaseAnalyticsSwift-Beta for Any iOS Device. |
I had to revert to Firebase 7.10.0 from 7.11.0 as it would not build with the Xcode 12.5 RC build (SwiftPM integration). Tried to fully remove Firebase and then re-add it via SwiftPM and could only re-add 7.10.0, Xcode would throw up an error and refuse to add 7.11.0. I think this is pretty important as Xcode 12.5 will go live very shortly as iOS 14.5 goes live this week. |
TODO for solving the original issue: create a minimal repro to report to the Swift forums / Apple's Feedback system, or ideally find a solution based on the minimal repro. |
Hey Ryan, I think so. I will create a sample project and reproduce it there too :)! Thanks for looking into this.
…Sent from my iPhone
On 26 Apr 2021, at 14:29, Ryan Wilson ***@***.***> wrote:
@Panajev thanks for the additional report - looking into this now.
Was the error you're seeing similar to the screenshot below? If so, that's a different error but needs attention. I've filed #7962 to track this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I was able to create a small sample project that reproduces this issue (outside of Firebase). Observation: moving the minimum iOS version in |
I've created a repro at https://github.com/ryanwilson/Repro-SwiftPMMinVersionBuild and posted it to the Swift forums: https://forums.swift.org/t/error-building-for-device-while-supporting-older-ios-versions/47890. Next step is to bump the minimum supported iOS version to 11 as a workaround. |
This is to avoid an issue with newer APIs being unable to compile when building for device while this manifest targets iOS 10. See #7785 (comment) for more details on the issue and a reproduction. This should be re-evaluated if Xcode ever fixes the issue.
This is to avoid an issue with newer APIs being unable to compile when building for device while this manifest targets iOS 10. See #7785 (comment) for more details on the issue and a reproduction. This should be re-evaluated if Xcode ever fixes the issue.
Going to close this now that it's merged into Thanks for the report! |
Describe your environment
Swift Package Manager
FirebaseAnalyticsSwift-Beta
Describe the problem
Xcode Archive fails when using the
FirebaseAnalyticsSwift-Beta
component. Building and installing the app with the dependency works so far as expected, the trouble is with archiving.Note: the archive will succeed if you copy/add the source file (
Analytics+SwiftUI.swift
) to your local project, remove the troubled component (FirebaseAnalyticsSwift-Beta
), and then attempt an archive. Due to this, I am led to believe this is a configuration issue, not (another) issue with SwiftUI.Additionally, as noted by the Firebase SPM documentation, there is a preexisting issue (#6472) that also deals with analytics archive errors. Since the issue I'm detailing seems to be contained to the
FirebaseAnalyticsSwift-Beta
component, I do not currently have reason to believe the other is relevant.Steps to reproduce:
FirebaseAnalyticsSwift-Beta
andFirebaseAnalytics
Relevant Error Messages:
I'd like to note this additional warning. It does not (always) seem to impede the completion of a build, but does also popup along side the error above and seems contained to the
FirebaseAnalyticsSwift-Beta
component.The text was updated successfully, but these errors were encountered: