carthage

what's the purpose of “--no-use-binaries” in carthage

▼魔方 西西 提交于 2019-12-02 17:03:28
As titled, what's the purpose of "--no-use-binaries" in carthage command line? if missing this, what could happen and what's the benefit to have this? Cristian Erik Ames Masek Sometimes the prebuilt frameworks are corrupted in the dependencies’ project, so you need to build them locally. Also, those prebuilt frameworks don’t support step-by-step debugging, so unless you build them locally, you won’t be able to use this feature with your dependencies. Using --no-use-binaries compiles the projects locally, using your compiler. Executing the update command might occasionally produce an error when

使用Carthage集成Alamofire

馋奶兔 提交于 2019-12-02 16:12:14
Carthage相较于Cocoapods有着使用灵活,对目标工程改动小的优势,使得它越来越受欢迎。今天就对我使用Carthage集成FBSDK做一个记录。 1、首先 https://github.com/Carthage/Carthage 查看官方网站,安装好Carthage. 在mac上我习惯用homebrew来安装,使用如下两个指令来安装。 安装:brew update brew install Carthage 如果你之前安装过Carthage,那么可以使用如下指令来查看当前版本号以及更新Carthage。 查看:carthage version 升级:brew upgrade carthage 2、安装完成后,cd 到你的工程根目录 Carthage和Cocoapods一样,通过一个文件来管理第三方库。名叫Cartfile 新建Cartfie文件:touch Cartfile 使用Xcode打开进行编辑:open -a Xcode Cartfile Cartfile指定依赖源以及版本号,版本号的控制与Cocoapods一样。 不指定版本号即默认最新版本。 Cartfile文件中的内容示例如下: /*--> */ /*--> */ github "Alamofire/Alamofire" ~>4.5.0 github "Alamofire/AlamofireImage"

How to correctly create carthage cartfile?

寵の児 提交于 2019-12-02 14:50:13
I'm looking into cartfile. Can't wait to "simply create a cartfile" like all the instructions say to do. Only... how do you "simply" create a Cartfile? I've created a plain text document, named it cartfile and copied some dependencies in it. Ran carthage update inside my root project directory Get this error: "No such file in directory" Downloaded an example carthage project and the Cartfile is actually an executable.. So how do I "simply create" a Cartfile, cause there aren't any instructions on how to From the command line, navigate to your project directory. touch Cartfile Now the Cartfile

How to select Swift toolchains when building with Carthage

天大地大妈咪最大 提交于 2019-12-01 11:28:56
I am creating an iOS app and use Carthage to build external libraries. Since the libraries I use are currently both Swift 2 and Swift 3 I am in a bit of a squeeze. Thus I want to have one Swift 2 branch and one Swift 3 branch for development and then merge them when the libraries are all Swift 3 compatible. However, I am not able to select which toolchain for build for with Carthage (version 0.18). Here is the contents of my Cartfile: # Swift 2 libraries github "stephencelis/SQLite.swift" ~> 0.10.1 github "Haneke/HanekeSwift" # Swift 3 libraries #github "stephencelis/SQLite.swift" "swift3"

Error of “error: could not lock config file .git/config: Permission denied” occurs while installing Carthage

痴心易碎 提交于 2019-11-30 07:06:44
I want to install carthage on my Mac OS using brew install carthage command. However, I get the following error: touch: /usr/local/Homebrew/.git/FETCH_HEAD: Permission denied touch: /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask/.git/FETCH_HEAD: Permission denied touch: /usr/local/Homebrew/Library/Taps/dart-lang/homebrew-dart/.git/FETCH_HEAD: Permission denied touch: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/.git/FETCH_HEAD: Permission denied fatal: Unable to create '/usr/local/Homebrew/.git/index.lock': Permission denied error: could not lock config file .git/config:

Where is the Run Script and Build Phase in Xcode?

左心房为你撑大大i 提交于 2019-11-30 05:48:05
To get Carthage set up, the documentation says that you need to add a Run Script. On your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”. Create a Run Script in which you specify your shell (ex: bin/sh), add the following contents to the script area below the shell: /usr/local/bin/carthage copy-frameworks and add the paths to the frameworks you want to use under “Input Files”, e.g.: $(SRCROOT)/Carthage/Build/iOS/Box.framework $(SRCROOT)/Carthage/Build/iOS/Result.framework $(SRCROOT)/Carthage/Build/iOS/ReactiveCocoa.framework This script

What is the difference between Embedded Binaries and Linked Frameworks

只谈情不闲聊 提交于 2019-11-29 18:59:08
When using external framework Xcode now has an Embedded Binaries as well as Linked Frameworks section. When you download an external framework and Finder->drag it into Xcode, it will place the framework into the Linked Frameworks and Libraries section. When you build a library with Carthage it recommends dragging into the Embedded Binaries section. Both seem to be working in terms of linkage, as the API becomes available either way, further more when adding a framework into the Embedded Binaries section is it also automatically gets added into the Linked Frameworks and Libraries section. So,

Command Line Tool - Error - xcrun: error: unable to find utility “xcodebuild”, not a developer tool or in PATH

心已入冬 提交于 2019-11-29 18:58:08
Getting the error while building the SwiftJSON framework to the Some Xcode project through Carthage Dependency Manager. Sivaramaiahs-Mac-mini:GZipDemoApp vsoftMacmini5$ carthage update --platform iOS *** Fetching GzipSwift *** Fetching SwiftyJSON *** Checking out GzipSwift at "3.1.1" *** Downloading SwiftyJSON.framework binary at "3.1.3" *** xcodebuild output can be found in /var/folders/7m/y0r2mdhn0f16zz1nlt34ypzr0000gn/T/carthage-xcodebuild.apLXCc.log A shell task (/usr/bin/xcrun xcodebuild -project /Users/vsoftMacmini5/Desktop/GZipDemoApp/Carthage/Checkouts/GzipSwift/Gzip.xcodeproj CODE

Error of “error: could not lock config file .git/config: Permission denied” occurs while installing Carthage

蹲街弑〆低调 提交于 2019-11-29 05:54:00
问题 I want to install carthage on my Mac OS using brew install carthage command. However, I get the following error: touch: /usr/local/Homebrew/.git/FETCH_HEAD: Permission denied touch: /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask/.git/FETCH_HEAD: Permission denied touch: /usr/local/Homebrew/Library/Taps/dart-lang/homebrew-dart/.git/FETCH_HEAD: Permission denied touch: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/.git/FETCH_HEAD: Permission denied fatal: Unable to create '

Where is the Run Script and Build Phase in Xcode?

孤者浪人 提交于 2019-11-29 02:16:16
问题 To get Carthage set up, the documentation says that you need to add a Run Script. On your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”. Create a Run Script in which you specify your shell (ex: bin/sh), add the following contents to the script area below the shell: /usr/local/bin/carthage copy-frameworks and add the paths to the frameworks you want to use under “Input Files”, e.g.: $(SRCROOT)/Carthage/Build/iOS/Box.framework $(SRCROOT)