Skip to content

Commit f4e9fe6

Browse files
committed
Add workaround for "Use of unresolved identifier"
1 parent 23e63b3 commit f4e9fe6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,14 @@ Running the app,
518518

519519
![5 squared](tutorial/squared.png)
520520

521+
If the build fails with `Use of unresolved identifier 'square'`,
522+
perform a full clean with the *Product » Clean Build Folder...*
523+
⌥⇧⌘K menu command and then rebuild. (Hold ⌥ option to reveal
524+
the menu item.) This appears to be a bug with Xcode (version
525+
8.2 as of writing) caching some intermediate state from before
526+
the `SwiftHaskell` module was fully configured, and should not
527+
occur in future builds.
528+
521529
## Passing Complex Data Types
522530

523531
### Bytes
@@ -891,3 +899,11 @@ to **Yes** on the app target, as described in *App Bundle
891899
Configuration*.
892900

893901
![Always Embed Swift Standard Libraries: Yes](tutorial/xcode-embed-swift-standard-libs.png)
902+
903+
### Building in Xcode fails with `Use of unresolved identifier 'square'`
904+
905+
If the module is certainly imported, this is probably from Xcode
906+
incorrectly retaining an expired cache for the `SwiftHaskell`
907+
module. Perform a full clean with the *Product » Clean Build
908+
Folder...* ⌥⇧⌘K menu command and then rebuild. (Hold ⌥ option to
909+
reveal the menu item.)

0 commit comments

Comments
 (0)