Post

Replies

Boosts

Views

Activity

SPM - "“resource_bundle_accessor.swift” couldn’t be linked to “Intermediates” because an item with the same name already exists
Hello I'm having a problem with the SwiftUI preview, I created a package, which has resources and I'm trying to run the preview inside the package. But the preview gives the following error: PreviewUpdateTimedOutError: Updating took more than 5 seconds Updating a preview from in XCPreviewAgent.app (6693) took more than 5 seconds. When I generate the diagnosis and see the SerializationErrors.txt it gives the following message: Error Domain=NSCocoaErrorDomain Code=516 "“resource_bundle_accessor.swift” couldn’t be linked to “Intermediates” because an item with the same name already exists." UserInfo={NSSourceFilePathErrorKey=/Users/********/Library/Developer/Xcode/DerivedData/********-glsxbeukhhwappbnunipftxmhjvi/Build/Intermediates.noindex/Previews/********/Intermediates.noindex/***** ***.build/Debug-iphonesimulator/********.build/DerivedSources/resource_bundle_accessor.swift, NSUserStringVariant=( Link ), NSDestinationFilePath=/var/folders/xt/s6r881rx7bjfcw_mds72nxyw0000gp/T/previews-diagnostics-20220304-114049/Intermediates/resource_bundle_accessor.swift, NSFilePath=/Users/*********/Library/Developer/Xcode/DerivedData /********-glsxbeukhhwappbnunipftxmhjvi/Build/Intermediates.noindex/Previews/********/Intermediates.noindex/********.build/Debug-iphonesimulator/** ******.build/DerivedSources/resource_bundle_accessor.swift, NSUnderlyingError=0x2cb1d2cd0 {Error Domain=NSPOSIXErrorDomain Code=17 "File exists"}} I've tried clearing the derivated data, clearing the preview cache, restarting the mac, nothing works... Anyone have any ideas? This package has no external dependencies
1
0
1.1k
Mar ’22