【发布时间】:2017-02-18 01:38:24
【问题描述】:
Alamofire 在一个仅限 iPhone 的项目中运行良好。
我手动安装了 ALAMOFIRE - 不是可可豆
现在我按照这些步骤添加了一个手表应用目标 - https://developer.apple.com/library/content/documentation/General/Conceptual/WatchKitProgrammingGuide/ConfiguringYourXcodeProject.html#//apple_ref/doc/uid/TP40014969-CH2-SW1IIm
“import Alamofire”在 iPhone 的视图控制器上运行良好,但是当我尝试将其添加到“扩展”文件夹中的代码文件之一时,会出现以下错误...
No such module "Alamofire"
【问题讨论】:
-
也许你根本不应该使用来自 WatchKit 扩展的 http 请求。看一个类似的问题:stackoverflow.com/a/28931587/1689376
-
如何将 iOS 应用的视图控制器中解析的 JSON 数据链接到手表上?
-
我如何将一个变量从 iPhone 放到 Watches UI 上???
-
我不认为我的项目可以用这种方法运行......
-
没有Alamofire我能做到吗???
标签: ios swift watchkit alamofire