无法访问一个或多个请求的文件系统资源,因为 CoreDevice 无法创建书签数据

问题描述 投票:0回答:1

我正在尝试运行我的手表应用程序,每当我单击“运行”时,它都会出现此错误 每当我尝试在模拟器中运行时,都不存在此错误 仅当我在物理设备中运行此应用程序时,它才会出现此错误 我已经尝试了从重新启动所有内容开始的所有操作删除缓存甚至删除构建文件夹等等,请帮助我

Could not obtain access to one or more requested file system resources because CoreDevice was unable to create bookmark data.
Domain: com.apple.dt.CoreDeviceError
Code: 1005
User Info: {
    DVTErrorCreationDateKey = "2023-11-02 07:41:25 +0000";
    IDERunOperationFailingWorker = IDECoreDeviceSideInstallAppWorker;
    NSURL = "file:///Users/abid/Library/Developer/Xcode/DerivedData/Halcyon-coojvzkgmktyzsainzuhkwpehwct/Build/Products/Debug/Halcyon.app";
}
--
The file couldn’t be opened because it doesn’t exist.
Domain: NSCocoaErrorDomain
Code: 260
Failure Reason: The file doesn’t exist.
--

Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_isCoreDevice" = 1;
    "device_model" = "Watch5,9";
    "device_osBuild" = "10.2 (21S5331f)";
    "device_platform" = "com.apple.platform.watchos";
    "dvt_coredevice_version" = "355.7";
    "dvt_mobiledevice_version" = "1643.40.14";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = "arm64_32";
    "operation_duration_ms" = 1;
    "operation_errorCode" = 260;
    "operation_errorDomain" = "com.apple.dt.CoreDeviceError.1005.NSCocoaErrorDomain";
    "operation_errorWorker" = IDECoreDeviceSideInstallAppWorker;
    "operation_name" = IDERunOperationWorkerGroup;
    "param_debugger_attachToExtensions" = 0;
    "param_debugger_attachToXPC" = 1;
    "param_debugger_type" = 3;
    "param_destination_isProxy" = 0;
    "param_destination_platform" = "com.apple.platform.watchos";
    "param_diag_MainThreadChecker_stopOnIssue" = 0;
    "param_diag_MallocStackLogging_enableDuringAttach" = 0;
    "param_diag_MallocStackLogging_enableForXPC" = 1;
    "param_diag_allowLocationSimulation" = 1;
    "param_diag_checker_tpc_enable" = 1;
    "param_diag_gpu_frameCapture_enable" = 0;
    "param_diag_gpu_shaderValidation_enable" = 0;
    "param_diag_gpu_validation_enable" = 0;
    "param_diag_memoryGraphOnResourceException" = 0;
    "param_diag_queueDebugging_enable" = 1;
    "param_diag_runtimeProfile_generate" = 0;
    "param_diag_sanitizer_asan_enable" = 0;
    "param_diag_sanitizer_tsan_enable" = 0;
    "param_diag_sanitizer_tsan_stopOnIssue" = 0;
    "param_diag_sanitizer_ubsan_stopOnIssue" = 0;
    "param_diag_showNonLocalizedStrings" = 0;
    "param_diag_viewDebugging_enabled" = 1;
    "param_diag_viewDebugging_insertDylibOnLaunch" = 1;
    "param_install_style" = 0;
    "param_launcher_UID" = 2;
    "param_launcher_allowDeviceSensorReplayData" = 0;
    "param_launcher_kind" = 0;
    "param_launcher_style" = 99;
    "param_launcher_substyle" = 0;
    "param_runnable_appExtensionHostRunMode" = 0;
    "param_runnable_productType" = "com.apple.product-type.application";
    "param_structuredConsoleMode" = 1;
    "param_testing_launchedForTesting" = 0;
    "param_testing_suppressSimulatorApp" = 0;
    "param_testing_usingCLI" = 0;
    "sdk_canonicalName" = "watchos10.2";
    "sdk_osVersion" = "10.2";
    "sdk_variant" = watchos;
}
--

系统信息

macOS 版本 14.2(内部版本 23C5030f) Xcode 15.1 (22501)(内部版本 15C5042i) 时间戳: 2023-11-02T13:11:25+05:30

swift xcode apple-watch xcode15
1个回答
0
投票

我也有同样的问题, 重新启动我的 Visual Studio 并修复它。

© www.soinside.com 2019 - 2024. All rights reserved.