I am using xcode to build android app. in azure devops pipeline; on build i am getting this error:
▸ Compiling PdfManager.m❌ /Users/runner/runners/2.166.3/work/1/s/node_modules/react-native-pdf/ios/RCTPdf/PdfManager.m:16:9: 'React/RCTUtils.h' file not found#import "React/RCTUtils.h" ^~~~~~~~~~~▸ Compiling RCTPdfPageViewManager.m▸ Compiling RCTPdfPageView.m▸ Compiling RCTPdfView.m** BUILD FAILED **The following build commands failed: CompileC /Users/runner/Library/Developer/Xcode/DerivedData/helloapp-awmfiqdyvoywmpfazxztxqjlmzar/Build/Intermediates.noindex/Pods.build/Release-iphoneos/react-native-pdf.build/Objects-normal/armv7/PdfManager.o /Users/runner/runners/2.166.3/work/1/s/node_modules/react-native-pdf/ios/RCTPdf/PdfManager.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler(1 failure)##[error]Error: /usr/bin/xcodebuild failed with return code: 65
Unable to find cause of this, need some help, my podfile is:
# Uncomment the next line to define a global platform for your project# platform :ios, '9.0'target 'helloapp' do # Uncomment the next line if you're using Swift or would like to use dynamic frameworks # use_frameworks! # Pods for helloapp 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 'helloappTests' do inherit! :search_paths # Pods for testing endendpost_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" endend
and my azure pipeline xcode yaml task:
- task: Xcode@5 inputs: workingDirectory: 'ios' actions: 'build' scheme: 'helloapp' sdk: 'iphoneos' configuration: 'Release' xcWorkspacePath: '**/helloapp.xcworkspace' xcodeVersion: 'default' packageApp: true signingOption: 'manual' signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)' provisioningProfileUuid: '$(APPLE_PROV_PROFILE_UUID)' args: '-UseModernBuildSystem=0'
if require any more details please ask in question.