swift icon indicating copy to clipboard operation
swift copied to clipboard

PythonKit error during build: Xcode 12.4, toolchain 0.12

Open jbmaxwell opened this issue 3 years ago • 3 comments

I keep hitting an error in PythonKit when trying to build my project using the latest 0.12 toolchain:

Type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public

Line is: private var pointer: OwnedPyObjectPointer

Any ideas how to get past it?

jbmaxwell avatar Feb 02 '21 17:02 jbmaxwell

Have you tried using this from a recent Swift.org nightly toolchain, or one of our nightly Ubuntu toolchains? It is possible that the old releases using the tensorflow branch might have somehow drifted in a way that made them incompatible with the current PythonKit. Or there could have been a specific bug within 0.12 that this is exposing.

BradLarson avatar Feb 02 '21 20:02 BradLarson

I've tried several toolchains—dev snapshots from Jan 23rd and 27th, and the 5.3.3 release build from Jan 25—but they all have various, and serious misgivings (Abort trap 6, and the same PythonKit error)! :) All the errors are in third-party frameworks, mind you, using SPM. I'm going to try removing them all and re-adding them, just in case there's something going on with Xcode... But I suppose they probably have to be supporting Swift 5.3+, yes?

jbmaxwell avatar Feb 02 '21 21:02 jbmaxwell

This only happens building with SPM for me, Xcode is fine

porterchild avatar Feb 19 '21 23:02 porterchild