carthage

cannot build project with xcode 8 beta 6

柔情痞子 提交于 2020-01-26 01:20:16
问题 I am getting following error after I add a library via carthage - library name compiled with older version of Swift language (2.0) than previous files (3.0) for architecture x86_64 I have tried it with Argo library. (https://github.com/thoughtbot/Argo) I have selected the correct xcode version using xcode-select utility. What could be the problem? Any help is greatly appreciated Thanks! 回答1: From what I learned, looks like you can't have libraries written in different versions of Swift. In my

Unable to build Alamofire framework in new Xcode 10.2 (iOS 12.2)

纵饮孤独 提交于 2020-01-24 11:34:32
问题 I am unable to build Alamofire for swift 5 in Xcode 10.2, iOS 12.2, because of the following error SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0. (in target 'Alamofire iOS') Is there a solution to this? 回答1: As for Carthage use github "Alamofire/Alamofire" "5.0.0-beta.3" in your Cartfile 来源: https://stackoverflow.com/questions/55353418/unable-to-build-alamofire-framework-in-new-xcode-10-2-ios-12-2

How do I resolve macOS Carthage hangs when running update?

爱⌒轻易说出口 提交于 2020-01-22 08:30:48
问题 Started working on a new project where I need to run "Carthage update" for a mix of private and public projects some of which have submodules. No matter what I do Carthage hangs with no indication of why. What can I do to determine the hangs, and then how do I fix those problems? 回答1: Much of what I did to solve my problems can be found elsewhere, but no one site had it all. In the end I used a technique that I did not find but guessed at. The root problem I had was adopting recommended

How do I resolve macOS Carthage hangs when running update?

久未见 提交于 2020-01-22 08:30:37
问题 Started working on a new project where I need to run "Carthage update" for a mix of private and public projects some of which have submodules. No matter what I do Carthage hangs with no indication of why. What can I do to determine the hangs, and then how do I fix those problems? 回答1: Much of what I did to solve my problems can be found elsewhere, but no one site had it all. In the end I used a technique that I did not find but guessed at. The root problem I had was adopting recommended

Carthage, Xcode 9. “xcodebuild timed out while trying to read *.xcodeproj” error

时光总嘲笑我的痴心妄想 提交于 2020-01-15 03:15:14
问题 Today I downloaded xCode 9 and started converting everything to Swift 3.2/4, so I can build and run my project. As it was expected carthage complaint about some project that they could not be build, as they were not compatible with Swift 3.2/4. I had to find the versions that were compatible and build them. I also had to use --no-use-binaries, as some frameworks are precompiled with previous versions of Swift. I then got the following error: xcodebuild timeout while trying to read AWSiOSSDKv2

What's the equivalent of “development pods” under Carthage?

对着背影说爱祢 提交于 2020-01-09 19:33:26
问题 The teams developing frameworks for our iOS app are migrating from Cocoapods to Carthage. Under Cocoapods, I could set up dependencies as "development pods". For example, instead of having the main app download a specific version of an xyzzy dependency, I could set up xyzzy as a development pod and point it to my local directory where I had checked out xyzzy from its Git repo. While I was working in the main app's project, any edits I'd do to xyzzy 's files would be made in that directory.

Unit testing with third party libraries and Carthage

与世无争的帅哥 提交于 2020-01-06 03:26:36
问题 What is the proper way to use Carthage for dependency management, but also be able to write tests with it for types it pulls in. For example, (this is hypothetical) if I pull in AlamoFire and let’s say it has a Response protocol and different concrete types conform to the Response protocol. In my own library, if I were to do @testable import AlamoFire it would complain that Module ‘AlamoFire’ was not compiled for testing. Doing some research, I believe it’s because enable testability should

Carthage update error: “GitHub API request failed: Bad credentials”

拈花ヽ惹草 提交于 2020-01-03 16:54:10
问题 Here is my Cartfile: # Kanna HTML parsing library github "tid-kijyun/Kanna" ~> 1.0.0 # Realm database/ORM github "realm/realm-cocoa" When I run carthage update I get this: $ carthage --version Unrecognized command: '--version'. See `carthage help`. $ carthage update --platform OSX *** Fetching realm-cocoa *** Fetching Kanna *** Skipped downloading realm-cocoa.framework binary due to the error: "GitHub API request failed: Bad credentials" *** Checking out realm-cocoa at "v0.98.3" *** Skipped

How to uninstall Carthage from OS X?

雨燕双飞 提交于 2020-01-01 07:46:11
问题 Somehow, my Carthage installation is corrupted (seems like I have two versions installed) due to the fact that I installed using the Carthage.pkg file then also with brew install carthage . I'd like to completely remove Carthage(s) but can't find the way to do so. 回答1: In order to delete Carthage installed from: Carthage.pkg : $ rm -rf /usr/local/bin/carthage $ sudo rm -rf /Library/Frameworks/CarthageKit.framework Homebrew : $ brew uninstall --force carthage 回答2: To remove carthage installed

umbrella header for module 'myFramework' does not include header 'otherFramework.h'

给你一囗甜甜゛ 提交于 2019-12-31 09:54:57
问题 My Swift / iOS9 framework 'viewer_protocol' uses another and external Objective-C framework (CocoaAsyncSocket). I'm using Carthage to build CocoaAsyncSocket. So far everything works fine: In have an example App inside my framework Xcode Project using my framework without any problems. Now I want to use my Framework in a different Xcode Project - although using Carthage. I include only my Framework as a dependency and Carthage automatically resolves the dependencies to CocoaAsyncSocket. I