简体   繁体   English

在Swift框架上桥接文件

[英]Bridging file on Swift framework

I'm creating a Swift framework and I need to use SQLite, when I create a bridging file the compiler gives me the following error: using bridging headers with framework targets is unsupported , however I found this project ( https://github.com/stephencelis/SQLite.swift ) which includes a bridging file. 我正在创建一个Swift框架,我需要使用SQLite,当我创建一个桥接文件时,编译器给我以下错误: using bridging headers with framework targets is unsupported ,但是我发现了这个项目( https://github.com /stephencelis/SQLite.swift ),其中包括一个桥接文件。 How has he done it? 他是如何做到的?

You cannot use a bridging file within a framework. 您不能在框架内使用桥接文件。 The solution is to use a map file. 解决方案是使用地图文件。 See this answer https://stackoverflow.com/a/25422889/4365754 看到这个答案https://stackoverflow.com/a/25422889/4365754

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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