在SQLite.swift中找不到SQLite/SQLite-Bridging.h [英] SQLite/SQLite-Bridging.h not found in SQLite.swift

查看:85
本文介绍了在SQLite.swift中找不到SQLite/SQLite-Bridging.h的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用SQLite.swit( https://github.com/stephencelis/SQLite.swift )来开发应用.我一直在遵循Pod安装指南,并且可以使其在iOS模拟器上运行.但是,当我尝试在测试设备上安装该应用程序时,它显示错误

I'm using SQLite.swit (https://github.com/stephencelis/SQLite.swift) to develop an app. I was following the Pod installation guide and can get it running on iOS simulator. However, when I try to install the app on my test device, it shows the error

/Users/.../Build/Products/Debug-iphoneos/Pods/SQLite.framework/Headers/SQLite.h:9:9: 
error: 'SQLite/SQLite-Bridging.h' file not found

我的配置方式不正确吗?无论如何都会遇到与我相同的问题?

Is it my way of configuration incorrect? Anyway ran into the same issue as mine?

推荐答案

我最初通过将#include行更改为以下内容来解决此问题:

I initially fixed this by changing the #include line to look like below:

#import "SQLite-Bridging.h"

我觉得必须做出这样的更改很奇怪.深入研究,我发现我认为的〜/Library/Developer/Xcode/DerivedData下的缓存文件.我清理与我的项目相关的文件夹,然后运行pod update.对我来说是成功的.

I find it weird that I have to make such changes. Digging in deeper, I found what I think as cached files under ~/Library/Developer/Xcode/DerivedData. I clean up the folder related to my project and run pod update. That did it for me.

我使用的是旧版本的SQLite.swift,升级时,我推断xcode不会更新某些缓存的文件.如果您也是从旧版本升级而来的,那么上面的技巧可能对您有用.

I was on older version of SQLite.swift and when upgrading, I deduce that xcode did not updating some cached files. If you also came from upgrading from older, the above trick may work for you.

这篇关于在SQLite.swift中找不到SQLite/SQLite-Bridging.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆