Closed hlung closed 4 years ago
Hey @hlung !
Thanks for reporting this, I can reproduce the error and I think I have a hunch where this might be going wrong.
@finestructure - I recently saw this as well trying it with Stevia. Thinking about this now, is there a possibility of still creating the playground even though it failed to build? This could be useful diagnosing it going forward and potentially patching the playground.
Hey @devandanger , thanks for following up!
I actually think this is just a matter of disabling the build step in Arena. What I'm trying to do is build the playground before launch. This was an attempt to work around the issue people are hitting where they don't realise they need to hit Cmd-B to build everything.
However, in practise this doesn't appear to be working reliably anyway and in this particular case it's breaking Arena entirely. I should just disable the build step.
I've just pushed a branch disable-build
. @hlung , @devandanger - do you want to give that try to see if that fixes the problem?
Thanks!
So thats works! and I was able to patch the project then afterwards.
This bug that I was reporting was related to the actual dep not arena. Stevia had a bug which was fixed but not being pulled back from their package.
/Users/evan/Development/swift/ux-components-exploration2/.build/checkouts/Stevia/Sources/Stevia/Stevia+Stacks.swift:29:50: error: use of undeclared type 'UIView'
extension Array: SteviaLayoutItem where Element: UIView {}
This was fixed here as the preprocessor commands were not set correctly. I'm not sure why SPM is not picking up changes correctly, which is what I'm now looking at.
Thanks for following up, @devandanger !
So if I understand correctly, the change on this branch would have been helpful in the sense that it'd have highlighted the issue lies with the dependency, right? So in other words, I should package this up in a new release, especially given that the build step likely isn't all the helpful anyway.
It says
error: no such module 'UIKit'
even if I specify platform as ios.Log: