Weird relative path while creating new files in Xcode. Is it related with macOS Catalina beta 4 version?

南楼画角 提交于 2019-11-29 10:56:39

I came across the same issue right after updating to macOS Catalina Beta 4 as well. Here is a workaround:

  1. Navigate to the project file in Finder, right click the xcodeproj > Open With > Other... > Enable: All Applications > [text editor of choice]. Open up the project.pbxproj file.

  2. Find the section named /* Begin PBXFileReference section */ and below it, locate the section where it says:

path = ../../../../../../System/Volumes/Data/Users/patryksredzinski/Desktop/PerfTester/PerfTester-Xcode/PerfTester-Xcode/wtfTableViewCell.swift

and replace it with path = wtfTableViewCell.swift.

  1. Save the file. Xcode should reflect the changes you made. To check, navigate to the inspector panel, under Identity and Type > Location, the path should now only display the [filename].swift.

Hopefully a permanent fix will come out soon.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!