Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xcodebuild error #63

Open
IlyasNN opened this issue Nov 29, 2022 · 2 comments
Open

xcodebuild error #63

IlyasNN opened this issue Nov 29, 2022 · 2 comments

Comments

@IlyasNN
Copy link

IlyasNN commented Nov 29, 2022

Have SwifUIRouter in packages. Error during build on CI:
xcodebuild[70128:54646963] [MT] IDEFileReferenceDebug: [Load] <IDESwiftPackageCore.IDESwiftPackageSpecialFolderFileReference, 0x6000007fbb00: name:SwiftUIRouter.docc path:group:SwiftUIRouter.docc> Failed to load container at path: /Users/gitlab-runner/Library/Developer/Xcode/DerivedData/iosApp-asfxiubzkohtrkgwfpdkjwugwcjj/SourcePackages/checkouts/SwiftUIRouter/Sources/SwiftUIRouter.docc, Error: Error Domain=com.apple.dt.IDEContainerErrorDomain Code=6 "Cannot open "SwiftUIRouter.docc" as a "Swift Package Folder" because it is already open as a "Folder"." UserInfo={NSLocalizedDescription=Cannot open "SwiftUIRouter.docc" as a "Swift Package Folder" because it is already open as a "Folder".}

Have spent a lot of time to fix it. Possibly this is Xcode bug.
kean/Nuke#609 (comment)
Guys who faced with similar issue just removed .docc folder from project while it is not fixed by Apple. Can we do the same for SwiftUIRouter? have no ideas at all how to fix it

@frzi
Copy link
Owner

frzi commented Nov 29, 2022

Well that's just indescribably frustrating...

I created the temporary branch fix/docc for a workaround. This will be merged and released as a patch once everything is carefully tested. You can tell Xcode to use the specific branch instead of a version.

Personally I've not (yet?) encountered this problem with Xcode 14.1. But if this truly is the fix then so be it. 😕

Edit: Honestly I've very hesitant to push this to main and release as a version. This significantly changes the accessibility imo.

@GALHP
Copy link

GALHP commented Feb 17, 2023

Is there any new information on this topic or on a planned release? We currently rely on the fix branch fix/docc with Xcode 14.1.

But we haven't tried Xcode 14.2 or 14.3_beta1 yet either.

szk2s added a commit to magnetica-studio/SwiftUIRouter that referenced this issue Mar 12, 2023
- to avoid the issue frzi#63
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants