swift-package-manager - Swift 包依赖:“没有这样的模块......” - 为什么?
问题描述
目标:学习如何向 Swift 包添加导入。
作案手法:使用 Apple 提供的示例作为基础。添加另一个导入(即 Alamofire)
结果: Alamofire 确实导入;但它的模块“找不到”。
包装:
来源:
问:
为什么会这样?
我错过了什么?
解决方案
Check the target DeckOfPlayingCards
, select the General
tab, check Framework, Libraries, and Embedded Contents
, make sure Alamofire
is on the list
推荐阅读
- amazon-web-services - 忘记 AWS 组织成员账户 IAM 角色名称
- java - 使用Java8计算字符串列表中每个单词的频率
- redis - Redis Cluster 插槽信息过多
- php - 如何对 URI 中的 $search 变量的 GET 请求进行编码?
- botium-box - 在使用 luis 连接器运行 botium cli 时,即使问题和答案正确,也会出现断言错误
- python - 如何在 django 的 ModelForm 中使用 DatePicker?
- c# - 在 Xamarin.Forms UWP 应用程序中拦截鼠标后退按钮
- laravel - 在 Laravel Dusk 中使用键盘
- react-native - react-native run-android 错误地铁服务器
- c++ - 确定类型是如何定义的