cost 393 ms
单元测试看不到他们应该测试的框架,尽管它们在同一个 SwiftPM 目标中 - Unit tests don't see the framework they're supposed to test although they're in same SwiftPM target

我正在迁移一个 Objective-C 框架以使用 Swift 包管理器构建,但是当我使用xcodebuild -scheme MyFramework -workspace . ,SwiftPM 抱怨: 我已经验证.testTarget有一个dependencies: ["MyFramewor ...

Swift 在库中使用应用程序级全局常量 package - Swift Using an app level global constant in a library package

这应该很容易,但它让我卡住了。 在我的应用程序中,我有一个全局常量定义为 我想在作为 SwiftPackage 添加到项目中的库中使用该 apiKey。 我需要它在图书馆中启动服务。 但我得到了错误 我尝试将 apiKey 包装成这样的结构: 并这样使用它: 我收到类似的错误消息。 我错过了什么? ...

当另一个模块在 Swift 中具有自己的名称时,引用另一个模块中的类型与当前模块中的类型同名 - Referring to a type in another module with the same name as a type in the current module when the other module has a type with its own name in Swift

我正在使用 swift package 管理器。 我有一个模块ModuleA ,它导出两种类型: ModuleA和Test 。 我有一个模块ModuleB ,它定义了一个类型: Test 。 在ModuleB中,如何从ModuleA引用类型Test ? 理想情况下,我希望#module(Module ...

仅当从 Xcode 运行时,Swift package 调用 /usr/bin/swift 错误并出现“无法打开 macho 文件...太多级别的符号链接” - Swift package calling /usr/bin/swift errors with `Failed to open macho file...Too many levels of symbolic links` only when running from Xcode

I am developing a command line app in Swift which will call out to swift in order to initialize packages, compile things, test things, etc. I am usi ...

Swift Package 管理器 - 在 ZEFE90A8E604A7C840E88D03A6DB76 中的 storyboard 中设置自定义类失败 - Swift Package Manager - Setting Custom Classes in storyboard in package fails

我正在尝试为 iOS 框架实现对 Swift Package 管理器的支持,该框架用于在我们的主项目中与 Carthage 链接。 该框架的名称是“OptionsSheetKit” 该框架包含一个UIViewController ,它是具有.sheet外观的UIAlertController的副本, ...

Swift Package 错误中缺少 PDFKit 符号 - PDFKit symbols missing from Swift Package error

我正在尝试构建一个依赖于框架的 swift package,但下游框架抛出错误。 下游框架可以独立构建,但是当它作为依赖项添加到其他东西时,它会很痛苦。 iOS 或 macOS SDK 中的“PDFKit”似乎没有链接。 我将如何链接? 我尝试将以下内容添加到我的代码中以查看它是否会有所作为,但没 ...

找不到 C 库的 SwiftPM 框架 - SwiftPM Framework not found for C library

我正在使用 Swift Package Manager 为现有的 C 库创建一个 Swift 包装器。 我认为我已经正确地构建了所有内容,但是在创建和构建 Xcode 项目时出现错误。 我已经尝试了我能找到的一切,但没有运气。 正式让我难住了。 这是当前状态下项目的链接: https : //gi ...

FBLPromise 崩溃与 CocoaPods 和 SwiftPM 在两者中实现 - FBLPromise crash with CocoaPods and SwiftPM implemented in both

一段时间以来,我们一直在从 CocoaPods 迁移,但并非每个依赖项都进行了切换。 像 Firebase 。 我有一个关于重复符号的类似问题,但现在我面临一些新问题,这可能是因为我在 SwiftPM 和 CocoaPods 中都使用了依赖项。 运行我的(示例)项目后,它崩溃了: 顶部有警告: 在我 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM