[ad_1]
Asked
Viewed
14 times
I was learning react native and got following build error:
abdullahanjum@Abdullahs-MBP abc % npx react-native run-ios
warn Multiple Podfiles were found: ios/Podfile,vendor/bundle/ruby/2.7.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/Podfile. Choosing ios/Podfile automatically. If you would like to select a different one, you can configure it via "project.ios.sourceDir". You can learn more about it here: https://github.com/react-native-community/cli/blob/master/docs/configuration.md
info Found Xcode workspace "abc.xcworkspace"
info Building (using "xcodebuild -workspace abc.xcworkspace -configuration Debug -scheme abc -destination id=8FAE3EDB-BEA7-43D5-91E6-D86C7CC06DE9")
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening abc.xcworkspace.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace abc.xcworkspace -configuration Debug -scheme abc -destination id=8FAE3EDB-BEA7-43D5-91E6-D86C7CC06DE9
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
Prepare packages
Computing target dependency graph and provisioning inputs
Create build description
Build description signature: 0fd45f98a37fa40a07efa692e5d3928c
Build description path: /Users/abdullahanjum/Library/Developer/Xcode/DerivedData/abc-chnflsiuohmtbfbkivqmctzieppr/Build/Intermediates.noindex/XCBuildData/0fd45f98a37fa40a07efa692e5d3928c-desc.xcbuild
note: Building targets in dependency order
error: unable to attach DB: error: accessing build database "/Users/abdullahanjum/Library/Developer/Xcode/DerivedData/abc-chnflsiuohmtbfbkivqmctzieppr/Build/Intermediates.noindex/XCBuildData/build.db": database is locked Possibly there are two concurrent builds running in the same filesystem location.
warning: Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'abc' from project 'abc')
warning: Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'abc' from project 'abc')
** BUILD FAILED **
Abdullah Ahsan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
default
[ad_2]