Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-fluwx
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
clx-fluwx
Commits
b43f1b06
提交
b43f1b06
authored
9月 28, 2018
作者:
JarvanMo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update using swift
上级
b599ee27
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
13 行增加
和
12 行删除
+13
-12
allow_non_modular_includes.png
arts/allow_non_modular_includes.png
+0
-0
public_headers_1.png
arts/public_headers_1.png
+0
-0
public_headers_2.png
arts/public_headers_2.png
+0
-0
USING_SWIFT.md
doc/USING_SWIFT.md
+7
-6
USING_SWIFT_CN.md
doc/USING_SWIFT_CN.md
+6
-6
没有找到文件。
arts/allow_non_modular_includes.png
0 → 100644
浏览文件 @
b43f1b06
24.7 KB
arts/public_headers_1.png
deleted
100644 → 0
浏览文件 @
b599ee27
18.4 KB
arts/public_headers_2.png
deleted
100644 → 0
浏览文件 @
b599ee27
8.0 KB
doc/USING_SWIFT.md
浏览文件 @
b43f1b06
...
...
@@ -2,14 +2,15 @@
`fluwx`
supports
`swift`
since 2.0.0. However,before using swift, there's still a little work to do.
If anyone has better solutions, tell me please or open a PR.
## Make Headers Public
I'll simplify this very soon.
There is an exception called
`include non-modular headers`
if compiling
`fluwx`
directly because
`WeChatOpenSDK`
uses static library.
We have to make the headers in
`WeChatOpenSDK`
public in order to support swift:
## Allow Non-modular Includes
There is an exception called
`include non-modular headers`
if compiling
`fluwx`
directly.
We have to allow non-modular includes to support swift,open your target and allow non-modular :



## Response
...
...
doc/USING_SWIFT_CN.md
浏览文件 @
b43f1b06
...
...
@@ -2,14 +2,14 @@
`fluwx`
从
*2.0.0*
开始支持
`swift`
。 但是在使用swift之前, 我们还有一些工作要做。
如果有人知道更好的方式,请告诉我或者提一个PR。
## Make Headers Public
我马上会简化这个步骤。
由于
`WeChatOpenSDK`
用到了静态库,所以当我们编译swift的时候会报一个错误:
`include non-modular headers`
。
为了支持swift,我们不得不将
`WeChatOpenSDK`
里的头文件变成public的:
## Allow Non-modular Includes
当我们使用swift编译
`fluwx`
的时候会报一个错误:
`include non-modular headers`
。
为了支持swift,我们不得不允许
*non-modular includes*
,打开你的target设置:



## 回调监听
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论