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

前端 未结 1 902
你的背包
你的背包 2021-01-13 07:29

I am not sure if it is related with beta software I am using. I\'ve recorded a video which shows the problem:

https://youtu.be/AuxjNpylaMc

When I create new

相关标签:
1条回答
  • 2021-01-13 08:13

    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.

    0 讨论(0)
提交回复
热议问题