Ios xcode模拟器因某些dyld错误而崩溃

Ios xcode模拟器因某些dyld错误而崩溃,ios,xcode,macos,macos-catalina,Ios,Xcode,Macos,Macos Catalina,我可以在设备上运行我的应用程序,但当我在模拟器上运行它时,我遇到了一个错误,我如何在模拟器上运行它? xcode版本:12.1 模拟器版本:14.1 我现在不能在模拟器上吃午饭 Process: SpringBoard [8490] Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSim

我可以在设备上运行我的应用程序,但当我在模拟器上运行它时,我遇到了一个错误,我如何在模拟器上运行它? xcode版本:12.1 模拟器版本:14.1 我现在不能在模拟器上吃午饭

Process:               SpringBoard [8490]
Path:                  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/CoreServices/SpringBoard.app/SpringBoard
Identifier:            SpringBoard
Version:               1.0 (50)
Code Type:             X86-64 (Native)
Parent Process:        launchd_sim [8020]
Responsible:           SimulatorTrampoline [784]
User ID:               501

Date/Time:             2020-11-04 18:33:21.811 +0800
OS Version:            Mac OS X 10.15.7 (19H2)
Report Version:        12
Anonymous UUID:        4B907FF2-14B6-5989-E5EB-360FD491CCA0


Time Awake Since Boot: 5400 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    DYLD, [0x5] Code Signature

Application Specific Information:
dyld: launch, loading dependent libraries
DYLD_SHARED_CACHE_DIR=/Users/apple/Library/Developer/CoreSimulator/Caches/dyld/19H2/com.apple.CoreSimulator.SimRuntime.iOS-14-1.18A8394
DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
DYLD_FALLBACK_FRAMEWORK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks
DYLD_FALLBACK_LIBRARY_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib

Dyld Error Message:
  Library not loaded: /System/Library/PrivateFrameworks/MediaPlatform.framework/MediaPlatform
  Referenced from: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/MediaLibraryCore.framework/MediaLibraryCore
  Reason: no suitable image found.  Did find:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/MediaPlatform.framework/MediaPlatform: code signature invalid for '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/MediaPlatform.framework/MediaPlatform'

Binary Images:
       0x10286f000 -        0x102875fff  com.apple.springboard (1.0 - 50) <5E08B57A-06BC-3482-9CD7-3E821C3DBD85> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/CoreServices/SpringBoard.app/SpringBoard
过程:跳板[8490]
路径:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/CoreServices/SpringBoard.app/SpringBoard
识别号码:SpringBoard
版本:1.0(50)
代码类型:X86-64(本机)
父进程:launchd_sim[8020]
负责人:模拟器Rampoline[784]
用户ID:501
日期/时间:2020-11-04 18:33:21.811+0800
操作系统版本:Mac OS X 10.15.7(19H2)
报告版本:12
匿名UUID:4B907FF2-14B6-5989-E5EB-360FD491CCA0
启动后的唤醒时间:5400秒
系统完整性保护:已启用
崩溃线程:0
异常类型:EXC_崩溃(SIGABRT)
异常代码:0x0000000000,0x0000000000000000
例外说明:EXC_尸体通知
终止原因:DYLD,[0x5]代码签名
特定于应用程序的信息:
dyld:启动、加载依赖库
DYLD_共享_CACHE_DIR=/Users/apple/Library/Developer/CoreSimulator/Caches/DYLD/19H2/com.apple.CoreSimulator.SimRuntime.iOS-14-1.18A8394
DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
DYLD\u FALLBACK\u FRAMEWORK\u PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks
DYLD\u FALLBACK\u LIBRARY\u PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/LIBRARY/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib
Dyld错误消息:
未加载库:/System/Library/PrivateFramework/MediaPlatform.framework/MediaPlatform
引用自:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/privateframes/medialarycore.framework/medialarycore
原因:未找到合适的图像。确实发现:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/privateframes/mediaplate.framework/mediaplate:代码签名对无效“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/privateframes/mediaforms.framework/mediaform”
二进制图像:
0x10286f000-0x102875fff com.apple.springboard(1.0-50)/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/CoreServices/springboard.app/springboard

这真奇怪,错误是“代码签名无效”。我想知道你的Xcode副本是否被破坏了?也许可以尝试卸载和重新安装?我从同事那里复制MediaPlatform库文件,这是可行的。