hyperoslo / Cache

:package: Nothing but Cache.
Other
2.97k stars 334 forks source link

Cannot build Swift 5 / XCode 10.2 #248

Closed DavidEYork closed 4 years ago

DavidEYork commented 5 years ago

We cannot build this project in Swift 5, we get compiler errors.

Module compiled with Swift 4.2.1 cannot be imported by the Swift 5.0 compiler: /Users/davidyork/academia/academia-ios/Carthage/Build/iOS/Cache.framework/Modules/Cache.swiftmodule/x86_64.swiftmodule

Also (from a Carthage build attempt)

*** Building scheme "Cache-iOS" in Cache.xcodeproj
Build Failed
    Task failed with exit code 65:
    /usr/bin/xcrun xcodebuild -project /Users/davidyork/academia/academia-ios/Carthage/Checkouts/Cache/Cache.xcodeproj -scheme Cache-iOS -configuration Release -derivedDataPath /Users/davidyork/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Cache/5.2.0 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/_l/t8shcn813_1d8_y26wjyfrgw0000gn/T/Cache SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/davidyork/academia/academia-ios/Carthage/Checkouts/Cache)

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

What's the general procedure for updating to newer XCode/Swift versions? I'd be happy to help.

biren9 commented 5 years ago

You can find a detailed description of the problem here: #236 Unfortunately, it looks like the developers are going to give up this project.