mavlink/MAVSDK-Swift-Example

Issues when running Carthage

Closed this issue · 3 comments

I ran into an issue when trying to install the SDK. I found that apparently it Carthage does not handle folder names with spaces very well, the fix for this what to rename the containing folder with no spaces. I am entering this issue so it serves others if they run into similar issues.

When trying to install the example project and trying to run
carthage bootstrap --platform ios

it fails with the following error:

(master) $ carthage bootstrap --platform ios
*** Checking out grpc-swift at "820730e24b9cf035b2889b30d2fe87411e041720"
*** Checking out MAVSDK-Swift at "0.7.0"
*** Checking out RxSwift at "5.0.1"
*** xcodebuild output can be found in /var/folders/1_/wyystzpd0r799kmzgyl46mdh0000gn/T/carthage-xcodebuild.EdwIXg.log
*** Downloading binary-only framework backend at "https://s3.eu-central-1.amazonaws.com/dronecode-sdk/backend.json"
*** Downloading binary-only framework MobileVLCKit at "https://code.videolan.org/videolan/VLCKit/raw/master/Packaging/MobileVLCKit.json"
*** Downloading RxSwift.framework binary at "ShaiTheBravest"
***  Skipped installing RxSwift.framework binary due to the error:
	"Incompatible Swift version - framework was built with 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) and the local version is 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)."

    Falling back to building from the source
*** Building scheme "SwiftGRPC-Package" in SwiftGRPC-Carthage.xcodeproj
Build Failed
	Task failed with exit code 65:
	/usr/bin/xcrun xcodebuild -project /Users/jaime/Developer/iOS\ Dev\ Course/MAVSDK-Swift-Example/Carthage/Checkouts/grpc-swift/SwiftGRPC-Carthage.xcodeproj -scheme SwiftGRPC-Package -configuration Release -derivedDataPath /Users/jaime/Library/Caches/org.carthage.CarthageKit/DerivedData/11.3.1_11C504/grpc-swift/820730e24b9cf035b2889b30d2fe87411e041720 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/1_/wyystzpd0r799kmzgyl46mdh0000gn/T/grpc-swift SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/jaime/Developer/iOS Dev Course/MAVSDK-Swift-Example/Carthage/Checkouts/grpc-swift)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/1_/wyystzpd0r799kmzgyl46mdh0000gn/T/carthage-xcodebuild.EdwIXg.log

@jmachuca77 were you able to solve this issue?

Sent with GitHawk

me too

me too

Can you explain what is going on please?