TimOrtel/GRPC-Kotlin-Multiplatform

iOS build fails for iOSApp:linkDebugExecutableUikitX64

oianmol opened this issue · 13 comments

Undefined symbols for architecture x86_64:
"OBJC_CLASS$_GPBCodedInputStream", referenced from:
objc-class-ref in result.o
"OBJC_CLASS$_GRPCCall2", referenced from:
objc-class-ref in result.o
"OBJC_CLASS$_GRPCMutableCallOptions", referenced from:
objc-class-ref in result.o
"OBJC_CLASS$_GRPCRequestOptions", referenced from:
objc-class-ref in result.o
"OBJC_CLASS$_GPBCodedOutputStream", referenced from:
objc-class-ref in result.o
"_GPBComputeRawVarint32SizeForInteger", referenced from:
_cocoapods_Protobuf_GPBComputeRawVarint32SizeForInteger_wrapper88 in result.o
"_GPBComputeStringSize", referenced from:
_cocoapods_Protobuf_GPBComputeStringSize_wrapper54 in result.o
"_GPBWireFormatForType", referenced from:
_cocoapods_Protobuf_GPBWireFormatForType_wrapper45 in result.o
"_GPBComputeBoolSize", referenced from:
_cocoapods_Protobuf_GPBComputeBoolSize_wrapper53 in result.o
"_GPBComputeTagSize", referenced from:
_cocoapods_Protobuf_GPBComputeTagSize_wrapper64 in result.o
"_GPBComputeInt64Size", referenced from:
_cocoapods_Protobuf_GPBComputeInt64Size_wrapper49 in result.o
"_GPBWireFormatMakeTag", referenced from:
_cocoapods_Protobuf_GPBWireFormatMakeTag_wrapper41 in result.o
"_GRPCDefaultTransportImplList", referenced from:
_cocoapods_GRPCClient_GRPCDefaultTransportImplList_getter_wrapper7 in result.o
ld: symbol(s) not found for architecture x86_64

Task :iOSApp:linkDebugExecutableUikitX64 FAILED
:iOSApp:linkDebugExecutableUikitX64 (Thread[Execution worker for ':' Thread 2,5,main]) completed. Took 46.44 secs.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':iOSApp:linkDebugExecutableUikitX64'.

Compilation finished with errors

Sounds like you are missing the protobuf/grpc pods. Maybe it is some kind of sync issue?

Have you configured your build.gradle as stated in the documentation? If you still have problems, please post your build configuration here.

Yea tried that.. it fails with that error for me. Can you include an ios project and see if this is same for you ?

Can you please share a minimal project where this error occurs? Which xcode version are you using?

I also have an problem getting this library work on iOS. I created brand new kmp project. I tried to do everything from documentation but im getting

w: Multiplatform/Android-V1-SourceSetLayout: Multiplatform/Android-V1-SourceSetLayout is deprecated. Use Multiplatform/Android-V2-SourceSetLayout instead. 
To enable Multiplatform/Android-V2-SourceSetLayout: put the following in your gradle.properties: 
kotlin.mpp.androidSourceSetLayoutVersion=2

To suppress this warning: put the following in your gradle.properties:
kotlin.mpp.androidSourceSetLayoutVersion1.nowarn=true


> Task :wrapper

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

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

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 1s
1 actionable task: 1 executed
The client will now receive all logging from the daemon (pid: 68576). The daemon log file: /Users/beretis/.gradle/daemon/7.5.1/daemon-68576.out.log
Starting 13th build in daemon [uptime: 43 mins 16.242 secs, performance: 100%, non-heap usage: 67% of 256 MiB]
Closing daemon's stdin at end of input.
The daemon will no longer process any standard input.
Using 10 worker leases.
Now considering [/Users/beretis/work/gRPC-example] as hierarchies to watch
Watching the file system is configured to be enabled if available
File system watching is active
Starting Build
Settings evaluated using settings file '/Users/beretis/work/gRPC-example/settings.gradle.kts'.
Projects loaded. Root project using build file '/Users/beretis/work/gRPC-example/build.gradle.kts'.
Included projects: [root project 'gRPC-example']

> Configure project :
Evaluating root project 'gRPC-example' using build file '/Users/beretis/work/gRPC-example/build.gradle.kts'.
Using Kotlin Gradle Plugin gradle75 variant
Caching disabled for Kotlin DSL accessors for root project 'gRPC-example' because:
  Build cache is disabled
Skipping Kotlin DSL accessors for root project 'gRPC-example' as it is up-to-date.
kotlin scripting plugin: created the scripting discovery configuration: kotlinScriptDef
kotlin scripting plugin: created the scripting discovery configuration: testKotlinScriptDef
Kotlin/Native distribution: /Users/beretis/.konan/kotlin-native-prebuilt-macos-x86_64-1.8.0
Kotlin/Native distribution: /Users/beretis/.konan/kotlin-native-prebuilt-macos-x86_64-1.8.0
w: Multiplatform/Android-V1-SourceSetLayout: Multiplatform/Android-V1-SourceSetLayout is deprecated. Use Multiplatform/Android-V2-SourceSetLayout instead. 
To enable Multiplatform/Android-V2-SourceSetLayout: put the following in your gradle.properties: 
kotlin.mpp.androidSourceSetLayoutVersion=2

To suppress this warning: put the following in your gradle.properties:
kotlin.mpp.androidSourceSetLayoutVersion1.nowarn=true

All projects evaluated.
Analytics other plugin to proto: Unknown plugin type com.android.ide.gradle.model.builder.AndroidStudioToolingPlugin expected enum COM_ANDROID_IDE_GRADLE_MODEL_BUILDER_ANDROIDSTUDIOTOOLINGPLUGIN
Analytics other plugin to proto: Unknown plugin type org.gradle.api.plugins.JvmEcosystemPlugin expected enum ORG_GRADLE_API_PLUGINS_JVMECOSYSTEMPLUGIN
Analytics other plugin to proto: Unknown plugin type org.gradle.api.plugins.JavaBasePlugin$Inject expected enum ORG_GRADLE_API_PLUGINS_JAVABASEPLUGIN$INJECT
Analytics other plugin to proto: Unknown plugin type org.jetbrains.kotlin.gradle.scripting.internal.ScriptingKotlinGradleSubplugin expected enum ORG_JETBRAINS_KOTLIN_GRADLE_SCRIPTING_INTERNAL_SCRIPTINGKOTLINGRADLESUBPLUGIN
Analytics other plugin to proto: Unknown plugin type org.jetbrains.kotlin.gradle.scripting.internal.ScriptingGradleSubplugin expected enum ORG_JETBRAINS_KOTLIN_GRADLE_SCRIPTING_INTERNAL_SCRIPTINGGRADLESUBPLUGIN
Analytics other plugin to proto: Unknown plugin type org.jetbrains.kotlin.gradle.plugin.KotlinMultiplatformPluginWrapper expected enum ORG_JETBRAINS_KOTLIN_GRADLE_PLUGIN_KOTLINMULTIPLATFORMPLUGINWRAPPER
Analytics other plugin to proto: Unknown plugin type io.github.timortel.kotlin_multiplatform_grpc_plugin.GrpcMultiplatformPlugin expected enum IO_GITHUB_TIMORTEL_KOTLIN_MULTIPLATFORM_GRPC_PLUGIN_GRPCMULTIPLATFORMPLUGIN
Analytics other plugin to proto: Unknown plugin type org.jetbrains.kotlin.gradle.plugin.cocoapods.KotlinCocoapodsPlugin expected enum ORG_JETBRAINS_KOTLIN_GRADLE_PLUGIN_COCOAPODS_KOTLINCOCOAPODSPLUGIN
Analytics other plugin to proto: Unknown plugin type org.gradle.kotlin.dsl.provider.plugins.KotlinScriptRootPlugin expected enum ORG_GRADLE_KOTLIN_DSL_PROVIDER_PLUGINS_KOTLINSCRIPTROOTPLUGIN
Analytics other plugin to proto: Unknown plugin type org.gradle.kotlin.dsl.provider.plugins.KotlinScriptBasePlugin expected enum ORG_GRADLE_KOTLIN_DSL_PROVIDER_PLUGINS_KOTLINSCRIPTBASEPLUGIN
Task name matched 'prepareKotlinIdeaImport'
Task name matched 'prepareKotlinBuildScriptModel'
Selected primary task 'prepareKotlinIdeaImport' from project :
Selected primary task 'prepareKotlinBuildScriptModel' from project :
Tasks to be executed: [task ':commonizeNativeDistribution', task ':commonize', task ':generateDefGRPCClient', task ':generateDummyFramework', task ':podspec', task ':podGenIOS', task ':podSetupBuildGRPC-ProtoRPCIphoneos', task ':podBuildGRPC-ProtoRPCIphoneos', task ':cinteropGRPCClientIosArm64', task ':podGenOSX', task ':podSetupBuildGRPC-ProtoRPCMacosx', task ':podBuildGRPC-ProtoRPCMacosx', task ':cinteropGRPCClientNative', task ':generateDefProtobuf', task ':podSetupBuildProtobufIphoneos', task ':podBuildProtobufIphoneos', task ':cinteropProtobufIosArm64', task ':podSetupBuildProtobufMacosx', task ':podBuildProtobufMacosx', task ':cinteropProtobufNative', task ':podInstall', task ':podImport', task ':prepareKotlinIdeaImport', task ':prepareKotlinBuildScriptModel']
Tasks that were excluded: []
Resolve mutations for :commonizeNativeDistribution (Thread[Execution worker,5,main]) started.
Resolve mutations for :commonizeNativeDistribution (Thread[Execution worker,5,main]) completed. Took 0.003 secs.
:commonizeNativeDistribution (Thread[included builds,5,main]) started.

> Task :commonizeNativeDistribution UP-TO-DATE
Native Distribution Commonization: Acquire lock: /Users/beretis/.konan/kotlin-native-prebuilt-macos-x86_64-1.8.0/klib/commonized/1.8.0/.lock ...
Native Distribution Commonization: Lock acquired: /Users/beretis/.konan/kotlin-native-prebuilt-macos-x86_64-1.8.0/klib/commonized/1.8.0/.lock
Native Distribution Commonization: Calculating cache state for []
Native Distribution Commonization: All available targets are commonized already - Nothing to do
Native Distribution Commonization: Lock released: /Users/beretis/.konan/kotlin-native-prebuilt-macos-x86_64-1.8.0/klib/commonized/1.8.0/.lock
Caching disabled for task ':commonizeNativeDistribution' because:
  Build cache is disabled
Skipping task ':commonizeNativeDistribution' as it is up-to-date.
:commonizeNativeDistribution (Thread[included builds,5,main]) completed. Took 0.056 secs.
Resolve mutations for :commonize (Thread[Execution worker,5,main]) started.
Resolve mutations for :commonize (Thread[Execution worker,5,main]) completed. Took 0.0 secs.
:commonize (Thread[included builds,5,main]) started.

> Task :commonize UP-TO-DATE
Skipping task ':commonize' as it has no actions.
:commonize (Thread[included builds,5,main]) completed. Took 0.0 secs.
Resolve mutations for :generateDefGRPCClient (Thread[Execution worker,5,main]) started.
Resolve mutations for :generateDefGRPCClient (Thread[Execution worker,5,main]) completed. Took 0.0 secs.
:generateDefGRPCClient (Thread[included builds,5,main]) started.

> Task :generateDefGRPCClient UP-TO-DATE
Caching disabled for task ':generateDefGRPCClient' because:
  Build cache is disabled
Skipping task ':generateDefGRPCClient' as it is up-to-date.
:generateDefGRPCClient (Thread[included builds,5,main]) completed. Took 0.002 secs.
Resolve mutations for :generateDummyFramework (Thread[Execution worker,5,main]) started.
Resolve mutations for :generateDummyFramework (Thread[Execution worker,5,main]) completed. Took 0.0 secs.
:generateDummyFramework (Thread[included builds,5,main]) started.

> Task :generateDummyFramework UP-TO-DATE
Caching disabled for task ':generateDummyFramework' because:
  Build cache is disabled
Skipping task ':generateDummyFramework' as it is up-to-date.
:generateDummyFramework (Thread[included builds,5,main]) completed. Took 0.011 secs.
Resolve mutations for :podspec (Thread[Execution worker,5,main]) started.
Resolve mutations for :podspec (Thread[Execution worker,5,main]) completed. Took 0.0 secs.
:podspec (Thread[included builds,5,main]) started.

> Task :podspec UP-TO-DATE
Caching disabled for task ':podspec' because:
  Build cache is disabled
Skipping task ':podspec' as it is up-to-date.
:podspec (Thread[included builds,5,main]) completed. Took 0.002 secs.
Resolve mutations for :podGenIOS (Thread[Execution worker,5,main]) started.
Resolve mutations for :podGenIOS (Thread[Execution worker,5,main]) completed. Took 0.001 secs.
:podGenIOS (Thread[included builds,5,main]) started.

> Task :podGenIOS UP-TO-DATE
Caching disabled for task ':podGenIOS' because:
  Build cache is disabled
Skipping task ':podGenIOS' as it is up-to-date.
:podGenIOS (Thread[included builds,5,main]) completed. Took 0.002 secs.
Resolve mutations for :podSetupBuildGRPC-ProtoRPCIphoneos (Thread[Execution worker,5,main]) started.
Resolve mutations for :podSetupBuildGRPC-ProtoRPCIphoneos (Thread[Execution worker,5,main]) completed. Took 0.001 secs.
:podSetupBuildGRPC-ProtoRPCIphoneos (Thread[included builds,5,main]) started.

> Task :podSetupBuildGRPC-ProtoRPCIphoneos UP-TO-DATE
Caching disabled for task ':podSetupBuildGRPC-ProtoRPCIphoneos' because:
  Build cache is disabled
Skipping task ':podSetupBuildGRPC-ProtoRPCIphoneos' as it is up-to-date.
:podSetupBuildGRPC-ProtoRPCIphoneos (Thread[included builds,5,main]) completed. Took 0.001 secs.
Resolve mutations for :podBuildGRPC-ProtoRPCIphoneos (Thread[Execution worker,5,main]) started.
Resolve mutations for :podBuildGRPC-ProtoRPCIphoneos (Thread[Execution worker,5,main]) completed. Took 0.002 secs.
:podBuildGRPC-ProtoRPCIphoneos (Thread[included builds,5,main]) started.

> Task :podBuildGRPC-ProtoRPCIphoneos UP-TO-DATE
Caching disabled for task ':podBuildGRPC-ProtoRPCIphoneos' because:
  Build cache is disabled
Skipping task ':podBuildGRPC-ProtoRPCIphoneos' as it is up-to-date.
:podBuildGRPC-ProtoRPCIphoneos (Thread[included builds,5,main]) completed. Took 0.146 secs.
Resolve mutations for :cinteropGRPCClientIosArm64 (Thread[Execution worker,5,main]) started.
Resolve mutations for :cinteropGRPCClientIosArm64 (Thread[Execution worker,5,main]) completed. Took 0.0 secs.
:cinteropGRPCClientIosArm64 (Thread[Execution worker,5,main]) started.

> Task :cinteropGRPCClientIosArm64 FAILED
Resource missing. [HTTP GET: https://dl.google.com/dl/android/maven2/com/github/TimOrtel/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/0.2.1/grpc-multiplatform-lib-0.2.1.pom]
Resource missing. [HTTP GET: https://repo.maven.apache.org/maven2/com/github/TimOrtel/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/0.2.1/grpc-multiplatform-lib-0.2.1.pom]
Resource missing. [HTTP GET: https://jcenter.bintray.com/com/github/TimOrtel/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/0.2.1/grpc-multiplatform-lib-0.2.1.pom]
Resource missing. [HTTP GET: https://jitpack.io/com/github/TimOrtel/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/0.2.1/grpc-multiplatform-lib-0.2.1.pom]
:cinteropGRPCClientIosArm64 (Thread[Execution worker,5,main]) completed. Took 1.425 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':cinteropGRPCClientIosArm64'.
> Could not resolve all files for configuration ':iosArm64GRPCClientCInterop'.
   > Could not find com.github.TimOrtel.GRPC-Kotlin-Multiplatform:grpc-multiplatform-lib:0.2.1.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/github/TimOrtel/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/0.2.1/grpc-multiplatform-lib-0.2.1.pom
       - https://repo.maven.apache.org/maven2/com/github/TimOrtel/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/0.2.1/grpc-multiplatform-lib-0.2.1.pom
       - https://plugins.gradle.org/m2/com/github/TimOrtel/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/0.2.1/grpc-multiplatform-lib-0.2.1.pom
       - https://jitpack.io/com/github/TimOrtel/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/0.2.1/grpc-multiplatform-lib-0.2.1.pom
     Required by:
         project :

* Try:
> Run with --debug option to get more log output.
> Run with --scan to get full insights.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':cinteropGRPCClientIosArm64'.
	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:38)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
	at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:69)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:327)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:314)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:307)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:293)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:420)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:342)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':iosArm64GRPCClientCInterop'.
	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.rethrowFailure(DefaultConfiguration.java:1524)
	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.access$3700(DefaultConfiguration.java:159)
	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$DefaultResolutionHost.rethrowFailure(DefaultConfiguration.java:2174)
	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.visitContents(DefaultConfiguration.java:1496)
	at org.gradle.api.internal.file.AbstractFileCollection.getFiles(AbstractFileCollection.java:129)
	at org.gradle.api.internal.file.AbstractFileCollection.iterator(AbstractFileCollection.java:175)
	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.iterator(DefaultConfiguration.java:505)
	at org.gradle.api.internal.file.FilteredFileCollection.iterator(FilteredFileCollection.java:79)
	at org.gradle.internal.fingerprint.impl.DefaultFileCollectionSnapshotter$SnapshottingVisitor.visitCollection(DefaultFileCollectionSnapshotter.java:80)
	at org.gradle.api.internal.file.AbstractFileCollection.visitContents(AbstractFileCollection.java:380)
	at org.gradle.api.internal.file.AbstractFileCollection.visitStructure(AbstractFileCollection.java:375)
	at org.gradle.api.internal.file.CompositeFileCollection.lambda$visitContents$0(CompositeFileCollection.java:119)
	at org.gradle.api.internal.file.CompositeFileCollection$1.lambda$visitChildren$0(CompositeFileCollection.java:89)
	at org.gradle.api.internal.file.UnionFileCollection.visitChildren(UnionFileCollection.java:78)
	at org.gradle.api.internal.file.CompositeFileCollection$1.visitChildren(CompositeFileCollection.java:89)
	at org.gradle.api.internal.file.CompositeFileCollection.visitContents(CompositeFileCollection.java:119)
	at org.gradle.api.internal.file.AbstractFileCollection.visitStructure(AbstractFileCollection.java:375)
	at org.gradle.api.internal.file.CompositeFileCollection.lambda$visitContents$0(CompositeFileCollection.java:119)
	at org.gradle.api.internal.file.collections.UnpackingVisitor.add(UnpackingVisitor.java:64)
	at org.gradle.api.internal.file.collections.UnpackingVisitor.add(UnpackingVisitor.java:89)
	at org.gradle.api.internal.file.DefaultFileCollectionFactory$ResolvingFileCollection.visitChildren(DefaultFileCollectionFactory.java:333)
	at org.gradle.api.internal.file.CompositeFileCollection.visitContents(CompositeFileCollection.java:119)
	at org.gradle.api.internal.file.AbstractFileCollection.visitStructure(AbstractFileCollection.java:375)
	at org.gradle.api.internal.file.CompositeFileCollection.lambda$visitContents$0(CompositeFileCollection.java:119)
	at org.gradle.api.internal.tasks.PropertyFileCollection.visitChildren(PropertyFileCollection.java:48)
	at org.gradle.api.internal.file.CompositeFileCollection.visitContents(CompositeFileCollection.java:119)
	at org.gradle.api.internal.file.AbstractFileCollection.visitStructure(AbstractFileCollection.java:375)
	at org.gradle.internal.fingerprint.impl.DefaultFileCollectionSnapshotter.snapshot(DefaultFileCollectionSnapshotter.java:51)
	at org.gradle.internal.execution.fingerprint.impl.DefaultInputFingerprinter$InputCollectingVisitor.visitInputFileProperty(DefaultInputFingerprinter.java:131)
	at org.gradle.api.internal.tasks.execution.TaskExecution.visitRegularInputs(TaskExecution.java:322)
	at org.gradle.internal.execution.fingerprint.impl.DefaultInputFingerprinter.fingerprintInputProperties(DefaultInputFingerprinter.java:61)
	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.captureExecutionStateWithOutputs(CaptureStateBeforeExecutionStep.java:193)
	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.lambda$captureExecutionState$1(CaptureStateBeforeExecutionStep.java:141)
	at org.gradle.internal.execution.steps.BuildOperationStep$1.call(BuildOperationStep.java:37)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
	at org.gradle.internal.execution.steps.BuildOperationStep.operation(BuildOperationStep.java:34)
	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.captureExecutionState(CaptureStateBeforeExecutionStep.java:130)
	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.lambda$execute$0(CaptureStateBeforeExecutionStep.java:75)
	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:75)
	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:50)
	at org.gradle.internal.execution.steps.SkipEmptyWorkStep.executeWithNoEmptySources(SkipEmptyWorkStep.java:254)
	at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:91)
	at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:56)
	at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:32)
	at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:21)
	at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
	at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:43)
	at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:31)
	at org.gradle.internal.execution.steps.AssignWorkspaceStep.lambda$execute$0(AssignWorkspaceStep.java:40)
	at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:281)
	at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:40)
	at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:30)
	at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:37)
	at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:27)
	at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:44)
	at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:33)
	at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:76)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:139)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:128)
	at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:77)
	at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
	at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
	at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:69)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:327)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:314)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:307)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:293)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:420)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:342)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.github.TimOrtel.GRPC-Kotlin-Multiplatform:grpc-multiplatform-lib:0.2.1.
Searched in the following locations:
  - https://dl.google.com/dl/android/maven2/com/github/TimOrtel/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/0.2.1/grpc-multiplatform-lib-0.2.1.pom
  - https://repo.maven.apache.org/maven2/com/github/TimOrtel/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/0.2.1/grpc-multiplatform-lib-0.2.1.pom
  - https://plugins.gradle.org/m2/com/github/TimOrtel/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/0.2.1/grpc-multiplatform-lib-0.2.1.pom
  - https://jitpack.io/com/github/TimOrtel/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/0.2.1/grpc-multiplatform-lib-0.2.1.pom
Required by:
    project :


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

BUILD FAILED in 3s

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

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

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
8 actionable tasks: 1 executed, 7 up-to-date
Watched directory hierarchies: [/Users/beretis/work/gRPC-example]```

I have not tested this library on kotlin 1.8.0 so this will most likely be your issue. Please stick to kotlin 1.7.20 for now until I can figure out the migration steps.

Thanks for reply, I'll try that first thing tomorrow :)

It didn't help, I'm getting the same error. When I check the jitpack website it seems that it isnt built.

Maybe it has something to do with this?
jitpack/jitpack.io#3853

So I investigated a bit, tried to publishToMavenLocal and found out that the problem on my system is this:


* What went wrong:
Execution failed for task ':grpc-multiplatform-lib:podBuildGRPC-ProtoRPCIphoneos'.
> Executing of 'xcodebuild -project Pods.xcodeproj -scheme gRPC-ProtoRPC -sdk iphoneos -configuration Release' failed with code 65 and message:

  Command line invocation:
      /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project Pods.xcodeproj -scheme gRPC-ProtoRPC -sdk iphoneos -configuration Release

  User defaults from command line:
      IDEPackageSupportUseBuiltinSCM = YES

  Build settings from command line:
      SDKROOT = iphoneos16.1

  Computing target dependency graph and provisioning inputs

  Create build description
  Build description signature: 6ddd2af6f4d528dfdb0ed494440078f6
  Build description path: /Users/beretis/work/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/build/cocoapods/synthetic/IOS/Pods/../build/XCBuildData/6ddd2af6f4d528dfdb0ed494440078f6-desc.xcbuild

  note: Building targets in dependency order
  /Users/beretis/work/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/build/cocoapods/synthetic/IOS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'gRPC-RxLibrary' from project 'Pods')
  warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'gRPC-RxLibrary' from project 'Pods')
  /Users/beretis/work/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/build/cocoapods/synthetic/IOS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'gRPC' from project 'Pods')
  warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'gRPC' from project 'Pods')
  /Users/beretis/work/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/build/cocoapods/synthetic/IOS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'Protobuf' from project 'Pods')
  /Users/beretis/work/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/build/cocoapods/synthetic/IOS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'gRPC-Core' from project 'Pods')
  warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'gRPC-Core' from project 'Pods')
  /Users/beretis/work/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/build/cocoapods/synthetic/IOS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'gRPC-ProtoRPC' from project 'Pods')
  warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'gRPC-ProtoRPC' from project 'Pods')
  /Users/beretis/work/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/build/cocoapods/synthetic/IOS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'BoringSSL-GRPC' from project 'Pods')
  warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'BoringSSL-GRPC' from project 'Pods')
  /Users/beretis/work/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/build/cocoapods/synthetic/IOS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'gRPC-gRPCCertificates' from project 'Pods')
  /Users/beretis/work/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/build/cocoapods/synthetic/IOS/Pods/Pods.xcodeproj: error: Signing for "gRPC-gRPCCertificates" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'gRPC-gRPCCertificates' from project 'Pods')
  /Users/beretis/work/GRPC-Kotlin-Multiplatform/grpc-multiplatform-lib/build/cocoapods/synthetic/IOS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'abseil' from project 'Pods')
  warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'abseil' from project 'Pods')


  --- xcodebuild: WARNING: Using the first of multiple matching destinations:
  { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
  { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:231D6DDF-35C2-5C88-8EF6-8B8FEAEA963B }
  { platform:macOS, arch:x86_64, variant:Mac Catalyst, id:231D6DDF-35C2-5C88-8EF6-8B8FEAEA963B }
  { platform:macOS, arch:arm64, variant:Mac Catalyst, id:231D6DDF-35C2-5C88-8EF6-8B8FEAEA963B }
  { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
  { platform:macOS, variant:Mac Catalyst, name:Any Mac }
  { platform:iOS Simulator, id:1279A309-902F-4527-8999-43C422845FE1, OS:16.1, name:iPad (10th generation) }
  { platform:iOS Simulator, id:96E0ACA6-65F3-495F-B6FF-0BB44D2D5F6A, OS:16.1, name:iPad Air (5th generation) }
  { platform:iOS Simulator, id:A7C05036-8BF2-42CD-A864-4DD1B8117FD9, OS:16.1, name:iPad Pro (11-inch) (4th generation) }
  { platform:iOS Simulator, id:C1502327-F086-4659-B0B1-CD752C593034, OS:16.1, name:iPad Pro (12.9-inch) (6th generation) }
  { platform:iOS Simulator, id:8E0A59B6-D580-4215-860B-A73383F15065, OS:16.1, name:iPad mini (6th generation) }
  { platform:iOS Simulator, id:671763C9-CD41-4D58-9C26-1F0FBF743C35, OS:16.1, name:iPhone 12 }
  { platform:iOS Simulator, id:DF56CFC7-5480-485C-A6F0-3C04359FF8F9, OS:16.1, name:iPhone 14 }
  { platform:iOS Simulator, id:68EF2428-211B-4B6B-A49B-A9CA4F997D1F, OS:16.1, name:iPhone 14 Plus }
  { platform:iOS Simulator, id:99FF2D3A-971C-4E17-ADCD-A3C34BC9FF21, OS:16.1, name:iPhone 14 Pro }
  { platform:iOS Simulator, id:55BB3BD0-BE5C-4137-8140-2BD4F4ED9CFF, OS:16.1, name:iPhone 14 Pro Max }
  { platform:iOS Simulator, id:A546FB85-228D-4C82-8720-803FB063A26E, OS:16.1, name:iPhone SE (3rd generation) }
  ** BUILD FAILED ** 

When i try to run that command but with destination parameter to specify on which device it should run
xcodebuild -project Pods.xcodeproj -scheme gRPC-ProtoRPC -sdk iphoneos -configuration Release -destination "id=671763C9-CD41-4D58-9C26-1F0FBF743C35" it works. But I don't know how to force :grpc-multiplatform-lib:podBuildGRPC-ProtoRPCIphoneos to use -destination parameter

Can you try again with version 0.3.0?

Sure, I'll try it in the evening.

Any update on this?