Xcode 15 beta 不附带 iOS 17 的设备支持文件。我们可以通过任何其他方式在 Xcode 14 上运行 iOS 17 设备
我正在使用 Xcode 15 Beta 开发一个应用程序 + 小部件。该小部件在 iOS 17 Beta 模拟器上按预期工作,但在我的 iOS 17 Beta 设备上运行时,它显示“请采用 containerBackground API”而不是所需的内容。
我四处搜索,只能找到containerBackgroundLocationButton ,但我根本没有使用 Core Location 。有人能指出为什么这里提到它吗?
我正在将 xcode 升级到 15,将 ios 升级到 17 版本。但是当我尝试在 iphone 15 pro max 中构建我的 flutter 项目时,出现此错误
\nError (Xcode): Cycle inside Runner; building could produce unreliable results.\nCycle details:\n\xe2\x86\x92 Target 'Runner': CodeSign /Users/umsi06/Documents/project/devV17Ke18/build/ios/Debug-iphonesimulator/Runner.app\n\xe2\x97\x8b That command depends on command in Target 'Runner': script phase \xe2\x80\x9c[CP] Embed Pods Frameworks\xe2\x80\x9d\n\xe2\x97\x8b That command depends on command in Target 'Runner': script phase \xe2\x80\x9cThin Binary\xe2\x80\x9d\n\xe2\x97\x8b Target 'Runner' has process command with output '/Users/umsi06/Documents/project/devV17Ke18/build/ios/Debug-iphonesimulator/Runner.app/Info.plist'\n\xe2\x97\x8b Target 'Runner' has copy command from '/Users/umsi06/Documents/project/devV17Ke18/build/ios/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex' to '/Users/umsi06/Documents/project/devV17Ke18/build/ios/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex'\n\xe2\x97\x8b That command depends on command in …无法在最新的 Xcode 15 稳定版、iOS 17 稳定版上构建
相关 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1735
flutter run 
Could not build the precompiled application for the device.
Error (Xcode): type argument 'nw_proxy_config_t' (aka 'struct nw_proxy_config *') is neither an Objective-C object nor a block type
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h:119:46
Parse Issue (Xcode): Could not build module 'WebKit'
/build/ios/Debug-iphoneos/flutter_inappwebview/flutter_inappwebview.framework/Headers/flutter_inappwebview-Swift.h:285:8
Error launching application on iPhone 
我最近更新到 Xcode 15 Beta 7,在我的设备(iOS 17 beta 7)上运行应用程序时遇到此错误。它表示现有磁盘映像传输已在进行中。
等待重新连接到我的 iPhone 13 Pro
先前的准备错误:无法在此设备上安装开发人员磁盘映像。安装映像时出错:0xe8000124(kAMDMobileImageMounterExistingTransferInProgress:现有磁盘映像传输已在进行中。)
模拟器:带有 IOS 17 的 iPhone 15 Xcode:版本 15.0 (15A240d)
刚刚创建的项目的简单示例:
import SwiftUI
struct ContentView: View {
    @State private var searchText = ""
      var body: some View {
          NavigationStack {
              Text("Searching for \(searchText)")
                  .navigationTitle("Searchable Example")
          }
          .searchable(text: $searchText)
      }
}
#Preview {
    ContentView()
}
当开始点击任何文本时抛出:
错误:此应用程序或其使用的库已将无效的数值(NaN 或非数字)传递给 CoreGraphics API,并且该值将被忽略。请解决这个问题。
单击并取消启动后,每次单击都会显示以下错误:
-[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] 执行输入操作需要有效的sessionID
有人知道如何修复吗?
我在苹果论坛https://developer.apple.com/forums/thread/731700上找到了一个帖子,但一如既往地没有来自开发人员的单一答案。
完成 SwiftData 的测试版并尝试建立PersistentContainer. 我在我的上设置了一个modelContainer视图修改器ContentView,并使我的类符合@Model各种 WWDC 视频(已发布的视频)中所述的要求。
这是我要存储的基础对象,其中所有变量都符合Codable:
Board.swift
import SwiftData
@Model
class Board {
    var size: Int = 3
    var cellSize: CGFloat = 44
    var numberOfTeamMembers: Int = 3
    var numberOfEnemies: Int = 3
    var spaces: [[Space]] = []
    var selectedSpace: Space? = nil
    var characters: [Space: Character] = [:]
    var selectedCharacter: Character? = nil
    var attackableSpaces: [Space] = []
    var movableSpaces: [Space] = []
    var teams: [Team] = [] …我的 Angular 应用程序在 iPhone 上作为 PWA 正常工作,但在上次 ios17 更新后,该应用程序崩溃了,即使我在 Safari 上清除现金,它也可能会再次工作几分钟,然后当我关闭时,该网站的 PWA 快捷方式将停止工作苹果浏览器。有时,当我测试应用程序时,我会收到此错误
fetchevent.respondwith 收到错误类型错误:内部错误
我将 Xcode 更新到 15.0 并运行应用程序。当在 iOS 17 上运行应用程序时,我的应用程序崩溃并出现以下错误:
\n\n\n-[UINavigationBar layoutSubviews] 中的断言失败,UINavigationBar.m:3\xc2\xa0849 'NSInternalInconsistencyException',原因:'请求可见导航栏的布局
\n
它仅发生在带有 Xcode 15.0 的 iOS 17 上。对于 Xcode 14.3 和 iOS 17 - 没有。对于 Xcode 15 和 iOS 16.4 - 没有。
\n\n*** 由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:“请求可见导航栏的布局,<UINavigationBar:0x15bd34ee0;帧=(0 47;428 44);自动调整大小=W;色调颜色 = UIExtendedGrayColorSpace 0 1; Layer = <CALayer: 0x2813b9f40>> delegate=0x15c049e00 standardAppearance=0x2837b03c0 rollEdgeAppearance=0x2837b02a0 compactAppearance=0x2837b0540 compactScrollEdgeAppearance=0x2837b0240,当顶部项目属于不同的导航栏时。topItem = <UINavigationItem: 0x15bf26070> titleView=0x160f04840 style=navigator backBarButtonItem=0x15bf5f4d0 rightBarButtonItems=0x281c93f90,导航栏 = <UINavigationBar: 0x15bd05d60; 帧=(0 47;428 44);自动调整大小=W;色调颜色 = UIExtendedGrayColorSpace 0 1; 层 = <CALayer: 0x2813be380>> delegate=0x15c056800 standardAppearance=0x2837fd5c0 rollEdgeAppearance=0x2837fd7a0 …
如何创建一个AppIntent将在您的应用程序进程中运行并在您的小部件中使用它的程序Button?我创建了一个新文件,将其添加到我的应用程序的目标中,创建了我的 AppIntent 结构,然后向我的小部件添加了一个按钮:Button(intent: TestIntent()) { Text("Test") }。这会导致编译时错误Cannot find \'TestIntent\' in scope,这是有道理的,因为我尝试使用它的小部件扩展中不存在此代码。但是向小部件添加交互性的文档指出:
\n\n对于小部件,创建一个采用 AppIntent 协议的新结构并将其添加到您的应用程序目标中...在协议\xe2\x80\x99s 所需的 Perform() 函数中,添加您想要提供给应用程序的操作的代码小部件。
\n
和
\n\n\n如果您采用 AppIntent 协议,您可以将自定义应用程序意图添加到小部件扩展目标或应用程序目标。将其添加到应用程序目标是更好的选择,因为您可以在应用程序中重复使用添加到小部件的按钮或切换按钮。
\n
和
\n\n\n当用户与小部件中的按钮或切换开关交互时,系统会在您的 app\xe2\x80\x99s 进程中运行 Perform() 函数。
\n