我试图格式化我的 MacOS,重新下载 Xcode 10.3。它只是不起作用。

Logs:
Process: Xcode [22467]
Path: /Users/USER/Downloads/Xcode_10.3.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 10.3 (14492.2)
Build Info: IDEFrameworks-14492002000000000~2 (10G8)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [22467]
User ID: 501
PlugIn Path: /Users/USER/Downloads/Xcode_10.3.app/Contents/Developer/usr/lib/libMainThreadChecker.dylib
PlugIn Identifier: libMainThreadChecker.dylib
PlugIn Version: ??? (64492.1)
Date/Time: 2020-11-13 16:52:33.909 +0800
OS Version: macOS 11.0.1 (20B29)
Report Version: 12
Bridge OS Version: 3.0 (14Y908)
Anonymous UUID: 46BBB97A-6E02-4B36-B8CE-640575A752F0
Time Awake Since Boot: 4500 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception …Run Code Online (Sandbox Code Playgroud) 我想知道在Swift中打印对象的这两种方式之间有什么不同.结果似乎相同.
var myName : String = "yohoo"
print ("My name is \(myName).")
print ("My name is ", myName, ".")
Run Code Online (Sandbox Code Playgroud) 使用最新的 Xcode 11 升级到 macOS Catalina 后,在进行单元测试时,我无法直接从用户路径读取文件,例如:
PROJECT_DIR + "/FolderX/myFile.json",我不断收到错误Thread 1: EXC_BAD_ACCESS (code=1, address=0x8)
当我尝试使用自定义路径打开 couchbase lite 数据库时,也会发生这种情况。错误:
error opening!: 14
Cannot open database, Error : Error Domain=SQLite Code=14 "unable to open database file" UserInfo={NSLocalizedDescription=unable to open database file}
我相信这是一个问题,因为我的模拟器和最新的 Catalina 之间存在读写访问权限。
我目前的解决方法是将我的文件和数据库添加到目标成员资格并直接从[NSBundle bundleForClass:[self class]].bundlePath. 有没有更好的解决方法?像调整任何设置以允许它像旧版本一样从自定义路径读取文件?