You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @JanGorman, I think there is another solution. I think the problem is that the DocC bundle is being included in the package (there's even a warning in the logs about it), that causes a resource_bundle_accessor.swift file to be injected into the compilation with an import class Foundation.Bundle, and then that conflicts with our package import Foundation.
Can you point to the branch resource-docc-fix and see if it fixes it for you? There's a chance we may want both your fix and my fix, but first I would like to confirm that resource-docc-fix does fix it.
Thanks @mbrandonw! I tested that branch on CI just now. Unfortunately it fails with same ambiguous implicit access level for import of 'Foundation'; it is imported as 'package' elsewhere error as before 😕
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This changes the
package import FoundationinDeprecations.swiftto apackage import Foundation.NSData.This solves the issue mentioned here #229 where the release build of our application was failing with errors like this one.