I’m trying to setup Kotlin CocoaPods integration. ...
# multiplatform
o
I’m trying to setup Kotlin CocoaPods integration. But it shows the following error:
Copy code
> Task :picsum-core-application:syncFramework FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':picsum-core-application:syncFramework' (type 'FrameworkCopy').
  - Type 'org.jetbrains.kotlin.gradle.plugin.mpp.apple.FrameworkCopy' property 'sourceFramework' specifies directory '/Users/omico/Git/Omico/picsum/picsum/core/application/build/bin/iosSimulatorArm64/podDebugFramework/picsum_core_application.framework' which doesn't exist.

    Reason: An input file was expected to be present but it doesn't exist.

    Possible solutions:
      1. Make sure the directory exists before the task is called.
      2. Make sure that the task which produces the directory is declared as an input.

    For more information, please refer to <https://docs.gradle.org/8.9/userguide/validation_problems.html#input_file_does_not_exist> in the Gradle documentation.
Here is my build scan link https://gradle.com/s/h4wfeomtbzh6m And also my source code https://github.com/Omico/picsum/tree/ios
f
you’re issue is about cocoapods integration, you pod is generated but there is something wrong in the config
o
Hi @François, I'm new to iOS development. Could you tell me more about it?
f
I’m looking for it and comparing with the default template and check for some diff
I don’t find a solution but how about that picsum.kotlin.multiplatform.library? and not the official one org.jetbrains.kotlin.multiplatform ?
I’m not sure this library picsum.kotlin.multiplatform.library is really compatible with cocoapods plugin
f
Steal looking what is wrong, with a basic template there is no issue FYI, it’s now more common to distribute framework with Swift Package Manager than cocoapods
Cocoapods is now in maintenance mode, so people are slowly moving to the embedded package manager
o
First time I heard; thanks for telling me that. I will try to set it up without Cocoapods.
f
@Omico try remake the xcode project
I’m using xcode 16 and it’s not compatible with cocoapods (with new project)
create a new project and the basic configuration like the official template of android studio
I mean only the xcode project 😄
o
@François A huge thanks! Just have time to continue working on this project. Now the iOS target is working. https://github.com/Omico/picsum/compare/ios
🙌 1
f
So it was a bug of Xcode project, typical! 😄