Vivek Modi
03/03/2022, 12:15 AMPod::Spec.new do |spec|
spec.name = 'kotlinmultiplatformsharedmodule'
spec.version = '1.0'
spec.homepage = '<https://github.com/vivek-modi/MultiplatformProject|https://github.com/vivek-modi/MultiplatformProject>'
spec.source = { :git => "Not Published", :tag => "Cocoapods/#{spec.name}/#{spec.version}" }
spec.authors = '<mailto:vivekmodi456@gmail.com|vivekmodi456@gmail.com>'
spec.license = ''
spec.summary = 'Some description for the Shared Module'
spec.vendored_frameworks = "build/cocoapods/framework/kotlinmultiplatformsharedmodule.framework"
spec.libraries = "c++"
spec.module_name = "#{spec.name}_umbrella"
spec.ios.deployment_target = '14.1'
spec.pod_target_xcconfig = {
'KOTLIN_PROJECT_PATH' => ':app:kotlinmultiplatformsharedmodule',
'PRODUCT_MODULE_NAME' => 'kotlinmultiplatformsharedmodule',
}
spec.script_phases = [
{
:name => 'Build kotlinmultiplatformsharedmodule',
:execution_position => :before_compile,
:shell_path => '/bin/sh',
:script => <<-SCRIPT
if [ "YES" = "$COCOAPODS_SKIP_KOTLIN_BUILD" ]; then
echo "Skipping Gradle build task invocation due to COCOAPODS_SKIP_KOTLIN_BUILD environment variable set to \"YES\""
exit 0
fi
set -ev
REPO_ROOT="$PODS_TARGET_SRCROOT"
"$REPO_ROOT/../../gradlew" -p "$REPO_ROOT" $KOTLIN_PROJECT_PATH:syncFramework \
-Pkotlin.native.cocoapods.platform=$PLATFORM_NAME \
-Pkotlin.native.cocoapods.archs="$ARCHS" \
-Pkotlin.native.cocoapods.configuration=$CONFIGURATION
SCRIPT
}
]
end
1. I have doubt in source, vendored_framework, libraries, module_name and what is pod_tarvet_xconfig.
2. Did I miss any other attributes for my ios project?
3. Can someone explain me how this pod is know where the framework is? If I add this pod file to different repository so how can I connect themArtyom Degtyarev [JB]
03/03/2022, 7:40 AMCan someone explain me how this pod is know where the framework is? If I add this pod file to different repository so how can I connect themThis question is unclear to me, the podspec should not be relocated away from the project. To add this pod as a dependency, you will write this podspec's file location into the Podfile of your iOS project. It is also described in the documentation
Vivek Modi
03/03/2022, 9:54 PMArtyom Degtyarev [JB]
03/04/2022, 8:58 AMVivek Modi
03/04/2022, 9:19 AMArtyom Degtyarev [JB]
03/04/2022, 10:34 AMVivek Modi
03/04/2022, 11:13 AMArtyom Degtyarev [JB]
03/04/2022, 12:35 PMvendored_framework
option points to, and depend on this repo from your iOS project. The error message in your stackoverflow clearly states that the CocoaPods was unable to locate the podspec(its three folders deep into the repository right now, so this might be expected).Vivek Modi
03/04/2022, 3:51 PMArtyom Degtyarev [JB]
03/05/2022, 9:21 AMVivek Modi
03/05/2022, 9:28 AM