rumax / react-native-PDFView

📚 PDF viewer for React Native
MIT License
300 stars 92 forks source link

iOS Build Error - Link RNPDF (arm64) #221

Closed Himatheja closed 1 year ago

Himatheja commented 2 years ago

Latest version of react-native-view-pdf is installed and I'm getting this error on Xcode 13.3 (newly installed) and this was not happening on Xcode 12.5.

Screenshot 2022-03-29 at 5 10 24 PM

"react-native": "0.63.3", "react-native-view-pdf": "0.12.2",

Also used tried with the latest version "react-native-view-pdf": "0.13.2" . Still facing the above issue screenshot attached.

Can anyone help me here?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

c-basso commented 2 years ago

Hi, i'm tried to add this code

pre_install do |installer|
    installer.pod_targets.each do |pod|
      if pod.name.eql?('RNPDF')
        def pod.build_type
          Pod::BuildType.static_library
        end
      end
    end
  end

to Podfile and it works

found solution here https://github.com/software-mansion/react-native-screens/issues/842#issuecomment-790498006

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.