Carthage build failed after updating swift to version 4.0 from version 3.2.
Here are the results of using the carthage update --platform iOS.
*** Fetching AlamofireImage
*** Fetching FSCalendar
*** Fetching Alamofire
*** Fetching ActiveLabel.swift
*** Fetching Toaster
*** Fetching PopupDialog
*** Fetching DKImagePickerController
*** Checking out DKImagePickerController at "3.6.1"
*** Checking out PopupDialog at "0.5.4"
*** Checking out Toaster at "2.1.0"
*** Checking out ActiveLabel.swift at "0.8.0"
*** Checking out Alamofire at "4.5.1"
*** Checking out FSCalendar at "2.7.9"
*** Checking out AlamofireImage at "3.3.0"
*** xcodebuild output can be found in /var/folders/6z/c0myz1fn4rsgy842p9vqqr700000gn/T/carthage-xcodebuild.my2Am1.log
*** Building scheme "ActiveLabel" in ActiveLabel.xcodeproj
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /Users/poqw/Documents/GitHub/nyg-ios/Carthage/Checkouts/ActiveLabel.swift/ActiveLabel.xcodeproj -scheme ActiveLabel -configuration Release -derivedDataPath /Users/poqw/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/ActiveLabel.swift/0.8.0 -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES build (launched in /Users/poqw/Documents/GitHub/nyg-ios/Carthage/Checkouts/ActiveLabel.swift)
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/6z/c0myz1fn4rsgy842p9vqqr700000gn/T/carthage-xcodebuild.my2Am1.log
And then $ tail /var/folders/6z/c0myz1fn4rsgy842p9vqqr700000gn/T/carthage-xcodebuild.my2Am1.log
I got this :
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:~/.local/bin:/usr/local/bin:/Users/poqw/miniconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Wireshark.app/Contents/MacOS:/opt/local/bin"
/usr/bin/ditto -rsrc /Users/poqw/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/ActiveLabel.swift/0.8.0/Build/Intermediates.noindex/ActiveLabel.build/Release-iphoneos/ActiveLabel.build/Objects-normal/armv7/ActiveLabel.swiftdoc /Users/poqw/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/ActiveLabel.swift/0.8.0/Build/Products/Release-iphoneos/ActiveLabel.framework/Modules/ActiveLabel.swiftmodule/arm.swiftdoc
** BUILD FAILED **
The following build commands failed:
CompileC /Users/poqw/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/ActiveLabel.swift/0.8.0/Build/Intermediates.noindex/ActiveLabel.build/Release-iphoneos/ActiveLabel.build/Objects-normal/armv7/ActiveLabel_vers.o /Users/poqw/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/ActiveLabel.swift/0.8.0/Build/Intermediates.noindex/ActiveLabel.build/Release-iphoneos/ActiveLabel.build/DerivedSources/ActiveLabel_vers.c normal armv7 c com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/poqw/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/ActiveLabel.swift/0.8.0/Build/Intermediates.noindex/ActiveLabel.build/Release-iphoneos/ActiveLabel.build/Objects-normal/arm64/ActiveLabel_vers.o /Users/poqw/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/ActiveLabel.swift/0.8.0/Build/Intermediates.noindex/ActiveLabel.build/Release-iphoneos/ActiveLabel.build/DerivedSources/ActiveLabel_vers.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
And Here is What I have done for fix this problem.
Delete derived Carthage Cache.
Delete Carthage directory in project.
Uninstall Carthage and install again.
Download Xcode 8.3.2 and xcode-select --switch /Applications/Xcode8.app/Contents/Developer and use the xcrun command to make sure that the version has been changed to swift 3.0 and then update Carthage.
Clean Project and rebuild
Restart Xcode
I would appreciate if anyone can help me.
I'm using Xcode 8.3.1 and this is what I followed:
Deleted derived data.
Removed Carthage folder: rm -r ./Carthage
Updated Cartfile with:
github "facebook/facebook-sdk-swift" "master"
github "facebook/facebook-ios-sdk" "sdk-version-4.21.0"
Run Carthage command:
carthage update --platform iOS --no-use-binaries
Mac Senour’s solution didn't work for me; what worked was cleaning derived data of CarthageKit here: /Library/Caches/org.carthage.CarthageKit/DerivedData/
Related
apple#Apples-iMac ConfigData % carthage build --no-skip-current
Please update to the latest Carthage version: 0.36.0. You currently are on 0.35.0
*** xcodebuild output can be found in /var/folders/y2/9rgqlp3n51nd73tg8_7gf7nr0000gn/T/carthage-xcodebuild.hHyZ7t.log
*** Building scheme "ConfigData" in ConfigData.xcodeproj
Build Failed
Task failed with exit code 1:
/usr/bin/xcrun lipo -create /Users/apple/Library/Developer/Xcode/DerivedData/ConfigData-bypjmncfuigbwmaixccfdcxuhgpp/Build/Intermediates.noindex/ArchiveIntermediates/ConfigData/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/ConfigData.framework/ConfigData /Users/apple/Library/Developer/Xcode/DerivedData/ConfigData-bypjmncfuigbwmaixccfdcxuhgpp/Build/Products/Release-iphonesimulator/ConfigData.framework/ConfigData -output /Users/apple/Desktop/XCode_12/ConfigData/Carthage/Build/iOS/ConfigData.framework/ConfigData
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/y2/9rgqlp3n51nd73tg8_7gf7nr0000gn/T/carthage-xcodebuild.hHyZ7t.log
Carthage is working on these issues. In the meantime try this workaround.
https://gist.github.com/skymobilebuilds/61f4a95bd62a3db36b52719aeab7e0d5
This has worked for me.
Brand new ios project
NOTHING in the folder besides an empty view controller with base setup
touch Cartfile
added github "facebook/Facebook-SDK-Swift" to Cartfile
Ran carthage bootstrap --platform iOS --cache-builds
Got the following error message:
*** Checking out Bolts-ObjC at "1.9.0"
*** Checking out Facebook-SDK-Swift at "0.4.0"
*** Checking out facebook-objc-sdk at "sdk-version-4.36.0"
*** No cache found for Bolts-ObjC, building with all downstream dependencies
*** xcodebuild output can be found in /var/folders/0p/lqn6hy6s1d9389yjr_1b8jnw0000gn/T/carthage-xcodebuild.RN4jiZ.log
*** Building scheme "Bolts-iOS" in Bolts.xcodeproj
*** Building scheme "Bolts-iOS-Dynamic" in Bolts.xcodeproj
*** Building scheme "FBSDKCoreKit-Dynamic" in FacebookSDK.xcworkspace
*** Building scheme "FBSDKCoreKit-Universal" in FacebookSDK.xcworkspace
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -workspace /Users/keitzer/src/test/Test/Carthage/Checkouts/facebook-objc-sdk/FacebookSDK.xcworkspace -scheme FBSDKCoreKit-Universal -configuration Release -derivedDataPath /Users/keitzer/Library/Caches/org.carthage.CarthageKit/DerivedData/10.0_10A255/facebook-objc-sdk/sdk-version-4.36.0 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/0p/lqn6hy6s1d9389yjr_1b8jnw0000gn/T/facebook-objc-sdk SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/keitzer/src/test/Test/Carthage/Checkouts/facebook-objc-sdk)
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/0p/lqn6hy6s1d9389yjr_1b8jnw0000gn/T/carthage-xcodebuild.RN4jiZ.log
Any ideas why this might be happening?
Carthage Version: 0.31.1
Xcode 10, App Store version
macOS 10.14 Mojave
In my case it was SwiftLint (v. 0.29.3) preventing the Facebook Swift SDK from building.
It was installed in my system via Brew.
Removing SwiftLint as a temporary solution helped.
P.S.
To uninstall all versions of SwiftLint run this command in the Terminal:
brew uninstall --force swiftlint
I have been experimenting on a project with using Carthage.
Having installed Carthage I then attempted to add Nimble and Quick to the project through Carthage.
However, I get the following on carthage update:
user$ carthage update
*** Fetching Quick
*** Fetching Nimble
*** Checking out Nimble at "v5.1.1"
*** Checking out Quick at "v1.2.0"
*** xcodebuild output can be found in /var/folders/g_/h57q7zyj569cgs2rryp8cmk40000gp/T/carthage-xcodebuild.YUIvqk.log
*** Building scheme "Nimble-iOS" in Nimble.xcodeproj
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /Users/user/nbrownapp/Carthage/Checkouts/Nimble/Nimble.xcodeproj -scheme Nimble-iOS -configuration Release -derivedDataPath /Users/user/Library/Caches/org.carthage.CarthageKit/DerivedData/9.2_9C40b/Nimble/v5.1.1 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/g_/h57q7zyj569cgs2rryp8cmk40000gp/T/Nimble SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO (launched in /Users/user/nbrownapp/Carthage/Checkouts/Nimble)
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/g_/h57q7zyj569cgs2rryp8cmk40000gp/T/carthage-xcodebuild.YUIvqk.log
The project itself fails to build with numerous Shell Script Invocation Errors. Uninstalling Carthage, removing the Cartfile, Cartfile.resolved and the Carthage folder from the project and deleting the script leads to the project building without any errors. However, I would like to use Carthage and can't see why I can't get it to build the dependencies? Or why the project won't build when Carthage is installed?
If I remove the above and try again I get the same error.
I've been following the Ray Wenderlich example:
https://www.raywenderlich.com/165660/carthage-tutorial-getting-started-2
Any help would be appreciated.
I want to use UberRides SDK in Objective-C Project. I checked pod for objective c but it is not available. So i tried Carthage.
Here is my Cartfile:
# UberRides
github "https://github.com/uber/rides-ios-sdk" ~> 0.5
I use carthage update --platform iOS this command to installation and i am using xCode 8. But after some installation i am getting some error and i don't know how to handle so please help me.
Here is log of terminal:
*** Fetching rides-ios-sdk
*** Fetching ObjectMapper
*** Checking out ObjectMapper at "1.5.0"
*** Downloading rides-ios-sdk.framework binary at "v0.5.2"
*** Checking out rides-ios-sdk at "v0.5.2"
*** xcodebuild output can be found in /var/folders/mt/_rpb6s913b54yl1gfk0dt2qh0000gn/T/carthage-xcodebuild.orgg88.log
*** Building scheme "ObjectMapper-iOS" in ObjectMapper.xcworkspace
*** Building scheme "UberRides" in UberRides.xcodeproj
** CLEAN FAILED **
The following build commands failed:
Check dependencies
(1 failure)
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
A shell task (/usr/bin/xcrun xcodebuild -project /Users/jayesh/Desktop/CarthageDemo/Carthage/Checkouts/rides-ios-sdk/source/UberRides.xcodeproj -scheme UberRides -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
** CLEAN FAILED **
The following build commands failed:
Check dependencies
(1 failure)
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
This is probably because the latest 0.5 release is still using Swift 2.2
try updating your Cartfile to use the experimental Swift 2.3 branch
# UberRides
github "https://github.com/uber/rides-ios-sdk" "swift-2.3-dev"
I am trying to add AEXML module (https://github.com/tadija/AEXML) for XML parsing in my iOS 10 application with Xcode 8. However, I am getting this error while building dependencies with the command carthage update --platform iOS.
Swift Version: 3.0
Xcode Version: 8
Carthage Version: 0.17.2
cartfile
github "tadija/AEXML"
Error after running carthage update --platform iOS command
gsirn-021308:ApplePaySwag-Final chandeln$ swift -version
Apple Swift version 3.0 (swiftlang-800.0.46.2 clang-800.0.38)
Target: x86_64-apple-macosx10.9
gsirn-021308:ApplePaySwag-Final chandeln$ carthage update --platform iOS
*** Fetching AEXML
*** Checking out AEXML at "4.0.0"
*** xcodebuild output can be found in /var/folders/q7/bltc5kls62n2mzlvwhctctzr0000gn/T/carthage-xcodebuild.3NnOoT.log
*** Building scheme "AEXML iOS" in AEXML.xcodeproj
** BUILD FAILED **
The following build commands failed:
CompileSwift normal arm64 /Users/chandeln/Documents/ApplePaySwag-Final/Carthage/Checkouts/AEXML/Tests/AEXMLTests.swift
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)
A shell task (/usr/bin/xcrun xcodebuild -project /Users/chandeln/Documents/ApplePaySwag-Final/Carthage/Checkouts/AEXML/AEXML.xcodeproj -scheme AEXML iOS -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
** BUILD FAILED **
The following build commands failed:
CompileSwift normal arm64 /Users/chandeln/Documents/ApplePaySwag-Final/Carthage/Checkouts/AEXML/Tests/AEXMLTests.swift
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)