The project ‘xxxx’ is damaged and cannot be opened due to a parse error. Examine the project file for invalid edits or unresolved source control conflicts.
pengpengdai opened this issue · 3 comments
he problem
In the iOS CICD build, I reported this error in the tart virtual machine, but I checked his xcodeproj in the mount directory, and the probability of this problem is 50%. I would like to ask if you know the reason for this error
Logging
2023-12-18 21:17:32.173 xcodebuild[2403:11985] [MT] IDEFileReferenceDebug: [Load] <IDEFileReference, 0x6000032dcf00: name:xxxx path:group:xxxxx.xcodeproj> Failed to load container at path: /Volumes/My Shared Files/mdapdevops/workspace/app-ios-druudltx-prd5cwzm/user-development/xxxxx.xcodeproj, Error: Error Domain=Xcode3ProjectErrorDomain Code=2 "The project ‘xxxx’ is damaged and cannot be opened due to a parse error. Examine the project file for invalid edits or unresolved source control conflicts.
Path: /Volumes/My Shared Files/mdapdevops/workspace/app-ios-druudltx-prd5cwzm/user-development/xxxxx.xcodeproj" UserInfo={NSLocalizedDescription=The project ‘xxxx’ is damaged and cannot be opened due to a parse error. Examine the project file for invalid edits or unresolved source control conflicts.
Path: /Volumes/My Shared Files/mdapdevops/workspace/app-ios-druudltx-prd5cwzm/user-development/xxxxx.xcodeproj}
--- xcodebuild: WARNING: Unable to open project file '/Volumes/My Shared Files/mdapdevops/workspace/app-ios-druudltx-prd5cwzm/user-development/xxxx.xcodeproj' in workspace 'xxxx.xcworkspace'.
2023-12-18 21:17:42.860 xcodebuild[2403:11985] Writing error result bundle to /var/folders/c2/b2kmn__12wq57m82ltz0hl1w0000gn/T/ResultBundle_2023-18-12_21-17-0042.xcresult
xcodebuild: error: The workspace named "xxxxx" does not contain a scheme named "xxxx". The "-list" option can be used to find the names of the schemes in the workspace.
Might be related to cirruslabs/tart#567.
Does it occur only with the mounted directory?
可能与cirruslabs/tart#567有关。
是否仅在挂载的目录中发生?
yes
Let's close this in favor of cirruslabs/tart#567 then.
Unfortunately, there's nothing we can do at the moment except for not using them and hoping that Apple will fix this.