I created an application on Windows that ran and even went up to the Play Store. This is a project for the git repository (bitbucket) and downloaded on the MacBook. The first time, the application ran normally on an iOS simulator, but it was not recognized as fonts that I used and as I'm new to working with Mac and iOS, I was unable to resolve it and ended up deleting the repository and downloading again. From that moment or application no longer runs on the macbook running reat-native run-ios.
I've already followed the guidelines here but I still haven't got anything yet. Here is the error that appears:
The following build commands have failed:
Bundle PhaseScriptExecution \ React \ Native \ code \ and \ images /Users/macbook/Library/Developer/Xcode/DerivedData/XXXXXXXXX-chaxzhqkuszomdaeoykspwqsyqbb/Build/Intermediates.noindex/doctorfitStudents.buildXXDebug1XX.
I tried to run in Xcode and I get 3 errors:
ios /../ node_modules / react-native / scripts / .packager.env: permission denied
The / bin / sh command issued errors, but did not return a non-zero exit code to indicate failure
../.node_modules/react-native/scripts/react-native-xcode.sh: this file or directory does not exist
"react": "~16.9.0",
"react-native": "~0.61.5",
Related
**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 app.xcworkspace.
**error**: unable to attach DB: error: accessing build database "/Users/user/Library/Developer/Xcode/DerivedData/app-cdawdoxdzwfdgueqnyshuhonxndw/Build/Intermediates.noindex/XCBuildData/build.db": database is locked Possibly there are two concurrent builds running in the same filesystem location.
tried almost everything
build cleans, reinstalling pods etc
react native version: 0.67.3
Xcode version: 13.4.1
After almost one day of debugging this issue, came to know about this article which solves the problem for me, although article has more than one steps but I just tried the last one and it worked, mentioning the steps below,
rm -rf ~/Library/Developer/Xcode/DerivedData/
cd ios
pod deintegrate
pod update
cd..
yarn run ios or npm run ios
I downloaded a branch from my github project and when I run the simulator, it runs but the app displays this error.
I have already tried removing the build folder and re running it and I have done npm install when the error displays and running "react-native run-ios". I don't know what to do.
Open additional terminal in the same folder. Run this command.
react-native start --reset-cache
Once the package manager is ready, go back to your first terminal and run your app again.
react-native run-ios
I have recently started with React-Native and wanted to try a bluetooth connectivity library (https://github.com/innoveit/react-native-ble-manager)
Steps to create app and run on device:
react-native init myBluetoothHandler
cd myBluetoothHandler
npm i --save react-native-ble-manager
When I do this I see this log:
react-native link react-native-ble-manager
Which fails with this error log:
Just for a hit and try I ran step 3 again and this printed. And after that link command also worked.:
But I am not able to run the project from Xcode on my device. I see this error:
Same happened to me when I tried a different library: https://github.com/Polidea/react-native-ble-plx/issues/388
Use react-native init <project_name> --version 0.59.0. Do not use rc versions.
When i run my react native app in Xcode, it shows an error "boost/config/user.hpp' file not found" . And also when i run the application using the command "react-native run-ios" ,I got an error in terminal ,
"Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/sample2.app/Info.plist" Print: Entry, ":CFBundleIdentifier", Does Not Exist " .
How can i solve this. I am a bigginer in react native app development.
It's related to this boost package: ./node_modules/react-native/third-party/boost_1_63_0/boost/config
Remove third-party folder from path: /node_modules/react-native/third-party/
Re-run the Xcode project.
Do you have any updates to run on your machine/xcode? I had this issue when I had pending macOS Sierra updates to install.
I installed the updates which caused my mac to restart, I then ran npm install and tried to build again and it succeeded.
Versions:
macOS Sierra: 10.12.6
Xcode: 8.3.3
react: 16.0.0-alpha.12
react-native: 0.47.1
Some packages are not installed properly. Just delete node-modules forder with rm -rf node-modules and run again (npm install or yarn install).
I archive a binary with Xcode 7, then I validate the binary and when I try to submit to the iOS Appstore, I get the following errors:
Could not make parent directory for: /Users/DEC/.itmstransporter/softwaresupport/bin/Frameworks/MZXMLMarshalling.framework/Resources/Info.plist
Could not configure software support.
An exception has occurred: /Users/DEC/.itmstransporter/softwaresupport/bin/Frameworks/MZXMLMarshalling.framework/Resources/Info.plist (No such file or directory)
The session's status is FAILED and the error description is 'failed to open ssh session. (16)'
The app runs perfectly in the iOS simulator and on the iPhone 5(iOS 8.3)
and it doest seems like there is an error in the code.
I also try the uploading with the application loader but the same happens.
I think it could be something about xcode 7 or ios 9 because i didnt have this problems before.
Thanks for your help.
This seems to solve the issue:
$ cd ~/.itmstransporter
$ rm update_check*
$ mv softwaresupport softwaresupport.bak
$ cd UploadTokens
$ rm *.token
(from http://blog.csdn.net/sqc3375177/article/details/49175691)