Skip to content

Commit 13df840

Browse files
Add Readme note
1 parent d10f72e commit 13df840

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,13 @@ For more details, see the [Swift SDK reference](https://docs.powersync.com/clien
8080
## Attachments
8181

8282
See the attachments [README](./Sources/PowerSync/attachments/README.md) for more information.
83+
84+
## XCode Previews
85+
86+
XCode previews currently fail to load in a reasonable time after adding PowerSync to an XCode project. XCode requires dynamic linking for previews. This is enabled by enabling `ENABLE_DEBUG_DYLIB` in the XCode project. It seems like the previews fail to load due to PowerSync providing a `binaryTarget` which is linked statically by default.
87+
88+
XCode previews can be enabled by either:
89+
90+
Enabling `Editor -> Canvas -> Use Legacy Previews Execution` in XCode.
91+
92+
Or adding the `PowerSyncDynamic` product when adding PowerSync to your project. This product will assert that PowerSync should be dynamically linked, which restores XCode previews.

0 commit comments

Comments
 (0)