pavankataria / SwiftDataTables

A Swift Data Table package, display grid-like data sets in a nicely formatted table for iOS. Subclassing UICollectionView that allows ordering, and searching with extensible options.
MIT License
448 stars 69 forks source link

Unexpected duplicate tasks #48

Closed anudeep94 closed 3 years ago

anudeep94 commented 4 years ago

Hi, I was releasing an update for our app to iOS 13, from Xcode 11.3 and archiving it fails with errors like:

Unexpected duplicate tasks: 1) Target 'SwiftDataTables' (project 'Pods') has copy command from '/Users/ecosoft/Desktop/BS OE Survey 2/Pods/SwiftDataTables/SwiftDataTables/SwiftDataTables.bundle/column-sort-ascending.png' to '/Users/ecosoft/Library/Developer/Xcode/DerivedData/BS_OE_Survey-fykbjydhfdxtjiaimfbylnuedznk/Build/Intermediates.noindex/ArchiveIntermediates/BS OE Survey/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/SwiftDataTables.framework/column-sort-ascending.png' 2) Target 'SwiftDataTables' (project 'Pods') has copy command from '/Users/ecosoft/Desktop/BS OE Survey 2/Pods/SwiftDataTables/SwiftDataTables/SwiftDataTables.bundle/column-sort-ascending.png' to '/Users/ecosoft/Library/Developer/Xcode/DerivedData/BS_OE_Survey-fykbjydhfdxtjiaimfbylnuedznk/Build/Intermediates.noindex/ArchiveIntermediates/BS OE Survey/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/SwiftDataTables.framework/column-sort-ascending.png'

KarasIlia commented 4 years ago

Hi! I have the same problem when trying to archive, does anyone know how to solve it?

UPD: Removing references to 3 files "column-sort-ascending.png", "column-sort-descending.png" and "column-sort-unspecified.png" in Pods/SwiftDataTables helped to me.

pavankataria commented 4 years ago

Did you resolve your issue in the end @anudeep94?

Please update to the latest version of SwiftDataTables. That folder is no longer there.

Thank you @KarasIlia for being so helpful to @anudeep94 while I was away.

kishorekumarek commented 4 years ago

@pavankataria I have this issue, should we delete the files manually to solve this?

I am already in the latest version SwiftDataTables (0.8.1), but still get this error.

All these image files getting added in both classes and resources directory. We may have to update the podspec to exclude path to these files in classes directory, if we change it to following it works.

image

dcoletto commented 4 years ago

I have this issue too, right after running pod install with this new pod added. Any news on this?

pavankataria commented 4 years ago

@tringkishorekumar thank you. Will fix this and push to master.

vahidnety commented 4 years ago

@tringkishorekumar thank you. Will fix this and push to master.

I fixed in my local code this way: go to file>Workspace Settings> set build system to Legacy Build system. then compile and enjoy your life.

dipen-apptrait commented 4 years ago

I solved this issue by deleting this png file from the compile sources under the build phase of this pod.

pavankataria commented 3 years ago

@dipen-apptrait @vahidnety @dcoletto @tringkishorekumar @KarasIlia @anudeep94 image

Please upgrade to the latest version of SwiftDataTables (0.8.2) to receive a fix for this issue. Thank you.

šŸš€ SwiftDataTables (0.8.2) successfully published on šŸ“… December 8th, 04:03 šŸ‘ Share with your friends and colleagues!