JTAppleCalendar icon indicating copy to clipboard operation
JTAppleCalendar copied to clipboard

Carthage build fails with swift 3 error (not allowed)

Open billpatterson opened this issue 7 years ago • 12 comments

github "patchthecode/JTAppleCalendar" "7.1.7"

Xcode 10.2.1

error: SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0. (in target 'JTAppleCalendar tvOS')

Detail:

xcodebuild -workspace /Users/bill/Documents/work/clients/Antics/github-repo/octapharma/iOS-app/igcares/Carthage/Checkouts/JTAppleCalendar/JTAppleCalendar.xcworkspace -scheme JTAppleCalendar\ tvOS -configuration Release -derivedDataPath /Users/bill/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2.1_10E1001/JTAppleCalendar/7.1.7 -sdk appletvos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/pt/jl9w0f5n1z9__xst3s243hhw0000gn/T/JTAppleCalendar SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/bill/Documents/work/clients/Antics/github-repo/octapharma/iOS-app/igcares/Carthage/Checkouts/JTAppleCalendar)User defaults from command line:
    IDEArchivePathOverride = /var/folders/pt/jl9w0f5n1z9__xst3s243hhw0000gn/T/JTAppleCalendar
    IDEDerivedDataPathOverride = /Users/bill/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2.1_10E1001/JTAppleCalendar/7.1.7

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 = appletvos12.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 'JTAppleCalendar tvOS')

billpatterson avatar May 06 '19 22:05 billpatterson

can you point to master branch?

patchthecode avatar May 07 '19 04:05 patchthecode

assuming resolved.

patchthecode avatar May 08 '19 16:05 patchthecode

I'm also experiencing this error:

SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0. (in target 'JTAppleCalendar tvOS'

Is there a fix for this?

pieperu avatar Jun 17 '19 16:06 pieperu

  1. What version of swift are you using?
  2. What version of XCode are you using?
  3. What do you have in your Podfile ?

patchthecode avatar Jun 17 '19 17:06 patchthecode

  1. Swift version 4.2
  2. XCode 10.2.1
  3. I use carthage - github "patchthecode/JTAppleCalendar"

Checkouts/JTAppleCalendar)User defaults from command line: IDEArchivePathOverride = /var/folders/8_/v_0m48tj4lbc4_jrmhz4r4r00000gn/T/JTAppleCalendar IDEDerivedDataPathOverride = /Users/xxxxxx/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2.1_10E1001/JTAppleCalendar/7.1.7

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 = appletvos12.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 'JTAppleCalendar tvOS')

** ARCHIVE FAILED **

pieperu avatar Jun 18 '19 07:06 pieperu

I cannot find a work around for this. I think this issue should be re-opened. I'm happy to raise a new issue if you prefer.

pieperu avatar Jun 19 '19 07:06 pieperu

@patchthecode my apologies for wasting your time, after changing my carthage file to this:

github "patchthecode/JTAppleCalendar" "master"

The problem went away - I'm new to swift and xcode and assumed leaving out the version as i had before would:

github "patchthecode/JTAppleCalendar"

that it would default to master - but it doesn't.

Problem solved for me.

Thanks

pieperu avatar Jun 19 '19 17:06 pieperu

cool.

patchthecode avatar Jun 19 '19 19:06 patchthecode

@patchthecode I am seeing the same error message when using "master" using either the swift 5.0.1 or 5.1 compiler

waterskier2007 avatar Jul 30 '19 18:07 waterskier2007

can you set you carthage to this commit Hash -> 1d9e3d0b4d8fbd0649da8cb6c9f1de2374c51cde

That hash is version 7.1.7 From version 8.0 and upwards i am removing support for Carthage and Cocoapods, because SwiftPackageManager comes built directly into XCode. All you gotta do is paste in this repository's link and thats it.

let me know your thoughts.

patchthecode avatar Jul 30 '19 19:07 patchthecode

@patchthecode that worked great! I would love to use SPM, but I am updating a legacy project, and we are not at that point yet. Thanks for the quick response.

waterskier2007 avatar Jul 30 '19 19:07 waterskier2007

Understood. Well 7.1.7 should do good for you then version 8 is mainly minor bug fixes (some rare ones) and support for a yearView calendar.

patchthecode avatar Jul 31 '19 02:07 patchthecode