1

我必须将我的应用程序更新到 IOS15,为此我必须在 ios15 模拟器上测试代码,我在 xcode 12.5 和 MAC OS 11.2 (Big SUR) 上,所以为了将 Xcode 更新到 xcode13,我必须先更新Mac OS 到 11.3 或更高版本。所以我更新了 Mac OS,然后将 Xcode 12.5 更新到 Xcode 13。但是现在每当我打开我的项目时,它都会意外崩溃。

已尝试以下解决方案:

  1. 在终端上编写主线程命令
  2. 删除派生数据
  3. 删除 xcworkspace 内容中的 xcuserdata
  4. 多次重启mac
  5. 从 ~Library/ 文件夹中删除了整个 xcode 文件夹
  6. 已删除缓存

以下是打开 xcode 时的终端日志,最终中止。

2021-09-24 21:09:32.367 Xcode[820:16763] [MT] DVTAssertions:/Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-19207/DVTUserInterfaceKit/CustomUI/DVTScrollView.m 中的警告: 126 详细信息:在绘制边框时,变异 -contentInsets 可能会产生意想不到的结果。请改用 -contentInsetsExcludingBorders。对象:<DVTScrollView_ControlledBy_PreviewsXcode.AttributesInspectorViewController: 0x7fe99ba83800> 方法:-setContentInsets:线程:<NSThread: 0x7fe9bad1da80>{number = 1, name = main} 请在 https://feedbackassistant.apple.com提交错误使用此警告消息和您可以提供的任何有用信息。2021-09-24 21:09:32.492 Xcode[820:16763] 在 ("DVTFilePath:0x7fe96c66ce50:'/Applications/Xcode.app/Contents/Developer/Applications'") 2021-09-24 21 中寻找 Simulator.app :10:50.650 Xcode[820:19185] DVTAssertions:/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-19234/IDEFoundation/Execution/LaunchSystem/IDELaunchSession.m:1392 中的警告详细信息:XPC 调试注册超时-- 继续对象:
<IDELaunchSession: 0x7fe98a22fac0> 方法: -_startObservingXPCServicesAndAppExtensionsStage2 线程:<NSThread: 0x7fe99c1acce0>{number = 48, name = (null)} 请在https://feedbackassistant.apple.com
提交错误 使用此警告消息和您可以提供的任何有用信息。2021-09-24 21:12:19.863 Xcode[820:16763] -[__NSCFBoolean mutableCopyWithZone:]:无法识别的选择器发送到实例 0x7fff8070c230 2021-09-24 21:12:19.866 Xcode[820:16763] [MT] DVTAssertions:未捕获异常(NSInvalidArgumentException):-[__NSCFBoolean mutableCopyWithZone:]:无法识别的选择器发送到实例 0x7fff8070c230 UserInfo:(null)打开 FD:84/7168 提示:2021-09-24 21:12:20.200 Xcode[820:16763] [MT ] DVTAssertions:回溯:0 __exceptionPreprocess(在 CoreFoundation 中)1 DVTFailureHintExceptionPreprocessor(在 DVTFoundation 中)2 objc_exception_throw(在 libobjc.A.dylib 中)3
-[NSObject(NSObject) __retain_OA](在 CoreFoundation 中)4 转发(在 CoreFoundation 中)5 _CF_forwarding_prep_0(在 CoreFoundation 中)6 -[Xcode3AppTransportSecurityItemModel readValuesFromPlist](在 Xcode3Core 中)7
-[Xcode3AppTransportSecurityItemModel initWithCapabilitiesContext:item:](在 Xcode3Core 中)8
-[Xcode3TargetCapabilitiesContext capabilityItemModels](在 DevToolsCore 中)9 -[Xcode3TargetCapabilitiesContext _appIDFeatureStateForEntitlements:expansion:](在 DevToolsCore 中)10 -[Xcode3Target appIDFeaturesForBuildParameters:entitlements:withEntitlementsExpansion:](在 DevToolsCore 中)11 -[Xcode3Target _profileSupportForSDK:configuration:scope:](在DevToolsCore) 12 - [Xcode3Target profileSupportForBuildParameters:] (在 DevToolsCore 中) 13 +[IDEProvisionableSnapshot snapshotFromProvisionable:buildParameters:overrides:] (在 IDEFoundation 中) 14 __62-[IDEProvisionableManager _evaluateStatusWithStatusEvaluator:]_block_invoke (在 IDEFoundation 中) 15
___DVTCachedTimeSliced6Main_Block2 (DVTCachedTimeSliced6Main_Block2(在DVTCachedTimeSliced6Main_Block2(DVTCachedTimeSliced6Main_Block2)
-[_DVTTimeSlicedMainThreadOrderedNonUniquingWorkQueue _processWorkItemsWithDeadline:] (in DVTFoundation) 17 -[DVTTimeSlicedMainThreadWorkQueue _processWithDeadline:] (in DVTFoundation) 18 -[_DVTTimeSlicedMainThreadActiveWorkQueues _processWorkQueuesOnDeadline] (in DVTFoundation) 19 __NSFireDelayedPerform (in Foundation) 20 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION (in CoreFoundation) 21 __CFRunLoopDoTimer (in CoreFoundation) 22
__CFRunLoopDoTimers(在 CoreFoundation 中)23 __CFRunLoopRun(在 CoreFoundation 中)24 CFRunLoopRunSpecific(在 CoreFoundation 中)25
RunCurrentEventLoopInMode(在 HIToolbox 中)26 ReceiveNextEventCommon(在 HIToolbox 中)27 _BlockUntilNextEventMatchingListInModeWithFilter(在 HIToolbox 中)28 _DPSNextEvent(在 AppKit 中)29
-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:](在 AppKit 中)30 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:](在 DVTKit 中)31 -[NSApplication run](在 AppKit 中)32 -[DVTApplication运行](在 DVTKit 中)33 NSApplicationMain(在 AppKit 中)34 启动(在 libdyld.dylib 中)中止陷阱:6 注销正在保存会话... ...复制共享历史记录... ...保存历史记录...截断历史记录文件... ...完全的。

[处理完成]

并且代码意外退出崩溃错误报告如下:

进程:Xcode [820] 路径:/Applications/Xcode.app/Contents/MacOS/Xcode 标识符:
com.apple.dt.Xcode 版本:13.0 (19234) 构建信息:
IDEFrameworks-19234000000000000~16 (13A233) 应用程序 ID:
497799835 应用程序外部 ID:844005016 代码类型:
X86-64(本机)父进程:bash [814] 负责人:
终端 [801] 用户 ID:505

日期/时间:2021-09-24 21:12:20.265 +1000 操作系统版本:
macOS 11.6 (20G165) 报告版本:12 匿名 UUID:
436B3CE5-2698-C19C-324B-969964522643

自启动以来的唤醒时间:470 秒

系统完整性保护:禁用

崩溃的线程:0 调度队列:com.apple.main-thread

异常类型:EXC_CRASH (SIGABRT) 异常代码:
0x0000000000000000, 0x0000000000000000 异常说明:
EXC_CORPSE_NOTIFY

应用程序特定信息:ProductBuildVersion:13A233 UNCAUGHT EXCEPTION (NSInvalidArgumentException):-[__NSCFBoolean mutableCopyWithZone:]:无法识别的选择器发送到实例 0x7fff8070c230 UserInfo:(null)打开 FD:84/7168 提示:回溯:0 __exceptionPreprocess(在 CoreFoundation 中)1
DVTFailureHintExceptionPreprocessor在 DVTFoundation 中)2
objc_exception_throw(在 libobjc.A.dylib 中)3 -[NSObject(NSObject) __retain_OA](在 CoreFoundation 中)4 转发(在 CoreFoundation 中)5 _CF_forwarding_prep_0(在 CoreFoundation 中)6
-[Xcode3AppTransportSecurityItemModel readValuesFromPlist](在 Xcode3Core 中)7 - [Xcode3AppTransportSecurityItemModel initWithCapabilitiesContext:item:](在 Xcode3Core 中)8
-[Xcode3TargetCapabilitiesContext capabilityItemModels](在 DevToolsCore 中)9 -[Xcode3TargetCapabilitiesContext _appIDFeatureStateForEntitlements:expansion:](在 DevToolsCore 中)10 -[Xcode3Target appIDFeaturesForBuildParameters:entitlements:withEntitlementsExpansion:](在 DevToolsCore 中)11 -[Xcode3Target _profileSupportForSDK:configuration:scope:](在DevToolsCore) 12 - [Xcode3Target profileSupportForBuildParameters:] (在 DevToolsCore 中) 13 +[IDEProvisionableSnapshot snapshotFromProvisionable:buildParameters:overrides:] (在 IDEFoundation 中) 14 __62-[IDEProvisionableManager _evaluateStatusWithStatusEvaluator:]_block_invoke (在 IDEFoundation 中) 15
___DVTCachedTimeSliced6Main_Block2 (DVTCachedTimeSliced6Main_Block2(在DVTCachedTimeSliced6Main_Block2(DVTCachedTimeSliced6Main_Block2)
-[_DVTTimeSlicedMainThreadOrderedNonUniquingWorkQueue _processWorkItemsWithDeadline:] (in DVTFoundation) 17 -[DVTTimeSlicedMainThreadWorkQueue _processWithDeadline:] (in DVTFoundation) 18 -[_DVTTimeSlicedMainThreadActiveWorkQueues _processWorkQueuesOnDeadline] (in DVTFoundation) 19 __NSFireDelayedPerform (in Foundation) 20 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION (in CoreFoundation) 21 __CFRunLoopDoTimer (in CoreFoundation) 22
__CFRunLoopDoTimers(在 CoreFoundation 中)23 __CFRunLoopRun(在 CoreFoundation 中)24 CFRunLoopRunSpecific(在 CoreFoundation 中)25
RunCurrentEventLoopInMode(在 HIToolbox 中)26 ReceiveNextEventCommon(在 HIToolbox 中)27 _BlockUntilNextEventMatchingListInModeWithFilter(在 HIToolbox 中)28 _DPSNextEvent(在 AppKit 中)29
-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:](在 AppKit 中)30 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:](在 DVTKit 中)31 -[NSApplication run](在 AppKit 中)32 -[DVTApplication运行](在 DVTKit 中)33 NSApplicationMain(在 AppKit 中)34 开始(在 libdyld.dylib 中)调用 abort()

特定于应用程序的签名:NSInvalidArgumentException

Application Specific Backtrace 1: 0 CoreFoundation
0x00007fff205421db __exceptionPreprocess + 242 1 DVTFoundation
0x00000001071e200d DVTFailureHintExceptionPreprocessor + 446 2
libobjc.A.dylib 0x00007fff2027bd92 objc_exception_throw + 48 3 CoreFoundation
0x00007fff205c4d0d -[NSObject(NSObject) __retain_OA] + 0 4
CoreFoundation 0x00007fff204aa24b forwarding + 1448 5 CoreFoundation 0x00007fff204a9c18 _CF_forwarding_prep_0 + 120 6 Xcode3Core
0x000000012163bba4 -[Xcode3AppTransportSecurityItemModel readValuesFromPlist] + 253 7 Xcode3Core
0x000000012163ba8e -[Xcode3AppTransportSecurityItemModel initWithCapabilitiesContext:item:] + 72 8 DevToolsCore
0x00000001218ed2c1 -[Xcode3TargetCapabilitiesContext capabilityItemModels] + 505 9 DevToolsCore
0x00000001218ed5ab -[Xcode3TargetCapabilitiesContext _appIDFeatureStateForEntitlements:expansion:] + 251 10 DevToolsCore 0x00000001219970b4 -[Xcode3Target

我完全卡住了,请帮忙!

4

0 回答 0