Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I compile a library with Carthage using the latest beta of Xcode?

Tags:

xcode

carthage

I am testing out Swift 3 with Xcode 8 Beta (8S128d), which leads me to a situation where my Carthage-built libraries are not compatible with the source base.

Module file was created by an older version of the compiler; rebuild 'SwiftValidator' and try again.

How can I configure Carthage so that carthage update uses the Beta compiler rathe rthan the standard one?

like image 760
Kheldar Avatar asked Jun 17 '16 08:06

Kheldar


People also ask

How do you update Carthage dependencies?

If you've modified your Cartfile, or you want to update to the newest versions of each framework (subject to the requirements you've specified), simply run the carthage update command again. If you only want to update one, or specific, dependencies, pass them as a space-separated list to the update command.

How do I install Carthage framework?

Double-click Carthage. pkg to run the installer. Click Continue, select a location to install to, click Continue again and finally click Install. Note: When you attempt to run the installer, you may see a message stating: “Carthage.


1 Answers

I moved the Beta into /Applications.

sudo xcode-select -s /Applications/Xcode-beta.app/ sets the Xcode to be used to the beta.

carthage update --platform iOS --no-use-binaries builds the libraries for iOS and prevents Carthage from downloading existing (yet incompatible) precompiled binaries.

like image 87
Kheldar Avatar answered Sep 21 '22 01:09

Kheldar