finestructure / Arena

A command line tool to create Swift Playground projects with SPM package dependencies
MIT License
684 stars 16 forks source link

error: no such module 'UIKit' #58

Closed hlung closed 4 years ago

hlung commented 4 years ago

It says error: no such module 'UIKit' even if I specify platform as ios.

Log:

➜  arena https://github.com/hlung/SwiftFlow -p ios -f
➡️  Package: https://github.com/hlung/SwiftFlow @ from(1.0.1)
🔧 Resolving package dependencies ...
📔 Libraries found: SwiftFlow
🔨 Building package dependencies ...
Error: ShellOut encountered an error
Status code: 65
Message: "2020-06-19 20:54:38.160 xcodebuild[62113:4411669] [MT] PluginLoading: Required plug-in compatibility UUID C80A9C11-3902-4885-944E-A035869BA910 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/ObjectGraph.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2020-06-19 20:54:41.603 xcodebuild[62113:4411669] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7fec5e0c6a50), iPhone 7 plus, iPhone, 13.4.1 (17D50), 0638bbbe9a88760cac8d7fb7170d564050932622> == Underlying device preparation errors ==
2020-06-19 20:54:41.603 xcodebuild[62113:4411669] [MT] iPhoneConnect: Failed _shouldMakeReadyForDevelopment check even though device is not locked by passcode.
Domain: com.apple.platform.iphoneos
Code: 5
Failure Reason: allowsSecureServices: 1. isConnected: 0. Platform: <DVTPlatform:0x7fec5b5326b0:'com.apple.platform.iphoneos':<DVTFilePath:0x7fec5b532400:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform'>>. DTDKDeviceIdentifierIsIDID: 0
User Info: {
    DVTDeviceDescription = "\Ud83d\Udcf1<DVTiOSDevice (0x7fec5e0c6a50), iPhone 7 plus, iPhone, 13.3.1 (17D50), 0638bbbe9a88760cac8d7fb7170d564050932622>";
}
--
2020-06-19 20:54:41.604 xcodebuild[62113:4411669] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7fec5e0c6a50), iPhone 7 plus, iPhone, 13.4.1 (17D50), 0638bbbe9a88760cac8d7fb7170d564050932622> == END: Underlying device preparation errors ==
2020-06-19 20:54:42.170 xcodebuild[62113:4411669] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7fec5e0c6a50), iPhone 7 plus, iPhone, 13.4.1 (17E262), 0638bbbe9a88760cac8d7fb7170d564050932622> == Underlying device preparation errors ==
2020-06-19 20:54:42.171 xcodebuild[62113:4411669] [MT] iPhoneConnect: Failed _shouldMakeReadyForDevelopment check even though device is not locked by passcode.
Domain: com.apple.platform.iphoneos
Code: 5
Failure Reason: allowsSecureServices: 1. isConnected: 0. Platform: <DVTPlatform:0x7fec5b5326b0:'com.apple.platform.iphoneos':<DVTFilePath:0x7fec5b532400:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform'>>. DTDKDeviceIdentifierIsIDID: 0
User Info: {
    DVTDeviceDescription = "\Ud83d\Udcf1<DVTiOSDevice (0x7fec5e0c6a50), iPhone 7 plus, iPhone, 13.3.1 (17D50), 0638bbbe9a88760cac8d7fb7170d564050932622>";
}
--
2020-06-19 20:54:42.171 xcodebuild[62113:4411669] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7fec5e0c6a50), iPhone 7 plus, iPhone, 13.4.1 (17E262), 0638bbbe9a88760cac8d7fb7170d564050932622> == END: Underlying device preparation errors ==
** BUILD FAILED **

The following build commands failed:
    CompileSwift normal x86_64
    CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)"
Output: "Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild

note: Using new build system
note: Planning build
note: Constructing build description
CreateBuildDirectory /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build (in target 'SwiftFlow' from project 'Arena-Playground')
    cd /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground
    builtin-create-build-directory /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build

SymLink /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/Resources Versions/Current/Resources (in target 'SwiftFlow' from project 'Arena-Playground')
    cd /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground
    /bin/ln -sfh Versions/Current/Resources /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/Resources

SymLink /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/SwiftFlow Versions/Current/SwiftFlow (in target 'SwiftFlow' from project 'Arena-Playground')
    cd /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground
    /bin/ln -sfh Versions/Current/SwiftFlow /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/SwiftFlow

SymLink /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/Versions/Current A (in target 'SwiftFlow' from project 'Arena-Playground')
    cd /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground
    /bin/ln -sfh A /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/Versions/Current

SymLink /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/Headers Versions/Current/Headers (in target 'SwiftFlow' from project 'Arena-Playground')
    cd /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground
    /bin/ln -sfh Versions/Current/Headers /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/Headers

MkDir /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/Versions/A/Headers (in target 'SwiftFlow' from project 'Arena-Playground')
    cd /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground
    /bin/mkdir -p /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/Versions/A/Headers

MkDir /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/Versions/A/Resources (in target 'SwiftFlow' from project 'Arena-Playground')
    cd /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground
    /bin/mkdir -p /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/Versions/A/Resources

MkDir /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/Versions/A (in target 'SwiftFlow' from project 'Arena-Playground')
    cd /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground
    /bin/mkdir -p /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/Versions/A

SymLink /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/Modules Versions/Current/Modules (in target 'SwiftFlow' from project 'Arena-Playground')
    cd /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground
    /bin/ln -sfh Versions/Current/Modules /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/Modules

MkDir /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/Versions (in target 'SwiftFlow' from project 'Arena-Playground')
    cd /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground
    /bin/mkdir -p /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/Versions

MkDir /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework (in target 'SwiftFlow' from project 'Arena-Playground')
    cd /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground
    /bin/mkdir -p /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework

WriteAuxiliaryFile /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/SwiftFlow.SwiftFileList (in target 'SwiftFlow' from project 'Arena-Playground')
    cd /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground
    write-file /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/SwiftFlow.SwiftFileList

WriteAuxiliaryFile /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/SwiftFlow.LinkFileList (in target 'SwiftFlow' from project 'Arena-Playground')
    cd /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground
    write-file /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/SwiftFlow.LinkFileList

ProcessInfoPlistFile /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/Versions/A/Resources/Info.plist /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/Arena-Playground.xcodeproj/SwiftFlow_Info.plist (in target 'SwiftFlow' from project 'Arena-Playground')
    cd /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground
    builtin-infoPlistUtility /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/Arena-Playground.xcodeproj/SwiftFlow_Info.plist -producttype com.apple.product-type.framework -expandbuildsettings -platform macosx -o /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/SwiftFlow.framework/Versions/A/Resources/Info.plist

WriteAuxiliaryFile /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/SwiftFlow-OutputFileMap.json (in target 'SwiftFlow' from project 'Arena-Playground')
    cd /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground
    write-file /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/SwiftFlow-OutputFileMap.json

CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'SwiftFlow' from project 'Arena-Playground')
    cd /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground
    export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
    export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name SwiftFlow -O -whole-module-optimization -enforce-exclusivity=checked @/Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/SwiftFlow.SwiftFileList -DSWIFT_PACKAGE -DXcode -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -target x86_64-apple-macos10.10 -g -Xfrontend -serialize-debugging-options -enable-testing -swift-version 5 -I /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release -F /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -c -num-threads 4 -output-file-map /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/SwiftFlow-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/SwiftFlow.swiftmodule -Xcc -I/Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/swift-overrides.hmap -Xcc -I/Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/include -Xcc -I/Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/DerivedSources-normal/x86_64 -Xcc -I/Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/DerivedSources/x86_64 -Xcc -I/Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/DerivedSources -Xcc -DSWIFT_PACKAGE=1 -emit-objc-header -emit-objc-header-path /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/SwiftFlow-Swift.h -working-directory /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground

CompileSwift normal x86_64 (in target 'SwiftFlow' from project 'Arena-Playground')
    cd /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/.build/checkouts/SwiftFlow/Sources/SwiftFlow/Models/Arrow.swift /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/.build/checkouts/SwiftFlow/Sources/SwiftFlow/Models/ArrowDrawingPlan.swift /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/.build/checkouts/SwiftFlow/Sources/SwiftFlow/Models/Configs.swift /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/.build/checkouts/SwiftFlow/Sources/SwiftFlow/Models/EdgeOffsets.swift /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/.build/checkouts/SwiftFlow/Sources/SwiftFlow/Models/Enums/Direction.swift /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/.build/checkouts/SwiftFlow/Sources/SwiftFlow/Models/Enums/GraphDrawError.swift /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/.build/checkouts/SwiftFlow/Sources/SwiftFlow/Models/Enums/NodeShape.swift /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/.build/checkouts/SwiftFlow/Sources/SwiftFlow/Models/Graph.swift /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/.build/checkouts/SwiftFlow/Sources/SwiftFlow/Models/Node.swift /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/.build/checkouts/SwiftFlow/Sources/SwiftFlow/Models/Protocols.swift /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/.build/checkouts/SwiftFlow/Sources/SwiftFlow/Views/GraphView.swift /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/.build/checkouts/SwiftFlow/Sources/SwiftFlow/Views/Label.swift /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/.build/checkouts/SwiftFlow/Sources/SwiftFlow/Views/NodeView.swift /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/.build/checkouts/SwiftFlow/Sources/SwiftFlow/Views/UIBazierPath+Diamond.swift /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/.build/checkouts/SwiftFlow/Sources/SwiftFlow/Views/UIBezierPath+Arrow.swift /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/.build/checkouts/SwiftFlow/Sources/SwiftFlow/Views/UIKit+Direction.swift -supplementary-output-file-map /var/folders/h4/3scg9_c55pz5flqcj0dn156r0hg5jx/T/supplementaryOutputs-08001b -target x86_64-apple-macos10.10 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release -F /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -swift-version 5 -enforce-exclusivity=checked -O -D SWIFT_PACKAGE -D Xcode -serialize-debugging-options -Xcc -working-directory -Xcc /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground -Xcc -I/Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/swift-overrides.hmap -Xcc -I/Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Release/include -Xcc -I/Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/DerivedSources-normal/x86_64 -Xcc -I/Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/DerivedSources/x86_64 -Xcc -I/Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/DerivedSources -Xcc -DSWIFT_PACKAGE=1 -module-name SwiftFlow -num-threads 4 -o /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/Arrow.o -o /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/ArrowDrawingPlan.o -o /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/Configs.o -o /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/EdgeOffsets.o -o /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/Direction.o -o /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/GraphDrawError.o -o /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/NodeShape.o -o /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/Graph.o -o /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/Node.o -o /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/Protocols.o -o /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/GraphView.o -o /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/Label.o -o /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/NodeView.o -o /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/UIBazierPath+Diamond.o -o /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/UIBezierPath+Arrow.o -o /Users/thongchai.kolyutsaku/Work/Viki\ Projects/Arena-Playground/build/Arena-Playground.build/Release/SwiftFlow.build/Objects-normal/x86_64/UIKit+Direction.o
/Users/thongchai.kolyutsaku/Work/Viki Projects/Arena-Playground/.build/checkouts/SwiftFlow/Sources/SwiftFlow/Models/Arrow.swift:1:8: error: no such module 'UIKit'
import UIKit
       ^
"
finestructure commented 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.

devandanger commented 4 years ago

@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.

finestructure commented 4 years ago

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!

devandanger commented 4 years ago

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.

finestructure commented 4 years ago

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.