joreilly / PeopleInSpace

Kotlin Multiplatform sample with SwiftUI, Jetpack Compose, Compose for Wear, Compose for Desktop, and Compose for Web clients along with Ktor backend.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Watch App preventing successful builds

RyPope opened this issue · comments

Showing All Issues
> Task :common:embedAndSignAppleFrameworkForXcode FAILED



FAILURE: Build failed with an exception.



* What went wrong:

Some problems were found with the configuration of task ':common:embedAndSignAppleFrameworkForXcode' (type 'FrameworkCopy').

  - In plugin 'org.jetbrains.kotlin.gradle.scripting.internal.ScriptingKotlinGradleSubplugin' type 'org.jetbrains.kotlin.gradle.plugin.mpp.apple.FrameworkCopy' property 'destinationDirectory' doesn't have a configured value.

    

    Reason: This property isn't marked as optional and no value has been configured.

    

    Possible solutions:

      1. Assign a value to 'destinationDirectory'.

      2. Mark property 'destinationDirectory' as optional.

    

    For more information, please refer to https://docs.gradle.org/8.4/userguide/validation_problems.html#value_not_set in the Gradle documentation.

  - In plugin 'org.jetbrains.kotlin.gradle.scripting.internal.ScriptingKotlinGradleSubplugin' type 'org.jetbrains.kotlin.gradle.plugin.mpp.apple.FrameworkCopy' property 'sourceFramework' doesn't have a configured value.

    

    Reason: This property isn't marked as optional and no value has been configured.

    

    Possible solutions:

      1. Assign a value to 'sourceFramework'.

      2. Mark property 'sourceFramework' as optional.

    

    For more information, please refer to https://docs.gradle.org/8.4/userguide/validation_problems.html#value_not_set in the Gradle documentation.



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



Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.



You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.



For more on this, please refer to https://docs.gradle.org/8.4/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.



BUILD FAILED in 17s

4 actionable tasks: 1 executed, 3 up-to-date

Some problems were found with the configuration of task ':common:embedAndSignAppleFrameworkForXcode' (type 'FrameworkCopy').

This happens when trying to install on a physical iPhone 12 Pro. I don't encounter this when trying to install on a simulator so I think it's an architecture issue, but I've been unable to resolve it on my own by messing around with build options.

Hmm, not sure what cause of that is...I've reproduced also by trying to archive. It must be a regression as I have previously tried to publish to app store (but was rejected ;) )

Definitely seems to be watchos related....if you remove watch target in Xcode then it builds fine.....think it's related to architectures being used.....possibly related to following but not certain https://youtrack.jetbrains.com/issue/KT-53107/Add-arm64-support-for-watchOS-targets-Xcode-14

I've just merged #265 which appears to address this....not certain it will run on physical watchos device as don't have one to test on but should at least not block doing archive build etc. @RyPope can you try again with latest code?

@joreilly back in business! thanks for digging into that