diff --git a/ios/dart_vlc.podspec b/ios/dart_vlc.podspec index c672600b..e135d56b 100644 --- a/ios/dart_vlc.podspec +++ b/ios/dart_vlc.podspec @@ -13,6 +13,11 @@ Pod::Spec.new do |s| s.license = { :file => '../LICENSE' } s.author = { 'Your Company' => 'email@example.com' } s.script_phases = [{ + :name => 'Fetch submodules... only needed if using git in pubspec.yaml', + :show_env_vars_in_log => true, + :script => 'cd ${PODS_TARGET_SRCROOT}/.. && git submodule update --init --recursive', + :execution_position => :before_compile + }, { :name => 'Build Simulator lib', :show_env_vars_in_log => true, :script => 'cmake -Bdartvlc_core '\ diff --git a/macos/dart_vlc.podspec b/macos/dart_vlc.podspec index 208dfa60..2103ac88 100644 --- a/macos/dart_vlc.podspec +++ b/macos/dart_vlc.podspec @@ -13,12 +13,16 @@ A new flutter plugin project. s.license = { :file => '../LICENSE' } s.author = { 'Your Company' => 'email@example.com' } s.script_phases = [{ + :name => 'Fetch submodules... only needed if using git in pubspec.yaml', + :show_env_vars_in_log => true, + :script => 'cd ${PODS_TARGET_SRCROOT}/.. && git submodule update --init --recursive', + :execution_position => :before_compile + }, { :name => 'Build common lib', :show_env_vars_in_log => true, :script => 'cmake -Bdartvlc_core ${PODS_TARGET_SRCROOT}/../dartvlc -DCMAKE_INSTALL_PREFIX:PATH=${PODS_TARGET_SRCROOT}/deps && pwd && make -C dartvlc_core install', :execution_position => :before_compile - }, - { + }, { :name => 'Change VLCKit ID', :show_env_vars_in_log => true, :script => 'install_name_tool -id "@executable_path/../Frameworks/VLCKit.framework/Versions/A/VLCKit" ${PODS_ROOT}/VLCKit/VLCKit.framework/VLCKit',