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

Fails to copile with Carthage #19

Closed
fnc12 opened this issue Aug 21, 2017 · 6 comments
Closed

Fails to copile with Carthage #19

fnc12 opened this issue Aug 21, 2017 · 6 comments

Comments

@fnc12
Copy link

fnc12 commented Aug 21, 2017

Cartfile:

git "https://github.com/RedMadRobot/input-mask-ios.git"

Command: carthage update --platform ios

Output:

*** Building scheme "InputMask" in InputMask.xcodeproj
Build Failed
	Task failed with exit code 65:
	/usr/bin/xcrun xcodebuild -project /Users/johnzakharov/Desktop/Xcode/crediton-ios/Carthage/Checkouts/input-mask-ios/Source/InputMask/InputMask.xcodeproj -scheme InputMask -configuration Release -derivedDataPath /Users/johnzakharov/Library/Caches/org.carthage.CarthageKit/DerivedData/input-mask-ios/3.0.0 -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build (launched in /Users/johnzakharov/Desktop/Xcode/crediton-ios/Carthage/Checkouts/input-mask-ios)

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

Log file (inputmask part):

/usr/bin/xcrun xcodebuild -project /Users/johnzakharov/Desktop/Xcode/crediton-ios/Carthage/Checkouts/input-mask-ios/Source/InputMask/InputMask.xcodeproj -scheme InputMask -configuration Release -derivedDataPath /Users/johnzakharov/Library/Caches/org.carthage.CarthageKit/DerivedData/input-mask-ios/3.0.0 -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build (launched in /Users/johnzakharov/Desktop/Xcode/crediton-ios/Carthage/Checkouts/input-mask-ios)User defaults from command line:
    IDEDerivedDataPathOverride = /Users/johnzakharov/Library/Caches/org.carthage.CarthageKit/DerivedData/input-mask-ios/3.0.0

Build 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 InputMask OF PROJECT InputMask 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.

** CLEAN FAILED **


The following build commands failed:
	Check dependencies
(1 failure)
=== BUILD TARGET InputMask OF PROJECT InputMask 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 FAILED **


The following build commands failed:
	Check dependencies
(1 failure)
@taflanidi
Copy link
Collaborator

@fnc12 hi!
Thanks for your report.

Could you please let me know your IDE version? Looks like you are using an old version of the Xcode, probably 8.2.

@fnc12
Copy link
Author

fnc12 commented Aug 21, 2017

Version 8.3.3 (8E3004b)

@hiaw
Copy link

hiaw commented Aug 22, 2017

I had the same problem then I found that the problem is that it was trying to use Swift 4. The master branch is still using Swift 3 so the following in my Cartfile works.

git "https://github.com/RedMadRobot/input-mask-ios.git" "master"

@taflanidi
Copy link
Collaborator

taflanidi commented Aug 22, 2017

@fnc12 I haven't been able to reproduce your issue yet. Still digging into it.

Meanwhile, have you tried @hiaw's advice? Did it help?

@fnc12
Copy link
Author

fnc12 commented Aug 22, 2017

I use swift 3 in this project.

@taflanidi
Copy link
Collaborator

Closing as outdated; feel free to reopen if still relevant.

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

No branches or pull requests

3 participants