skip to Main Content

Trying to archive my RN project but having this error. Currently using RN 0.65.1 with React 17.0.2.
Tried adding libReact-hermes.a inside xcode "Link Binary With Libraries" but error still persists.

ld: library not found for -lReact-hermes

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '11.0'

target 'MyAppp' do

  config = use_native_modules!

  use_react_native!(
    :path => config[:reactNativePath],
    :hermes_enabled => true
  )

  use_flipper!()
end

3

Answers


  1. There is an option in Xcode to change the deployment target.

    Make sure that that is also marked as 11.0
    enter image description here

    Login or Signup to reply.
  2. change

    IPHONEOS_DEPLOYMENT_TARGET = 10.0
    

    to

    IPHONEOS_DEPLOYMENT_TARGET = 11.0
    

    in .pbxproj file

    same idea as @Amaan posted, but it didn’t change all the targets until edited all the values in the file.

    Login or Signup to reply.
  3. I have updated my Podfile content as below:

    platform :ios, min_ios_version_supported
    :hermes_enabled => flags[:hermes_enabled],
    

    to

    platform :ios, '12.4'
    :hermes_enabled => true,
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search