You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When following the guide the error module 'Swift' cannot be imported in embedded Swift mode
> TOOLCHAINS="org.swift.61202411141a" swift build -c release
Building for production...
<unknown>:0: error: module 'Swift' cannot be imported in embedded Swift mode
/Users/ryan/Projects/swift-playdate-examples/Sources/Playdate/Graphics.swift:42:29: warning: result of call to functionreturning'LCDBitmapDrawMode' is unused
40 | /// displayed as well.
41 | public static func setDrawMode(mode: LCDBitmapDrawMode) {
42 | graphicsAPI.setDrawMode.unsafelyUnwrapped(mode)
|`- warning: result of call to functionreturning'LCDBitmapDrawMode' is unused 43 | } 44 |
PlaydateKit has a plugin for building projects, swift package pdc (see here for instructions). Just using swift build won't set all the required flags. I'm assuming you were trying to follow the swift-playdate-examples guide instead, which is slightly different, but if the PlaydateKit docs say to use swift build somewhere please let me know as that is incorrect.
When following the guide the error
module 'Swift' cannot be imported in embedded Swift mode
OS: 15.1
Toolchain: 2024-11-14 from trunk
Toolchains
The text was updated successfully, but these errors were encountered: