[ad_1]
Requested
Considered
12 instances
Hey I’m studying Kmm with cocoapods integration. My studio is generated podfile routinely once I added the KMM module. Sometag I perceive however some usually are not. Can somebody information me use case of attributes and likewise did I miss any attributes for my ios challenge.
Pod::Spec.new do |spec|
spec.title = 'kotlinmultiplatformsharedmodule'
spec.model = '1.0'
spec.homepage = 'https://github.com/vivek-modi/MultiplatformProject'
spec.supply = { :git => "Not Revealed", :tag => "Cocoapods/#{spec.title}/#{spec.model}" }
spec.authors = 'vivekmodi456@gmail.com'
spec.license = ''
spec.abstract = 'Some description for the Shared Module'
spec.vendored_frameworks = "construct/cocoapods/framework/kotlinmultiplatformsharedmodule.framework"
spec.libraries = "c++"
spec.module_name = "#{spec.title}_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 construct process invocation due to COCOAPODS_SKIP_KOTLIN_BUILD surroundings 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
}
]
finish
- I’ve doubt in supply, vendored_framework, libraries, module_name and what’s pod_tarvet_xconfig.
- Did I miss some other attributes for my ios challenge?
- Can somebody clarify me how this pod is know the place the framework is? If I add this pod file to totally different repository so how can I join them.
My complete Kmm challenge
default
[ad_2]
