You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi shepeliev
Thanks for your big effort to bring this library. This had been very helpfully in the development of our application. I have installed the library in my KMP project, and for Android it works like a charm, but for iOS have been really imposible.
I have followed the instructions in the README (add cocoapods section, add the library like api, add Podfile) but his is not working. I made this in a new project without other libraries but this not works.
I have found many different errors and I investigate each of them, trying to fix it, but is a endless loop, where I get a new error each time.
This is one of the errors when I try to run the app from Android Studio.
ld: warning: search path '/Users/erickvelasco/Projects/KotlinProject/build/ios/Debug-iphonesimulator/XCFrameworkIntermediates/WebRTC-SDK' not found
ld: warning: search path '/Users/erickvelasco/Projects/KotlinProject/iosApp/../shared/build/xcode-frameworks/Debug/iphonesimulator17.4' not found
ld: framework 'WebRTC' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This is another different error when I try to run from XCode 15.3 (Opening the xcworkspace after install pods, after gradlew generate)
error: Following dependencies exported in the podDebugFramework binary are not specified as API-dependencies of a corresponding source set:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':composeApp:linkPodDebugFrameworkIosSimulatorArm64'.
> Following dependencies exported in the podDebugFramework binary are not specified as API-dependencies of a corresponding source set:
Files: [/Users/erickvelasco/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core-iossimulatorarm64/1.8.0/75aa968cd3c210038f6dc433a39d40e1ae97b744/kotlinx-coroutines-core.klib]
Files: [/Users/erickvelasco/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core-iossimulatorarm64/1.8.0/75aa968cd3c210038f6dc433a39d40e1ae97b744/kotlinx-coroutines-core.klib]
Files: [/Users/erickvelasco/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-iossimulatorarm64/0.23.1/52cfff5ee717bd4824115bb8609b13ed51be203e/atomicfu.klib, /Users/erickvelasco/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-iossimulatorarm64/0.23.1/577e14084dac4dbadcaf86db01f359b4939f5d5a/atomicfu-cinterop-interop.klib]
Files: [/Users/erickvelasco/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-iossimulatorarm64/0.23.1/52cfff5ee717bd4824115bb8609b13ed51be203e/atomicfu.klib, /Users/erickvelasco/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-iossimulatorarm64/0.23.1/577e14084dac4dbadcaf86db01f359b4939f5d5a/atomicfu-cinterop-interop.klib]
Please add them in the API-dependencies and rerun the build.
I don't know why build the iOS app is not possible, but I think I'm miss something. I wanna share my build.gradle.kts and my podfile, maybe can give me some light about what I'm missing.
# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'
target 'iosApp' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for iosApp
pod 'composeApp', :path => '../composeApp'
end
I really appreciate your help or if someone has this same error, maybe we can document how can fix it.
Thanks everyone
The text was updated successfully, but these errors were encountered:
Readme for iOS is really little bit outdated, however it still should work. I'm going to improve it soon.
For now, please try this sample project that I've just created from AS wizard. It can be built without problems and there is example of calling WebRTC KMP from Koltin at iOS target and from Swift.
Thanks for your support. With the demo you sent I make my project work. I've followed a step by step through all the configurations and files and it works.
If you want, I can make a pull request of README with iOS configuration updated. Let me know if it's fine for you.
Hi shepeliev
Thanks for your big effort to bring this library. This had been very helpfully in the development of our application. I have installed the library in my KMP project, and for Android it works like a charm, but for iOS have been really imposible.
I have followed the instructions in the README (add cocoapods section, add the library like api, add Podfile) but his is not working. I made this in a new project without other libraries but this not works.
I have found many different errors and I investigate each of them, trying to fix it, but is a endless loop, where I get a new error each time.
This is one of the errors when I try to run the app from Android Studio.
This is another different error when I try to run from XCode 15.3 (Opening the xcworkspace after install pods, after gradlew generate)
I don't know why build the iOS app is not possible, but I think I'm miss something. I wanna share my build.gradle.kts and my podfile, maybe can give me some light about what I'm missing.
And this is my Podfile
I really appreciate your help or if someone has this same error, maybe we can document how can fix it.
Thanks everyone
The text was updated successfully, but these errors were encountered: