Francis Mariano
01/22/2021, 11:45 AMpod install
command, until here with no problem.
However when I build the code on Xcode I get the following message:
Link /Users/engenharia/Library/Developer/Xcode/DerivedData/iosApp-ebvxupurowfpqseswfpszjmhtudk/Build/Products/Debug-iphonesimulator/iosApp.app/iosApp
ld: framework not found SnapKit
Ok, so I thought is necessary to add also the cocoapods library in common code. I did that normally with:
kotlin("native.cocoapods")
ios()
cocoapods {
summary = "Test"
homepage = "me"
ios.deploymentTarget = "10.0"
pod("SnapKit", "~> 5.0")
}
Ok, all the tasks were executed with success. Again in xcode after the build the code I get a new error message:
> Task :shared:cinteropSnapKitIosX64 FAILED
Exception in thread "main" java.lang.Error: /var/folders/l8/vxy_yfbx3wz2z0q_r5068d2h0000gn/T/tmp3849060542759213327.m:1:9: fatal error: module 'SnapKit' not found
In according to the messahe the task shared:cinteropSnapKitIosX64 failed, but it is executed with success in Android Studio.Artyom Degtyarev [JB]
01/22/2021, 12:00 PMFrancis Mariano
01/22/2021, 12:08 PMArtyom Degtyarev [JB]
01/22/2021, 1:32 PMKris Wong
01/22/2021, 2:16 PMFrancis Mariano
01/22/2021, 3:50 PMKris Wong
01/22/2021, 4:01 PMFrancis Mariano
01/22/2021, 4:51 PMyou are saying you added the pod as a dependency to your app's Podfile, and the module was not found in that case?
Yes, I know it is not have to do with KMM module, but when the KMM is added in an iOS project the framework is not found.
Please, let me know if there are some workaround to fix that. Thank youKris Wong
01/22/2021, 4:52 PMFrancis Mariano
01/22/2021, 5:06 PM*cd* "$SRCROOT/.." ./gradlew :shared:packForXCode -PXCODE_CONFIGURATION=${CONFIGURATION}
Podfile
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'
target 'iosApp' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for iosApp
pod 'Cartography', '~> 4.0'
target 'iosAppTests' do
inherit! :search_paths
# Pods for testing
end
target 'iosAppUITests' do
# Pods for testing
end
end
Kris Wong
01/22/2021, 5:09 PMFrancis Mariano
01/22/2021, 5:16 PMArtyom Degtyarev [JB]
01/22/2021, 5:33 PM$(inherited)
option in the Framework Search Path list. There was an issue on YouTrack about it some time ago.Francis Mariano
01/22/2021, 5:49 PMKris Wong
01/22/2021, 6:02 PMFrancis Mariano
01/22/2021, 6:03 PMArtyom Degtyarev [JB]
01/22/2021, 6:12 PMKris Wong
01/22/2021, 6:15 PMFrancis Mariano
01/22/2021, 6:30 PM