问题标签 [carthage]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ios - 更改 Carthage Swift 版本
是否可以更改用于构建框架的 Carthage Swift 版本?
我正在尝试将我的项目迁移到 swift 3(在 Xcode 8 beta 上),而第三方库是唯一阻止我的项目编译的东西。在使用 swift 3 的特定分支时,Carthage 会抛出有关新 Swift 语法的错误。
任何帮助将不胜感激!
xcode - 如何使用最新的 Xcode 测试版使用 Carthage 编译库?
我正在使用 Xcode 8 Beta (8S128d) 测试 Swift 3,这导致我的 Carthage 构建的库与源代码库不兼容。
Module file was created by an older version of the compiler; rebuild 'SwiftValidator' and try again
.
如何配置 Carthage 以便carthage update
使用 Beta 编译器而不是标准编译器?
swift - 将 xcode 项目从 swift 3 降级到 swift 2.2
我下载了新的 xCode 8 测试版。当我打开我的旧项目(在 swift 2.2 中)时,我点击了转换为新的 swift 语法,然后我点击了 swift 3。问题是我使用的是通过 carthage (Kanna) 下载的框架。我曾尝试使用:
迦太基更新
但它不起作用。
当我尝试在新的 Xcode-beta 上运行代码时,我收到此错误:
模块文件是由旧版本的编译器创建的;重建'Kanna'并重试:
git - 使用要求密码的 Carthage 的 Bitbucket 私有存储库
我正在设置我刚刚创建的框架,然后上传到 Bitbucket 上的私人仓库。
我已将以下内容添加到我的购物车文件中:
混帐“ https://myUsername@bitbucket.org/myUsername/myFramework.git ”
但是,当我运行 carthage update --platform iOS 时,出现以下错误:
一个shell任务(/usr/bin/env git clone --bare --quiet https://myUsername@bitbucket.org/myUsername/myFramework.git /Users/jack/Library/Caches/org.carthage.CarthageKit/dependencies/ myFramework)失败,退出代码为 128:致命:无法读取“ https://myUsername@bitbucket.org ”的密码:终端提示已禁用
你怎么建议我让这个工作?
ios - 在 Objective-C 项目中导入 Swift 框架 - 错误 - 未知类型名称
我一直在努力解决这个特定的问题。基本上我已经使用Carthage添加了一个框架BigNerdRanch CoreDataStack。
但是我在我的 Objective-C 代码中使用上述框架时遇到了问题。我的项目是一个 Objective-C 项目,我最近在其中添加了 Swift 代码和 Swift 框架。
到目前为止,我已经能够在我的 Swift 代码中毫无问题地使用 Swift 框架。但是一旦我开始在我的旧 Obj-C 上使用上述 Swift 框架,特别是 AppDelegate.m,无论如何我都会遇到编译器错误。
据我了解,我必须像这样导入它:
我在 AppDelegate.m 上做过的。
我的项目也有以下设置:
项目目标设置:
Swift 编译的构建设置:
我在 StackOverflow 中看到了一些将公共添加到类的答案。但我无法这样做,因为导入的框架是自包含的,并且只包含我在 XCode 项目中查看的标题。
谢谢你们的帮助。
ios - "Use of unresolved identifier 'Realm'"
I installed Realm using Carthage onto my iOS app target (I made sure that I added it to Embedded Binaries section, set the framework search paths, and setup the copy-frameworks
build phase). I also have an import RealmSwift
statement at the top of each file where I use it.
Despite this, anywhere I reference Realm or Realm types I still get the error: "Use of unresolved identifier 'Realm'"
or "Use of unresolved identifier '<a realm type>'"
.
The weird thing is that my app builds and runs without any issues; the errors disappear while the app is running and reappear when it isn't.
Things I have already tried: selecting Product > Clean, deleting the derived data, restarting Xcode, and restarting the computer—nothing works.
Thanks in advance.
carthage - carthage bootstrap 给出解析错误
我正在尝试运行以下命令
但是该过程总是失败并出现解析错误,该错误不会给我太多信息。我不确定从这里去哪里,因为错误没有提供太多信息。下面是完整的输出。
ios - 如何从 CocoaPods 迁移到 Carthage?
我的项目已与 30 个不同的库链接。他们中很少有人支持迦太基。
我需要做一个分支,让他们一个一个支持迦太基吗?有没有更好的方法呢?
ios - 如何仅使用 Carthage 为 arm* 架构构建框架?
我正在尝试构建要发送到 AppStore 的项目,并且所有依赖项都将arm * + i386 + x86_64。我选择迦太基。如何制作assembly dependencies
唯一的手臂 *?
xcode - 如何将 Carthage 构建保留在源代码控制中以避免团队需要“carthage 更新”?
我们有 Carthage 依赖项,需要很长时间才能获取和构建。我尝试将/Carthage/Builds
文件夹放入源代码管理并将构建设置中的框架路径指向它,但团队仍然被迫这样做carthage update
,否则从源代码管理中提取时无法识别更新的依赖项(即使是更新的构建已签入)。
有什么我遗漏的东西,而不是像将 builds 文件夹保存在源代码管理中那么简单吗?