Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

266
Visualizações
why are after a new react-native project lots of deprecation warnings?

steps to reproduce:

installed versions:

react 15.4.2
react-native 0.40.0

create a new Project

react-native init reactNativeTest

Running Project

1) Start Xcode
2) Open Project reactNativeTest
3) Run App

when I run it in xcode I get hellot of deprecation warnings, semantic issues and CoreFoundation Errors.

see screenshot

enter image description here

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

These are known issues in React Native 0.40 (reported in React Native github project as issue #11736) that occur for others (myself as well) on a fresh project.

As of 17 minutes ago, there are a number of pull requests which reduce some of the issues.

One commenter on the issue reports that "Those are warning and you can mostly ignore those warning. You project should run fine with those warning." I've confirmed this, but hopefully we'll get these warnings cleaned up soon.

over 4 years ago · Santiago Trujillo Relatório

0

Why

The OS Deployment target is way too low for many of these dependencies. Some are set to iphone 4! I created a bug in React Native with this same solution

Solution

  1. Copy function min_OSTarget_post_install into your Podfile
  2. Call the function within post_install
  3. pod install
  4. See hundreds of Xcode warnings dissapear

Code

def min_OSTarget_post_install(installer)
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      if Gem::Version.new('8.0') > Gem::Version.new(config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'])
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
      end
    end
  end
end
post_install do |installer|
  ...
  min_OSTarget_post_install(installer) // ADD THIS  LINE
end
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda