Я пытаюсь добавить зависимость pod для проекта open edx ios. Дело в том, что подфайл имеет своего рода скрипт post_install, работающий после установки pod. Модуль установлен, но «post_install» завершился ошибкой. После сбоя дальнейшая компиляция приводит к большому количеству ошибок «файлы не найдены».
Комментирование строк кода post_install, похоже, работает. Но, файлы не найдены, ошибка продолжает появляться. Не говоря уже о том, что установка дополнительных модулей также не удалась.
Это Podfile
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
source 'https://github.com/CocoaPods/Specs.git'
project 'edX.xcodeproj'
target 'edX' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# ignore all warnings from all pods
inhibit_all_warnings!
pod 'Analytics', '~> 3.6.10'
pod 'Segment-GoogleAnalytics', '~> 1.2.0'
pod 'Segment-Firebase', '=2.4.0'
pod 'Crashlytics', '~> 3.10.1'
pod 'DateTools', '~> 1.6.1'
pod 'Fabric', '~> 1.7.6'
pod 'GoogleSignIn', '~> 4.4.0'
pod 'Masonry', '~> 0.6'
pod 'NewRelicAgent', '~> 4.1'
pod 'FBSDKCoreKit', '~> 4.42.0'
pod 'FBSDKLoginKit', '~> 4.42.0'
pod 'Smartling.i18n', '~> 1.0'
pod 'Firebase/Core', '= 5.20.2'
pod 'Firebase/InAppMessagingDisplay'
pod 'Firebase/Analytics'
pod 'Firebase/Performance'
pod 'Branch', '= 0.25.5'
pod 'YoutubePlayer-in-WKWebView', '~> 0.3.0'
end
target 'edXTests' do
use_frameworks!
pod 'iOSSnapshotTestCase', '= 5.0.2'
pod 'OHHTTPStubs', '~> 4.0'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
for i in 0..target.headers_build_phase.files.length - 1
build_file = target.headers_build_phase.files[i]
build_file.settings = { 'ATTRIBUTES' => ['Public']}
end
target.build_configurations.each do |config|
config.build_settings['GCC_WARN_INHIBIT_ALL_WARNINGS'] = "YES"
end
end
end
[!] Произошла ошибка при обработке переустановки Podfile.
неопределенный метод `headers_build_phase 'для #
/ Users / meme / XCodeProjects / S-Edx-iOS / Podfile: 43: в block (3 levels) in from_ruby'
/Users/meme/XCodeProjects/S-Edx-iOS/Podfile:42:in
каждый' / Users / meme / XCodeProjects / S-Edx-iOS/ Подфайл: 42: в block (2 levels) in from_ruby'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.7.5/lib/cocoapods-core/podfile.rb:179:in
post_install! '/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/installer.rb:836:in run_podfile_post_install_hook'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/installer.rb:824:in
блок в run_podfile_post_install_hooks '/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5 / lib / cocoapods / user_interface.rb: 145: в message'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/installer.rb:823:in
run_podfile_post_install_hooks '/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/installer.rb:309: в block in create_and_save_projects'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/user_interface.rb:64:in
разделе '/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/installer.rb:290:in create_and_save_projects'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/installer.rb:281:in
generate_pods_project' /Library/Ruby/Gems/2.6.0 / gems / cocoapods-1.7.5 / lib / cocoapods / installer.rb: 159: в install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/command/install.rb:51:in
запустите '/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb: 334: в run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/command.rb:52:in
запустить '/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/bin/pod:55:in <top (required)>'
/usr/local/bin/pod:23:in
загрузить' / usr / local / bin /стручок: 23: в ''