Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Removed characters from Mock.swifttemplate since it's obsolete in Swift 5.0#356

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
davidetamiazzo wants to merge1 commit intoMakeAWishFoundation:master
base:master
Choose a base branch
Loading
fromdavidetamiazzo:remove-characters-from-mock-template

Conversation

@davidetamiazzo
Copy link

To fix the compilation issues that arise from using the fileMock.swifttemplate in Swift 5.0, I have proceeded with removing the property.characters from the file.

With this property, we get the following kind of errors:

/private/var/folders/21/8dtt1gkn5175rwk038fjbv300000gp/T/SwiftTemplate/2.1.3/Sources/SwiftTemplate/main.swift:1192:21: error: 'characters' is unavailable: Please use String directly        return part.characters.split(separator: ":").map(String.init).first!                    ^~~~~~~~~~Swift.String:5:16: note: 'characters' was obsoleted in Swift 5.0    public var characters: String { get set }               ^error: fatalError

String doesn't have the propertycharacters anymore:https://developer.apple.com/documentation/swift/string/1540072-characters

@markst
Copy link

Is this a dupe of#352 ?

@bukira
Copy link

can this be merged?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@davidetamiazzo@markst@bukira@DavideTamiazzoQonto

[8]ページ先頭

©2009-2025 Movatter.jp