Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tobhae-dev opened this issue Apr 11, 2017 · 2 comments
Open

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

tobhae-dev opened this issue Apr 11, 2017 · 2 comments

Comments

@tobhae-dev
Copy link

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
Copy link
Collaborator

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
Copy link

I have this exact same issue.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants