Подспе c не найдено для `RNPDF` в` ../ node_modules / react-native-view-pdf` - PullRequest
0 голосов
/ 22 апреля 2020

Я создаю Azure конвейер сборки для реагирующего собственного приложения, и при установке модулей с помощью задачи cocoapod:

- task: CocoaPods@0
  inputs:
    forceRepoUpdate: true
    projectDirectory: '$(system.defaultWorkingDirectory)/ios'
  displayName: 'pod install using the CocoaPods'

Я получаю эту ошибку при запуске конвейера:

/usr/local/lib/ruby/gems/2.6.0/bin/pod --version
1.9.1
/usr/local/lib/ruby/gems/2.6.0/bin/pod install --repo-update --project-directory=/Users/runner/runners/2.166.2/work/1/s/ios
Updating local specs repositories
Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`
Analyzing dependencies
[!] No podspec found for `RNPDF` in `../node_modules/react-native-view-pdf`

[!] Automatically assigning platform `iOS` with version `9.0` on target `abcd` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
##[error]The process '/usr/local/lib/ruby/gems/2.6.0/bin/pod' failed with exit code 1
##[error]The 'pod' command failed with error: The process '/usr/local/lib/ruby/gems/2.6.0/bin/pod' failed with exit code 1

Я не могу найти причину этой ошибки, поэтому мне нужна помощь с этим. Мой подфайл выглядит так:

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'abcd' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for abcd
   pod 'Firebase/Core'
   pod 'Firebase/Messaging' 
 pod 'react-native-webview', :path => '../node_modules/react-native-webview'

 pod 'RNPDF', :path => '../node_modules/react-native-view-pdf'

 pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob'

 pod 'react-native-pdf', :path => '../node_modules/react-native-pdf'


 target 'abcdTests' do
    inherit! :search_paths
    # Pods for testing
  end

end
post_install do |installer|
        installer.pods_project.build_configurations.each do |config|
            config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
            config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
        end
end

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

1 Ответ

0 голосов
/ 22 апреля 2020

Я не нашел ответ, но я нашел обходной путь, я просто удалил две строки:

pod 'RNPDF', :path => '../node_modules/react-native-view-pdf'
pod 'react-native-webview', :path => '../node_modules/react-native-webview'

из podfile, раньше это было похоже:

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'SiteFuelBuyer' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for SiteFuelBuyer
   pod 'Firebase/Core'
   pod 'Firebase/Messaging' 
 pod 'RNPDF', :path => '../node_modules/react-native-view-pdf'
 pod 'react-native-webview', :path => '../node_modules/react-native-webview'

 pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob'

 pod 'react-native-pdf', :path => '../node_modules/react-native-pdf'


 target 'SiteFuelBuyerTests' do
    inherit! :search_paths
    # Pods for testing
  end

end
post_install do |installer|
        installer.pods_project.build_configurations.each do |config|
            config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
            config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
        end
end

и сейчас ,

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'SiteFuelBuyer' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for SiteFuelBuyer
   pod 'Firebase/Core'
   pod 'Firebase/Messaging' 

 pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob'

 pod 'react-native-pdf', :path => '../node_modules/react-native-pdf'


 target 'SiteFuelBuyerTests' do
    inherit! :search_paths
    # Pods for testing
  end

end
post_install do |installer|
        installer.pods_project.build_configurations.each do |config|
            config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
            config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
        end
end

всегда приветствуются и другие лучшие ответы.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...