# SQLCipher Swift Example Community Edition Update Request

**URL:** <https://discuss.zetetic.net/t/sqlcipher-swift-example-community-edition-update-request/4358>\
**Category:** SQLCipher\
**Created:** [April 23, 2020, 2:08pm UTC](https://discuss.zetetic.net/t/sqlcipher-swift-example-community-edition-update-request/4358 "2020-04-23T14:08:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpml](https://avatars.discourse-cdn.com/v4/letter/j/ccd318/32.png) [@jpml](https://discuss.zetetic.net/u/jpml)\
**Post date:** [April 23, 2020, 2:08pm UTC](https://discuss.zetetic.net/t/sqlcipher-swift-example-community-edition-update-request/4358/1 "2020-04-23T14:08:13Z")

</div>

Hello,

I am not sure where to post this as it is an issue against the example. My issue is described below and how I was able to resolve it. If this isn’t the correct method to resolve please let me know.

When following the Community Edition of SQLCipher guide for iOS the swift it has you add in the bridging header:  
#import \<sqlite3.h\>  
but in doing this, the compiler does not properly apply the preprocessor macro or other c flags to the header file. I added the #define SQLITE\_HAS\_CODEC in the header itself and it still wouldn’t compile.

In order to get my application to compile I needed to change the import to the following:  
#import “sqlite3.h”

After this change was made I was able to compile the example.

---

<div class="post-metadata">

**Author:** ![mmoore](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/mmoore/32/858_2.png) [@mmoore](https://discuss.zetetic.net/u/mmoore)\
**Post date:** [April 23, 2020, 4:45pm UTC](https://discuss.zetetic.net/t/sqlcipher-swift-example-community-edition-update-request/4358/2 "2020-04-23T16:45:57Z")

</div>

@jpml

Thanks for the report. The [documentation](https://www.zetetic.net/sqlcipher/ios-tutorial/) has been fixed.

---

<div class="post-metadata">

**Author:** ![jpml](https://avatars.discourse-cdn.com/v4/letter/j/ccd318/32.png) [@jpml](https://discuss.zetetic.net/u/jpml)\
**Post date:** [April 23, 2020, 4:50pm UTC](https://discuss.zetetic.net/t/sqlcipher-swift-example-community-edition-update-request/4358/3 "2020-04-23T16:50:57Z")

</div>

@mmoore Thanks for having the documentation updated!
