velikanov / SwiftPasscodeLock

An iOS passcode lock with TouchID authentication written in Swift.
MIT License
199 stars 52 forks source link

Cannot install via carthage / Xcode 8.3.1 into Swift 3 Project #44

Open tobhae-dev opened 7 years ago

tobhae-dev commented 7 years ago

I added github "velikanov/SwiftPasscodeLock" to my cartfile then I ran: carthage update SwiftPasscodeLock --platform iOS

I get:

The following build commands failed:
    Check dependencies
(1 failure)
** BUILD FAILED **c

In log file it says:

/usr/bin/xcrun xcodebuild -project /Users/th/Developer/AppStack/Projects/Vaccy_iOS/Repo/Vaccy/Carthage/Checkouts/SwiftPasscodeLock/PasscodeLock.xcodeproj -scheme PasscodeLock -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean buildBuild settings from command line:
    BITCODE_GENERATION_MODE = bitcode
    CARTHAGE = YES
    CODE_SIGN_IDENTITY = 
    CODE_SIGNING_REQUIRED = NO
    ONLY_ACTIVE_ARCH = NO
    SDKROOT = iphoneos10.3

=== CLEAN TARGET PasscodeLock OF PROJECT PasscodeLock WITH CONFIGURATION Release ===

Check dependencies
“Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
“Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

=== BUILD TARGET PasscodeLock OF PROJECT PasscodeLock WITH CONFIGURATION Release ===

Check dependencies
“Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
“Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

I think you must specify the SWIFT_VERSION in your Projects Targets to Swift 3 in Build Settings Tab. Could you do that?

ziogaschr commented 7 years ago

I just checked the SWIFT_VERSION in Projects Target and it was "Swift 3" already. I am not using Carthage so I can't really help here. Maybe @velikanov can check this

rishabhkohli commented 7 years ago

I have this exact same issue.

Xcode 8.3.1 Swift 3.1 (Can this be the problem?)