pinterest / PINRemoteImage

A thread safe, performant, feature rich image fetcher
Apache License 2.0
4.01k stars 511 forks source link

duplicate symbol prevent construction of PINRemoteImage using Carthage on apple silicon #603

Closed rakesthedon closed 2 years ago

rakesthedon commented 3 years ago

I try to add PINRemoteImage via Carthage to a sample app on Xcode 12 and I keep getting an error like this

/usr/bin/xcrun xcodebuild -workspace /Users/USERNAME/Development/AppFrameworkTest/Carthage/Checkouts/PINRemoteImage/PINRemoteImage.xcworkspace -scheme PINRemoteImage -configuration Release -derivedDataPath /Users/USERNAME/Library/Caches/org.carthage.CarthageKit/DerivedData/12.5.1_12E507/PINRemoteImage/019b71b3fc2835a59b2f6ecaa9033841867813a8 -sdk iphonesimulator -destination platform=iOS\ Simulator,id=D16BFAB4-FD85-4C19-ABA1-40EE8FCA7079 -destination-timeout 3 ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES build VALIDATE_WORKSPACE=NO FRAMEWORK_SEARCH_PATHS=$(inherited)\ /var/folders/s0/c95558j11ps3t867znnqfzmc0000gn/T/carthage-xcframework-i3p7 (launched in /Users/USERNAME/Development/AppFrameworkTest/Carthage/Checkouts/PINRemoteImage)

I tired to open the workspace and building directly with Xcode 12.5.1 and this is what I get

duplicate output file '/Users/USERNAME/Library/Developer/Xcode/DerivedData/PINRemoteImage-eyvlfwbzjxdnyjcwhckhrodgtxqb/Build/Intermediates.noindex/PINOperation.build/Debug-iphoneos/PINOperation.build/Objects-normal/arm64/PINOperationGroup.o' on task: CompileC /Users/USERNAME/Library/Developer/Xcode/DerivedData/PINRemoteImage-eyvlfwbzjxdnyjcwhckhrodgtxqb/Build/Intermediates.noindex/PINOperation.build/Debug-iphoneos/PINOperation.build/Objects-normal/arm64/PINOperationGroup.o /Users/USERNAME/Development/AppFrameworkTest/Carthage/Checkouts/PINRemoteImage/Carthage/Checkouts/PINCache/Carthage/Checkouts/PINOperation/Source/PINOperationGroup.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

can anyone help me?

I use an apple silicon Mac mini running macOS 11.5