提交 b43f1b06 authored 作者: JarvanMo's avatar JarvanMo

update using swift

上级 b599ee27
......@@ -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 :
![allow_non_modular_includes](../arts/allow_non_modular_includes)
![make_headers_public](../arts/public_headers_1.png)
![make_headers_public](../arts/public_headers_2.png)
## Response
......
......@@ -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设置:
![allow_non_modular_includes](../arts/allow_non_modular_includes)
![make_headers_public](../arts/public_headers_1.png)
![make_headers_public](../arts/public_headers_2.png)
## 回调监听
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论