-
Notifications
You must be signed in to change notification settings - Fork 0
Migrate to swift6 #25
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
Conversation
CI周りも修正する必要があるのか、、 |
f4afe9d
to
e030f97
Compare
DEVELOPER_DIR: '/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer' | ||
strategy: | ||
matrix: | ||
xcode: [ 15.4, 16.4 ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Swift-tools-version:6.0 is not supported in Xcode 15.4, so we are ending support for Xcode 15.4 in CI.
|
||
var changes: [UserDefaults.Change<String>] = [] | ||
let observer = wrapper.addObserver { changes.append($0) } | ||
addTeardownBlock(observer.invalidate) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it seems unnecessary to use addTeardownBlock, I removed it.
var observer: UserDefaults.Observation? = userDefaults.observeObject(forKey: "TestKey") { change in | ||
changes.append(change) | ||
} | ||
_ = observer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q. これは必要なコードですか
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linterエラー対策で追記しました
fea83a9
to
d4a0c33
Compare
マージします |
Swift6を有効化して出たエラー、警告を修正しました。