I was just trying to compile the <falling_balls> s...
# compose-ios
t
I was just trying to compile the falling_balls sample, and am getting below error. Any idea? 🤔 Stacktrace inside 🧵
Copy code
❯ ./gradlew tasks
Starting a Gradle Daemon (subsequent builds will be faster)

> Configure project :
Kotlin Multiplatform Projects are an Alpha feature. See: <https://kotlinlang.org/docs/reference/evolution/components-stability.html>. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.

The property 'kotlin.mpp.enableGranularSourceSetsMetadata=true' has no effect in this and future Kotlin versions, as Hierarchical Structures support is now enabled by default. It is safe to remove the property.

The property 'kotlin.native.enableDependencyPropagation=false' has no effect in this and future Kotlin versions, as Kotlin/Native dependency commonization is now enabled by default. It is safe to remove the property.

e: /Users/theapache64/Documents/projects/compose-jb/experimental/examples/falling-balls-mpp/build.gradle.kts:6:47: Unresolved reference: IOSDevices
e: /Users/theapache64/Documents/projects/compose-jb/experimental/examples/falling-balls-mpp/build.gradle.kts:155:9: Unresolved reference: bundleIdPrefix
e: /Users/theapache64/Documents/projects/compose-jb/experimental/examples/falling-balls-mpp/build.gradle.kts:156:9: Unresolved reference: projectName
e: /Users/theapache64/Documents/projects/compose-jb/experimental/examples/falling-balls-mpp/build.gradle.kts:157:9: Unresolved reference: deployConfigurations
e: /Users/theapache64/Documents/projects/compose-jb/experimental/examples/falling-balls-mpp/build.gradle.kts:158:13: Unresolved reference: simulator
e: /Users/theapache64/Documents/projects/compose-jb/experimental/examples/falling-balls-mpp/build.gradle.kts:160:17: Unresolved reference: device
e: /Users/theapache64/Documents/projects/compose-jb/experimental/examples/falling-balls-mpp/build.gradle.kts:160:26: Unresolved reference: IOSDevices
e: /Users/theapache64/Documents/projects/compose-jb/experimental/examples/falling-balls-mpp/build.gradle.kts:162:13: Unresolved reference: simulator
e: /Users/theapache64/Documents/projects/compose-jb/experimental/examples/falling-balls-mpp/build.gradle.kts:164:17: Unresolved reference: device
e: /Users/theapache64/Documents/projects/compose-jb/experimental/examples/falling-balls-mpp/build.gradle.kts:164:26: Unresolved reference: IOSDevices
e: /Users/theapache64/Documents/projects/compose-jb/experimental/examples/falling-balls-mpp/build.gradle.kts:166:13: Unresolved reference: connectedDevice
e: /Users/theapache64/Documents/projects/compose-jb/experimental/examples/falling-balls-mpp/build.gradle.kts:186:17: Unresolved reference: nativeApplication
e: /Users/theapache64/Documents/projects/compose-jb/experimental/examples/falling-balls-mpp/build.gradle.kts:187:5: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public fun KotlinMultiplatformExtension.targets(configure: Action<Any>): Unit defined in org.gradle.kotlin.dsl
e: /Users/theapache64/Documents/projects/compose-jb/experimental/examples/falling-balls-mpp/build.gradle.kts:188:5: Unresolved reference: distributions
e: /Users/theapache64/Documents/projects/compose-jb/experimental/examples/falling-balls-mpp/build.gradle.kts:189:9: Unresolved reference: targetFormats
e: /Users/theapache64/Documents/projects/compose-jb/experimental/examples/falling-balls-mpp/build.gradle.kts:190:9: Unresolved reference: packageName
e: /Users/theapache64/Documents/projects/compose-jb/experimental/examples/falling-balls-mpp/build.gradle.kts:191:9: Unresolved reference: packageVersion

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/theapache64/Documents/projects/compose-jb/experimental/examples/falling-balls-mpp/build.gradle.kts' line: 6

* What went wrong:
Script compilation errors:

  Line 006: import org.jetbrains.compose.experimental.dsl.IOSDevices
                                                          ^ Unresolved reference: IOSDevices

  Line 155:         bundleIdPrefix = "org.jetbrains"
                    ^ Unresolved reference: bundleIdPrefix

  Line 156:         projectName = "FallingBalls"
                    ^ Unresolved reference: projectName

  Line 157:         deployConfigurations {
                    ^ Unresolved reference: deployConfigurations

  Line 158:             simulator("IPhone8") {
                        ^ Unresolved reference: simulator

  Line 160:                 device = IOSDevices.IPHONE_8
                            ^ Unresolved reference: device

  Line 160:                 device = IOSDevices.IPHONE_8
                                     ^ Unresolved reference: IOSDevices

  Line 162:             simulator("IPad") {
                        ^ Unresolved reference: simulator

  Line 164:                 device = IOSDevices.IPAD_MINI_6th_Gen
                            ^ Unresolved reference: device

  Line 164:                 device = IOSDevices.IPAD_MINI_6th_Gen
                                     ^ Unresolved reference: IOSDevices

  Line 166:             connectedDevice("Device") {
                        ^ Unresolved reference: connectedDevice

  Line 186: compose.desktop.nativeApplication {
                            ^ Unresolved reference: nativeApplication

  Line 187:     targets(kotlin.targets.getByName("macosX64"))
                ^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
                    public fun KotlinMultiplatformExtension.targets(configure: Action<Any>): Unit defined in org.gradle.kotlin.dsl

  Line 188:     distributions {
                ^ Unresolved reference: distributions

  Line 189:         targetFormats(TargetFormat.Dmg)
                    ^ Unresolved reference: targetFormats

  Line 190:         packageName = "FallingBalls"
                    ^ Unresolved reference: packageName

  Line 191:         packageVersion = "1.0.0"
                    ^ Unresolved reference: packageVersion

17 errors

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at <https://help.gradle.org>

BUILD FAILED in 50s
cc @John O'Reilly @Arkadii Ivanov Any idea guys? 😬
j
hmm, not sure tbh. You can perhaps also try compose ios client in https://github.com/joreilly/PeopleInSpace just to see if anything different
👍 1
t
I just bumped the compose version to
1.2.0-alpha01-dev675
and it worked.
👍🏻 1
👍 2
a
Yes, you need to bump the Compose version
👍 1
👍🏻 1
m
@John O'Reilly can’t run compose ios
Copy code
PeopleInSpace/compose-ios/build/bin/uikitArm64/debugExecutable/compose-ios.kexe
error=2, No such file or directory
j
What gradle task are you running? Also what IDE/version are you using? fwiw I'm using Android Studio Bumblebee. Just tried for example
iosDeployIPhone8Debug
gradle task here and seems to work
m
it works, sorry. I was trying to run it with
compose-ios[uikitArm65]
run configuration
running that Gradle task works, Dolphin Canary 9
👍 1