frzi / swiftui-router

Path-based routing in SwiftUI
MIT License
891 stars 43 forks source link

xcodebuild error #63

Open IlyasNN opened 1 year ago

IlyasNN commented 1 year ago

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. https://github.com/kean/Nuke/issues/609#issuecomment-1287798474 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 commented 1 year ago

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 commented 1 year ago

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.