修复 Xcode 16 Beta 编译错误:MainActor 隔离、.allCharacters、项目兼容版本
这个提交包含在:
@@ -123,11 +123,11 @@
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
BuildIndependentTargetsInParallel = 1;
|
||||
LastSwiftUpdateCheck = 1500;
|
||||
LastUpgradeCheck = 1500;
|
||||
LastSwiftUpdateCheck = 1600;
|
||||
LastUpgradeCheck = 1600;
|
||||
};
|
||||
buildConfigurationList = 777777777777777702;
|
||||
compatibilityVersion = "Xcode 14.0";
|
||||
compatibilityVersion = "Xcode 16.0";
|
||||
developmentRegion = "zh-Hans";
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = ("zh-Hans", en, Base);
|
||||
|
||||
@@ -3,6 +3,7 @@ import UserNotifications
|
||||
/// 睡前 30 分钟提醒调度器(iOS 使用 UNUserNotificationCenter)
|
||||
enum BedtimeReminder {
|
||||
|
||||
@MainActor
|
||||
static func schedule(store: Store) {
|
||||
guard store.agreed, store.bedtimeReminderEnabled else {
|
||||
cancel()
|
||||
|
||||
@@ -12,7 +12,7 @@ struct FriendControlView: View {
|
||||
Section {
|
||||
HStack {
|
||||
TextField("输入朋友的控制码", text: $friendCode)
|
||||
.textInputAutocapitalization(.characters)
|
||||
.textInputAutocapitalization(.allCharacters)
|
||||
.disableAutocorrection(true)
|
||||
Button("查询") { lookupFriend() }
|
||||
.buttonStyle(.borderedProminent)
|
||||
|
||||
在新工单中引用
屏蔽一个用户