即使我已经安装了Cocoapods并安装了Dialogflow的Pod文件,Xcode仍显示错误“没有这样的模块”

编程入门 行业动态 更新时间:2024-10-26 20:27:27
本文介绍了即使我已经安装了Cocoapods并安装了Dialogflow的Pod文件,Xcode仍显示错误“没有这样的模块”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我一直在使用Dialogflow(以前是Api.AI)制作聊天机器人,但现在在集成项目到我用Xcode用Swift编写的应用程序。我使用终端 sudo gem install cocoapods并使用

在您提供的图像中清楚地显示出您已经打开了项目文件而不是工作区。

I've been making a chatbot using Dialogflow formerly Api.AI but now encountering error while integrating the project to my app written in Swift in Xcode. I'd installed cocoapods using terminal "sudo gem install cocoapods" and using this version of Dialogflow to create the podfile.

All gone well but now when I'm importing inside Xcode in my app's AppDelegate.swift file using import ApiAI or import AI Xcode is showing me error that No such module. Please refer to image.

And on GitHub this library which is written in Swift, showing that it has depreciated and asking me to refer to API.AI's Apple Client library which is in Obj-C and unfortunately I've no expertise in Obj-C.

解决方案

After installing a pod using Cocoa Pods, you must from that point forward open the workspace rather that the project file. The icons will appear differently in your project like so:

In the image you provided is clearly showing that you have opened the project file not the workspace one.

更多推荐

即使我已经安装了Cocoapods并安装了Dialogflow的Pod文件,Xcode仍显示错误“没有这样的模块”

本文发布于:2023-11-06 06:14:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1562905.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:安装了   我已经   模块   错误   文件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!