Juanpe / SkeletonView

☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
MIT License
12.59k stars 1.11k forks source link

Carthage builds fail at Xcode 12 #346

Closed miguelangel-dev closed 3 years ago

miguelangel-dev commented 3 years ago

Description

When you try to resolve any SkeletonView version using carthage and Xcode 12 compiler fails with the next error:

*** Fetching SkeletonView
*** Checking out SkeletonView at "ef8e4578d790493ea6931c89d94b6b79cb469671"
*** xcodebuild output can be found in /var/folders/25/znchfspn4239prc8x2mzbd7m0000gp/T/carthage-xcodebuild.KOHbGw.log
*** Building scheme "SkeletonView-iOS" in SkeletonView.xcodeproj
Build Failed
    Task failed with exit code 1:
    /usr/bin/xcrun lipo -create /Users/miguelangel/Library/Caches/org.carthage.CarthageKit/DerivedData/12.2_12B45b/SkeletonView/ef8e4578d790493ea6931c89d94b6b79cb469671/Build/Intermediates.noindex/ArchiveIntermediates/SkeletonView-iOS/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/SkeletonView.framework/SkeletonView /Users/miguelangel/Library/Caches/org.carthage.CarthageKit/DerivedData/12.2_12B45b/SkeletonView/ef8e4578d790493ea6931c89d94b6b79cb469671/Build/Products/Release-iphonesimulator/SkeletonView.framework/SkeletonView -output /Users/miguelangel/Desktop/Skeleton.app/Contents/MacOS/Carthage/Build/iOS/SkeletonView.framework/SkeletonView

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/25/znchfspn4239prc8x2mzbd7m0000gp/T/carthage-xcodebuild.KOHbGw.log

What is happening?

Running the lipo command, it alerts the next error:

iphoneos and iphonesimulator in SkeletonView have the same architectures (arm64) and can't be in the same fat output file

A suggested temporal workaround could be to exclude the arm64 architecture for simulators in the project file settings. It seems Carthage is migrating from lipo to XCFrameworks in order to create FAT frameworks (combine several archs. in the same binary)

What type of issue is this? (place an x in one of the [ ])

Requirements (place an x in each of the [ ])