小编Qaz*_*mar的帖子

请检查您的项目设置并确保已构建有效的产品。Xcode 14

我刚刚将 Xcode 13 更新到 14 版本。更新后,我尝试在手机上构建并运行应用程序,但 Xocde 给出了此错误。任何解决这个问题的方法。我在 Apple M1 Pro 机器上使用 Mac 操作系统版本 12.6。对于模拟器,在显示消息构建成功后,Xcode 一直等待附件。

在此输入图像描述

这是详细日志。

细节

Unable to install "HTPlanner"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653081
Recovery Suggestion: Please check your project settings and ensure that a valid product has been built.
User Info: {
    DVTErrorCreationDateKey = "2022-10-03 05:50:48 +0000";
    IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
}
--
There was an internal API error.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653081
User Info: {
    DVTRadarComponentKey = 261622;
    MobileDeviceErrorCode = "(0xE8000067)";
    "com.apple.dtdevicekit.stacktrace" = (
    0   DTDeviceKitBase                     0x00000001147e02bc …
Run Code Online (Sandbox Code Playgroud)

xcode ios swift swiftui

23
推荐指数
2
解决办法
1万
查看次数

debugserver 是在转换中运行的 x86_64 二进制文件,附加失败。无法附加到 pid :

我刚刚将 Xcode 项目从 Intel Mac 转移到 Apple M1 芯片。该代码在 M1 芯片上成功编译,但当我尝试在模拟器上运行它时,它显示以下错误。

debugserver is x86_64 binary running in translation, attached failed.
Run Code Online (Sandbox Code Playgroud)

Xcode 模拟器错误

我已经检查了Xcode 的“使用 Rosettea 打开”选项,但它仍然没有运行 M1 机器

xcode arm ios swift

18
推荐指数
4
解决办法
2万
查看次数

Change the color of a focused element (Picker) SwiftUI - WatchOS

How can I change the focus color of a selected element in WatchOS7 with swiftUI. Here's my example below with a Picker whose focus color is green (the default one) but I want to change it to blue to be consistant with my app layout.

在此输入图像描述

I search over the internet and stackoverflow but did not find andy solution to this. Is it possible to do it in SwiftUI.

xcode uipickerview swift swift3 swiftui

8
推荐指数
1
解决办法
929
查看次数

Xcode Simulator 14.0 未删除/删除应用程序

我最近更新了 14.0 版本的 Xcode 和模拟器。我面临一个奇怪的问题,应用程序没有从模拟器中删除。在此更新之前它工作完美,但更新后它显示了此行为。看看下面,我尝试过删除应用程序编辑主屏幕选项。他们两个都不适合我。我还尝试从应用程序库中删除应用程序,但也不起作用。

在此输入图像描述

xcode ios-simulator

8
推荐指数
2
解决办法
1564
查看次数

Swift coreml:检查模型路径时无法获取主目录

我正在使用此代码从图像中提取文本,代码第一次运行完美,之后它开始给出此错误消息[coreml] Failed to get the home directory when checking model path。这是我用来提取文本形式图像的代码。这与我从苹果文档中复制的代码相同

func requestORC(image: UIImage) {
        
        //        guard let cgImage = UIImage(named: "test")?.cgImage else { return }
        guard let cgImage = image.cgImage else { return }
        
        //        / Create a new image-request handler.
        let requestHandler = VNImageRequestHandler(cgImage: cgImage)
        
        // Create a new request to recognize text.
        let request = VNRecognizeTextRequest(completionHandler: recognizeTextHandler)
        
        do {
            // Perform the text-recognition request.
            try requestHandler.perform([request])
        } catch {
            print("Unable to perform the …
Run Code Online (Sandbox Code Playgroud)

xcode swift coreml swiftui

6
推荐指数
0
解决办法
894
查看次数

Code=9“无法创建推理上下文”CoreML iOS

我是 CoreMl 的新手,并遵循使用视觉和 Core ML 对图像进行分类的说明。我在使用模型(MobileNetV2)时遇到了问题,给出了上一个链接中的代码,我没有遇到任何问题。当我尝试使用我使用 CoreML 创建的自己的模型时,我遇到了问题,并且在使用 iPhone 模拟器时本地化描述为“无法创建推理上下文”。

- some : Error Domain=com.apple.vis Code=9 "Could not create inference context" UserInfo={NSLocalizedDescription=Could not create inference context}
Run Code Online (Sandbox Code Playgroud)

ios swift coreml

3
推荐指数
1
解决办法
701
查看次数

此处无法出现属性列表 firebase-ios-sdk,Xcode 15.0 错误

我已将 Xcode 更新到 15.0,现在开始出现此错误。

    ABSL_CONST_INIT extern "C" const int64_t kFIRFirestoreCacheSizeUnlimited =
            Settings::CacheSizeUnlimited;
   // An attribute list cannot appear here
Run Code Online (Sandbox Code Playgroud)

我已经经历了github 上的XCode 15.0 Release - firebase-ios-sdk bug: An attribute list不能出现在此处的问题,但它不提供对 swiftPackage manger 的支持。

Xcode 15.0 错误

xcode ios firebase

3
推荐指数
1
解决办法
5373
查看次数

标签 统计

xcode ×6

swift ×5

ios ×4

swiftui ×3

coreml ×2

arm ×1

firebase ×1

ios-simulator ×1

swift3 ×1

uipickerview ×1