Coder Social home page Coder Social logo

Comments (13)

canitakeyourecode avatar canitakeyourecode commented on August 18, 2024 1

Так я уже пробывал не помогает !

pod_targets_for_disable_build_for_distribution = [
  'VGSLBaseTiny-framework',
  'VGSL_Fundamentals_tiny',
  'VGSL_Fundamentals_Tiny-framework',
  'VGSLBase-framework',
  'VGSL_Fundamentals-framework',
  'DivKit_LayoutKit-library',
  'DivKit_LayoutKitInterface-framework',
  'DivKit_LayoutKitInterface-library'
]

post_install do |installer|
  installer.pods_project.targets.each do |target|
  
    if pod_targets_for_disable_build_for_distribution.include?(target.name)
      target.build_configurations.each do |config|
        config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'NO'
      end
    end
  end
  
  installer.generated_projects.each do |project|
    project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target
      end
    end
    
    project.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target
    end
    
  end
end

Подскажите пути решения, тестовый проект я закинул на git что бы было проще разобраться
https://github.com/canitakeyourecode/myproject

from yandex-ads-sdk-ios.

mobile-ads-github avatar mobile-ads-github commented on August 18, 2024

Спасибо за Ваше обращение, для разбора создана задача с номером PCODESUP-3042. Мы ознакомимся и вернемся с ответом в течение 2 дней, возможно запросим дополнительную информацию.

Thank you for your message, a task with the number PCODESUP-3042 has been created for analysis. We will get acquainted and return with the answer within 2 days, we may request additional information.

from yandex-ads-sdk-ios.

mobile-ads-github avatar mobile-ads-github commented on August 18, 2024

В предоставленном примере отсувствует .xcodeproj файл, из-за чего не выполняется pod install

from yandex-ads-sdk-ios.

canitakeyourecode avatar canitakeyourecode commented on August 18, 2024

Прошу прощения, поправил залил

from yandex-ads-sdk-ios.

canitakeyourecode avatar canitakeyourecode commented on August 18, 2024

Подскажите получилось собрать ?

from yandex-ads-sdk-ios.

Kabudasay avatar Kabudasay commented on August 18, 2024

?? сколько ждать ответа ?

from yandex-ads-sdk-ios.

mobile-ads-github avatar mobile-ads-github commented on August 18, 2024

Добрый день! Мы изучаем проблему, вернемся с ответом на следующей неделе.

from yandex-ads-sdk-ios.

Kabudasay avatar Kabudasay commented on August 18, 2024

О, спасибо ... !
Мне это тоже актуально

from yandex-ads-sdk-ios.

canitakeyourecode avatar canitakeyourecode commented on August 18, 2024

Добрый вечер неделя уже вторая пошла

from yandex-ads-sdk-ios.

mobile-ads-github avatar mobile-ads-github commented on August 18, 2024

Добрый вечер! Мы продолжаем работать над решением проблемы и обязательно сообщим вам, как только оно будет найдено.

from yandex-ads-sdk-ios.

mobile-ads-github avatar mobile-ads-github commented on August 18, 2024

В Podfile необходимо указывать поды для тех таргетов, в которых их будете непосредственно использовать, а также:

  • pod_targets_for_disable_build_for_distribution должны включать ВСЕ транзитивные зависимости DivKit
  • явно указать use_frameworks! :linkage => :static
  • для таргета ProjectForYandexAds > Build Settings > выставить User Script Sandboxing > NO

Лучше всего иметь скрипт, который по имени пода будет собирать все его транзитивные зависимости - и уже для них отключать BUILD_LIBRARY_FOR_DISTRIBUTION, но как временное решение, можно указать все явно:

pod_targets_for_disable_build_for_distribution = [
  'DivKit',
  'DivKit_LayoutKit',
  'DivKit_LayoutKitInterface',
  'DivKit_Serialization',
  'VGSL_Fundamentals',
  'VGSL_Fundamentals_Tiny',
  'VGSLBase',
  'VGSLBaseTiny',
  'VGSLBaseUI',
  'VGSLCommonCore',
  'VGSLNetworking',
]
Полный дифф Podfile
diff --git a/Podfile b/Podfile
index 8872dc0..f057a42 100644
--- a/Podfile
+++ b/Podfile
@@ -7,26 +7,24 @@ deployment_target = '13.0'
# This is work wersion !
#pod 'YandexMobileAdsInstream', '~> 0.11.0'

-pod 'GoogleAds-IMA-iOS-SDK'
-pod 'YandexMobileAdsInstream'
-
-target 'ProjectForYandexAdsDemo' do
-  use_frameworks!
-end
-
target 'ProjectForYandexAds' do
-  use_frameworks!
+  use_frameworks! :linkage => :static
+  pod 'GoogleAds-IMA-iOS-SDK'
+  pod 'YandexMobileAdsInstream'
end

pod_targets_for_disable_build_for_distribution = [
-  'VGSLBaseTiny-framework',
-  'VGSL_Fundamentals_tiny',
-  'VGSL_Fundamentals_Tiny-framework',
-  'VGSLBase-framework',
-  'VGSL_Fundamentals-framework',
-  'DivKit_LayoutKit-library',
-  'DivKit_LayoutKitInterface-framework',
-  'DivKit_LayoutKitInterface-library'
+  'DivKit',
+  'DivKit_LayoutKit',
+  'DivKit_LayoutKitInterface',
+  'DivKit_Serialization',
+  'VGSL_Fundamentals',
+  'VGSL_Fundamentals_Tiny',
+  'VGSLBase',
+  'VGSLBaseTiny',
+  'VGSLBaseUI',
+  'VGSLCommonCore',
+  'VGSLNetworking',
]

post_install do |installer|

from yandex-ads-sdk-ios.

Kabudasay avatar Kabudasay commented on August 18, 2024

я сейчас это затестил вроде работает, но мне не понятно почему мы их уводим в статику

use_frameworks! :linkage => :static

from yandex-ads-sdk-ios.

mobile-ads-github avatar mobile-ads-github commented on August 18, 2024

Из-за того, что в некоторых подспеках явно не указано static_framework, то будет использоваться разные типы. Сейчас у нас поддержан только static_framework, а у каких-то транзитивных зависимостей, возможно, dynamic.

from yandex-ads-sdk-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.