wonday / react-native-pdf

A <Pdf /> component for react-native
MIT License
1.6k stars 557 forks source link

iOS 18 build failed #888

Open Arjit0762 opened 1 day ago

Arjit0762 commented 1 day ago

The following build commands failed: CompileC /Users/expo/Library/Developer/Xcode/DerivedData/ZoopDevelop-fgqtadscqcoewycwvmcbkgxxvcmh/Build/Intermediates.noindex/ArchiveIntermediates/ZoopDevelop/IntermediateBuildFilesPath/Pods.build/Debug-iphoneos/react-native-pdf.build/Objects-normal/arm64/RNPDFPdfView.o /Users/expo/workingdir/build/node_modules/react-native-pdf/ios/RNPDFPdf/RNPDFPdfView.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-pdf' from project 'Pods') Archiving workspace ZoopDevelop with scheme ZoopDevelop (2 failures) Exit status: 65 +---------------------------------------+ | Build environment | +-------------+-------------------------+ | xcode_path | /Applications/Xcode.app | | gym_version | 2.225.0 | | sdk | iPhoneOS18.1.sdk |

This is the error which I got while making a build in iOS (New Architecture) "expo": "^52.0.8", "react-native": "0.76.2", "react-native-pdf": "6.7.5", "react-native-blob-util": "0.19.11", "@config-plugins/react-native-blob-util": "8", "@config-plugins/react-native-pdf": "8",

This is causing me blocker to move my app to new architecture

iyansr commented 20 hours ago

Same issue, but i run with sdk 51 and new arch enabled

iyansr commented 20 hours ago

After i added this https://github.com/wonday/react-native-pdf/pull/832 It worked again

enableDoubleTapZoom: ?boolean,

Arjit0762 commented 14 hours ago

@iyansr Build is now created, but when I double tapped on pdf file to zoom, my app crashed

mohamedhelmi70 commented 7 hours ago

After i added this #832 It worked again

enableDoubleTapZoom: ?boolean,

search for files with name RNPDFPdfViewProps. then add this line. bool enableDoubleTapZoom{true}; // Default value: true