PromiseKit / CoreLocation

Promises for Swift & ObjC
http://promisekit.org
MIT License
30 stars 29 forks source link

Latest point release (3.0.6) won't compile under Xcode 5 #27

Closed jrtibbetts closed 5 years ago

jrtibbetts commented 5 years ago

I see that you just updated the project file to use Swift 4, but the most recent point release is still set to Swift 3, and Xcode 10.2 won't compile it any more. If it matters, I experienced this while building with Carthage, which said,

Sherman:Tempus Romanum jason$ carthage update --platform iOS
*** Fetching Foundation
*** Fetching PromiseKit
*** Fetching CoreLocation
*** Checking out CoreLocation at "3.0.6"
*** Checking out PromiseKit at "6.8.4"
*** Checking out Foundation at "3.3.2"
*** xcodebuild output can be found in /var/folders/dc/z6t4kln524q2hh12_pmwrb5w0000gn/T/carthage-xcodebuild.oR4V2I.log
*** Building scheme "PromiseKit" in PromiseKit.xcodeproj
*** Building scheme "PMKCoreLocation" in PMKCoreLocation.xcodeproj
Build Failed
    Task failed with exit code 65:
    /usr/bin/xcrun xcodebuild -project /Users/jason/Developer/poikile/Tempus\ Romanum/Carthage/Checkouts/CoreLocation/PMKCoreLocation.xcodeproj -scheme PMKCoreLocation -configuration Release -derivedDataPath /Users/jason/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/CoreLocation/3.0.6 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/dc/z6t4kln524q2hh12_pmwrb5w0000gn/T/CoreLocation SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/jason/Developer/poikile/Tempus Romanum/Carthage/Checkouts/CoreLocation)

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

And that log ends with

/usr/bin/xcrun xcodebuild -project /Users/jason/Developer/poikile/Tempus\ Romanum/Carthage/Checkouts/CoreLocation/PMKCoreLocation.xcodeproj -scheme PMKCoreLocation -configuration Release -derivedDataPath /Users/jason/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/CoreLocation/3.0.6 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/dc/z6t4kln524q2hh12_pmwrb5w0000gn/T/CoreLocation SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/jason/Developer/poikile/Tempus Romanum/Carthage/Checkouts/CoreLocation)User defaults from command line:
    IDEArchivePathOverride = /var/folders/dc/z6t4kln524q2hh12_pmwrb5w0000gn/T/CoreLocation
    IDEDerivedDataPathOverride = /Users/jason/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/CoreLocation/3.0.6

Build settings from command line:
    CARTHAGE = YES
    CLANG_ENABLE_CODE_COVERAGE = NO
    CODE_SIGN_IDENTITY =
    CODE_SIGNING_REQUIRED = NO
    GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO
    ONLY_ACTIVE_ARCH = NO
    SDKROOT = iphoneos12.2
    SKIP_INSTALL = YES
    STRIP_INSTALLED_PRODUCT = NO

note: Using new build system
note: Planning build
note: Constructing build description
Build system information
error: SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0. (in target 'PMKCoreLocation')

Build system information
error: SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0. (in target 'PMKCoreLocation')

** ARCHIVE FAILED **
mxcl commented 5 years ago

You should probably use Xcode 10.2 rather than Xcode 5.

Anyway, I just pushed a new tag. Update.

jrtibbetts commented 5 years ago

You should probably use Xcode 10.2 rather than Xcode 5.

D’oh! But thanks. :)