Closed kkebo closed 7 months ago
I had a similar issue and got past it by adding PLAYDATE_SDK_PATH
to my shell. For instance:
export PLAYDATE_SDK_PATH=~/Developer/PlaydateSDK
added to my ~/.zprofile
.
I found that the step 3 is the cause.
- Add
/Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-04-05-a.xctoolchain/usr/bin
to$PATH
$ which swift
/usr/bin/swift
$ swift package pdc
found Swift toolchain: org.swift.600202404051a
found Playdate SDK
copying resources
building pladatekit_simulator.swiftmodule
building playdatekit_device.swiftmodule
/Users/kebo/PlaydateKitTemplate/.build/checkouts/PlaydateKit/Sources/PlaydateKit/Core/Display.swift:1:8: warning: public import of 'CPlaydate' was not used in public declarations or inlinable code
1 | public import CPlaydate
| `- warning: public import of 'CPlaydate' was not used in public declarations or inlinable code
2 |
3 | /// Functions pertaining to Playdate’s screen.
/Users/kebo/PlaydateKitTemplate/.build/checkouts/PlaydateKit/Sources/PlaydateKit/Core/Display.swift:1:8: warning: public import of 'CPlaydate' was not used in public declarations or inlinable code
1 | public import CPlaydate
| `- warning: public import of 'CPlaydate' was not used in public declarations or inlinable code
2 |
3 | /// Functions pertaining to Playdate’s screen.
/Users/kebo/PlaydateKitTemplate/.build/checkouts/PlaydateKit/Sources/PlaydateKit/Core/Sound.swift:1:8: warning: public import of 'CPlaydate' was not used in public declarations or inlinable code
1 | public import CPlaydate
| `- warning: public import of 'CPlaydate' was not used in public declarations or inlinable code
2 |
3 | /// Functions related to audio playback.
/Users/kebo/PlaydateKitTemplate/.build/checkouts/PlaydateKit/Sources/PlaydateKit/Core/Sound.swift:1:8: warning: public import of 'CPlaydate' was not used in public declarations or inlinable code
1 | public import CPlaydate
| `- warning: public import of 'CPlaydate' was not used in public declarations or inlinable code
2 |
3 | /// Functions related to audio playback.
/Users/kebo/PlaydateKitTemplate/.build/checkouts/PlaydateKit/Sources/PlaydateKit/Geometry/Rect.swift:1:8: warning: public import of 'CPlaydate' was not used in public declarations or inlinable code
1 | public import CPlaydate
| `- warning: public import of 'CPlaydate' was not used in public declarations or inlinable code
2 |
3 | // MARK: - Rect
/Users/kebo/PlaydateKitTemplate/.build/checkouts/PlaydateKit/Sources/PlaydateKit/Geometry/Rect.swift:1:8: warning: public import of 'CPlaydate' was not used in public declarations or inlinable code
1 | public import CPlaydate
| `- warning: public import of 'CPlaydate' was not used in public declarations or inlinable code
2 |
3 | // MARK: - Rect
building playdatekittemplate_simulator.o
building playdatekittemplate_device.o
building pdex.dylib
building pdex.elf
running pdc
Skipping pdex.dylib.dSYM/Contents/Info.plist
Skipping pdex.dylib.dSYM/Contents/Resources/DWARF/pdex.dylib
Skipping pdex.dylib.dSYM/Contents/Resources/Relocations/aarch64/pdex.dylib.yml
Summary
I can't build PlaydateKitTemplate.
How to reproduce
/Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-04-05-a.xctoolchain/usr/bin
to$PATH
swift package pdc
Logs
Environment