I've been following this tutorial on how to enable Parse Crash Reporting: https://www.youtube.com/watch?v=L4SMyHAVJgk
However, after I create the run script and build my app, I get the following error: /bin/sh failed with exit code 2
I'm not the best at understanding weird error codes like this so any help would be greatly appreciated!
Here is my run script:
export PATH=/usr/local/bin:$PATH
cd </Users/dom/MyApp/parse>
parse symbols "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"
Also, I'm using Xcode 6.1.1
Don't use "<>" so let it just:
cd /Users/dom/MyApp/parse
Related
After updating to Xcode 13.3.1 and updating comand line tools I cannot build my project. I get error:
Command PhaseScriptExecution failed with a nonzero exit code
python -mjson.tool ./someFileName.json
xargs: python: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
The script that failes is:
python -mjson.tool "${TARGET_BUILD_DIR}/${WRAPPER_NAME}/assets/someFileName.json"
It was working fine before. Even if I checkout at the commit that was working I still get the same message. This is why I suspect Xcode update.
Does anyone know how to solve this? What does the error mean? What does No such file or directory refer to? Is Python missing (cannot be found)? what is mjson.tool and is it missing? Is someFileName.json missing?
Any help is appreciated :)
Let me answer my own question here :)
MacOS 12.3.1 Monterey dropped support for Python 2 and it is removed from the OS. That is what
xargs: python: No such file or directory
was trying to say to me - python is missing. Fortunately Python 3 is installed and you can access it by calling python3 instead of just python.
Be ware because python2 code is not always runnable on Python3. Chances are you will need to fix (update) the code.
I was lucky and I managed to fix this just by replacing python with python3.
Alternatively you could try to install python2 by hand but this is not recommended.
I am using Oclint to generate code review report of application. for this I have used below link
http://oclint.org
I am using Xctool in the oclint. for installing xctool I have used this document:
http://docs.oclint.org/en/stable/guide/xctool.html
but whenever I write any thing by the help of path/to/xctool.sh terminal is showing the error
for ex
path/to/xctool.sh -help
Error :
-bash: path/to/xctool.sh: No such file or directory
Can any one help me I need to generate the code review report of my application but it is taking tooo much time of me and nothing is working.
Thanks
I have created new react-native project through terminal.
react-native init PlayWithAnimation
when I run the react-native app through Xcode. I got this error.
/bin/sh -c \"/Users/sumit/Desktop/React\ Native/RNN/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh\"
/Users/sumit/Desktop/React >Native/RNN/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh: line 2: cd: /Users/sumit/Desktop/React: No such file or directory
/Users/sumit/Desktop/React >Native/RNN/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh: line 3: /Users/sumit/Desktop/React Native/RNN/node_modules/react-native/React/scripts/ios-install-third-party.sh: No such file or directory
/Users/sumit/Desktop/React
Native/RNN/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh: line 3: exec: /Users/sumit/Desktop/React Native/RNN/node_modules/react-native/React/scripts/ios-install-third-party.sh: cannot execute: No such file or directory
The following build commands failed:
PhaseScriptExecution Install\ Third\ Party /Users/sumit/Desktop/React\
Native/RNN/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
(1 failure)
These are the version which I have used:
node v8.0.0
npm 5.0.3
react-native-cli: 2.0.1
react-native: 0.46.0
xcode 8.3.3
I have checked related to other stackoverflow Q & A but did't get proper solution.
Temporary Solution:
It works smoothly if I create react-native with version="0.44.0". But in version 0.45.0, 0.46.0, 0.47.0 builds are failed and same "double-conversion" issue is getting. And one more thing, when I create new project third-party directory is missing.
node_modules/react-native/ (missing third-party directory)
What would be the problem ?
Tried Solution 1:
I did the following steps:
download the files needed inside the .sh, put it in the ~/.rncache/.
copy the downloaded files into node_modules/react-native/third-party/, ran tar -zxf *** to each file.
build again. But not worked.
Tried Solution 2:
Handling third party build error on react-native 0.46x.
and tried with github issue.
I was really excited to finally get started with React Native but this bug absolutely kills my ability to proceed. I'd really appreciate if someone could help me out with this.
Got the solution from jerry han here: The life saver
Hi Bala, As you can see the error log, That error was from ‘WhiteSpace’ on your working path.
Real Path : /Users/sumit/Desktop/React\ Native/
On cd cmd log : /Users/sumit/Desktop/React:
You should rename your working path to ‘/Users/sumit/Desktop/react_native’.
That will be helpful for you.
With developing or operation work, you may be better not to use ‘space’ on the path.
For me, what worked was just updating the Code Signing preference in Xcode to something different and back again.
E.g. I have Automatically manage signing originally turned on. Turning that off and back on again seems to resolve this issue.
I need to create cordova iOS phoneGap plugin using swift. I don't have any idea about this.I visited the link - "http://cordova.apache.org/docs/en/latest/guide/platforms/ios/plugin.html"
But this seems vague to me, there not step by step detailed description. Please help me out with this.(Any tutorial with step by step instructions?)
Updated
I have used tutorial - "http://moduscreate.com/writing-a-cordova-plugin-in-swift-for-ios/" and followed the same steps with the same code but got stuck while running command "cordova build ios" with the following error -
** BUILD FAILED **
The following build commands failed:
CompileXIB TestApp/Classes/MainViewController.xib
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/kirti/testapp/platforms/ios/cordova/build-debug.xcconfig,-project,TestApp.xcodeproj,-target,TestApp,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,build,CONFIGURATION_BUILD_DIR=/Users/kirti/testapp/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/kirti/testapp/platforms/ios/build/sharedpch
Please help me out.I do not understand what's the problem is?
Thanks!!
I did this plugin in order to bring the swift support in Cordova projects :
https://github.com/akofman/cordova-plugin-add-swift-support
You can have a try with it and also read the following article which is a good tutorial.
I have solved the problem finally.The reason of error "Build Failed" was due to the version of swift.In swift 3, you need to add "#objc" before function name.In my case, it's like -
#objc(echo:)func echo(command: CDVInvokedUrlCommand) {
//...enter code here
..}
I am attempting to add Parse.com crash reporting to my application, but ran into an issue that I can't seem to find a fix to. Their documentation states you should setup a Run Script with the following script:
export PATH=/usr/local/bin:$PATH
cd (path to working directory i.e. - /Users/Username/Documents/ParseProject/parse)
parse symbols "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"
The issue I have with this is that it requires an explicit project directory to cd to. That results in obvious problems when using git and attempting to run the same script on another computer.
I have tried changing the cd to a few different options:
cd ${PROJECT_DIR}
cd "$PROJECT_DIR"
cd ./ParseProject/parse
cd ./parse
How can I get this to work so that it'll function across different computers?
I managed to get it to work and was very close before. I had to call cd "$PROJECT_DIR"/parse, which now makes sense in hindsight.
The final Run Script for ParseCrashReporting that I'm using is now this:
export PATH=/usr/local/bin:$PATH
cd "$PROJECT_DIR"/parse
parse symbols "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"