I am trying to run the sample code shared by IBM for FIPS on device.
While running I am getting the below error.
Any idea why?
/Users/ctsmacminibtp5ne35/Library/Developer/Xcode/DerivedData/JSONStoreEncryptingSensitiveDataWithFIPSProject-1SampleIphone-cqxfkcnledkobshgrkgsluzvxofu/Build/Intermediates/JSONStoreEncryptingSensitiveDataWithFIPSProject-1SampleIphone.build/Debug-iphoneos/JSONStoreEncryptingSensitiveDataWithFIPSProject-1SampleIphone.build/Script-427B829D1393724500F223DC.sh:
line 8:
/Users/ctsmacminibtp5ne35/Desktop/NativeCode/JSONStoreEncryptingSensitiveDataWithFIPSProject-1/apps/Sample/iphone/native/:
is a directory DONE with script: (exitStatus=126)\n\n
/Users/ctsmacminibtp5ne35/Library/Developer/Xcode/DerivedData/JSONStoreEncryptingSensitiveDataWithFIPSProject-1SampleIphone-cqxfkcnledkobshgrkgsluzvxofu/Build/Intermediates/JSONStoreEncryptingSensitiveDataWithFIPSProject-1SampleIphone.build/Debug-iphoneos/JSONStoreEncryptingSensitiveDataWithFIPSProject-1SampleIphone.build/Script-427B829D1393724500F223DC.sh:
line 12: 1604 Segmentation fault: 11 /usr/local/bin/incore_macho
-exe "$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH" Command /bin/sh failed with exit code 126
Reference Code Link: http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v600/JSONStoreEncryptingSensitiveDataWithFIPSProject.zip
PDF link: http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v600/05_12_JSONStore_-_Encrypting_sensitive_data_with_FIPS.pdf
It appears that the incore_macho that comes bundled with the sample was built using an OSX version later than 10.7.5 (though I can't confirm what version it was built with at this time). You can build your own incore_macho file by doing the following steps:
1. Go to the following site:
http://openssl.com/fips/2.0/platforms/ios/
and download the following files:
ios-incore-2.0.1.tar.gz
setenv-reset.sh
setenv-darwin-i386.sh
2. Untar ios-incore-2.0.1.tar.gz. It will produce the following file structure:
openssl-fips-2.0.1/iOS
3. cd into the iOS folder
4. Run the two downloaded scripts:
. ./setenv-reset.sh
. ./setenv-darwin-i386.sh
5. Run 'make' inside the iOS file.
This will produce a new incore_macho file built for your system. You can confirm the utility works by running ./incore_macho.
For more in depth instructions, see page 124 of the FIPS User Guide
Related
I know that someone already asked this question but it isn`t up to date anymore. Most of the links are dead and the commands are not relevant anymore.
I have read these
Compile IOS program from linux commandline
How to cross-compile clang/llvm for iOS?
For example, I have been trying to compile silversearcher-ag for my iPhone 6 (jailbroken). This is the project link https://github.com/ggreer/the_silver_searcher.
I am targeting iOS 12.4.
These are the commands that I`ve tried
./configure CC=/home/growtopiajaw/Desktop/cctools-port-master/usage_examples/ios_toolchain/target/bin/arm-apple-darwin11-clang CXX=/home/growtopiajaw/Desktop/cctools-port-master/usage_examples/ios_toolchain/target/bin/arm-apple-darwin11-clang++ --host=arm-apple-darwin11
make
I am using cctools-port to cross compile the project. My compiled cctools toolchain is located under /home/growtopiajaw/Desktop/cctools-port-master/usage_examples/ios_toolchain/target and below is how the toolchain`s directory structure looks like
This is my configure log: https://del.dog/nugibonury
This is my make log:
CC src/ignore.o
In file included from src/ignore.c:11:
./src/options.h:7:10: fatal error: 'pcre.h' file not found
#include <pcre.h>
^~~~~~~~
1 error generated.
make: *** [Makefile:494: src/ignore.o] Error 1
This is my GitHub repository containing the cross compile toolchain
https://github.com/GrowtopiaJaw/arm-apple-darwin11
Apple does not ship PCRE. You need to get the headers and dylib/tbd files manually.
If you're using checkra1n or unc0ver, then the deb on the APT repo contains headers as well, so you could just use that.
If you plan to package this into an APT/dpkg file, make sure to add pcre as a dependency.
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 am working on ionic project. Everything was fine until I have not updated ionic and cordova for mac machine Mac OS X El Capitan 10.11.2. After updating this components I could not run ionic build ios and it was giving error so I tried to remove platform and add it again but it given following error and now I am unable to proceed
env: node\r: No such file or directory Error: Hook failed with error
code 127: /hooks/after_prepare/010_add_platform_class.js
How can I get over this one?
After doing some research, I come to a solution on following link
https://forum.ionicframework.com/t/error-hook-failed-with-error-code-127/12236
Issue
This is due to to OSX ^M line endings that were committed to my
project in this file. For some reason they seem to pop up in this file
only, although I have seen some SO posts where people are having the
problem on other node scripts.
check if the file has ^M line endings
cat -v FILE-NAME-WITH-ERROR
fix the file
tr -d '\r' < FILE-NAME-WITH-ERROR > FILE-NAME-WITH-ERROR.fix
check if problem fixed in resulting file from above
cat -v FILE-NAME-WITH-ERROR.fix
overwrite original file with fixed file
mv FILE-NAME-WITH-ERROR.fix FILE-NAME-WITH-ERROR
Not only after_platform_class.js file but error in other files like
install_plugin.js, register_plugin.js, deregister_plugin.js can also be resolved with this solution
Hey I started an app with yeomans angular-meteor generator.
Installed Xcode and followed steps to add ios sdk and plataform to my meteor project.
I have tried removing/adding ios platform.
I have tried changing ownership of my meteor project.
But still no luck. Here is the output of the error:
=> App running at: http://localhost:3000/
=> Errors executing Cordova commands:
While running Cordova app for platform iOS with options --emulator:
Error: Command failed:
/Users/donedgardo/marAzul/.meteor/local/cordova- build/platforms/ios/cordova/run --emulator
ENOENT, no such file or directory
'/Users/donedgardo/Library/Logs/CoreSimulator/6EB83B1C-FA07-4728-BE3A-CBA81E4707D1/system.log'
Error code 1 for command: ios-sim with args:
launch,/Users/donedgardo/marAzul/.meteor/local/cordova- build/platforms/ios/build/emulator/marAzul.app,--devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-6,--stderr,/Users/donedgardo/marAzul/.meteor/local/cordova-build/platforms/ios/cordova/console.log,--stdout,/Users/donedgardo/marAzul/.meteor/local/cordova-build/platforms/ios/cordova/console.log,--exit
at ChildProcess.exitCallback (/tools/utils/processes.js:137:23)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:820:12)
ExitWithCode:1
You should chek your mobile-config.js file content. Most or errors are linked to this : maybe your icons or splascreen are not accessible or are in a wrong format (prefer png).
Clean your mobile-config (or use the standard one from meteorJs) and test it.
Not able to build mupdf. I am getting the following error:
Generating cmap and font files
Apple broke Xcode external targets yet again, and I can't be bothered to fix it.
Run the 'make generate' command manually from now on!
If you see an error while running GEN, you've forgotten.
Building libraries for i386.
GEN generated/cmap_cns.h
/bin/sh: ./build/debug-ios-i386/cmapdump: No such file or directory
make: * [generated/cmap_cns.h] Error 127
Do what the error message tells you to do.
Open a terminal, cd to the mupdf directory, and run "make generate".
The same problem.After "make generate", I restarted Xcode, then build successfully.
I was able to generate the MuPDF library without using any make generate or shell script.
I wrote a small step-by-step tutorial on this post.
Cheers