Strange error encountered. I never faced this issue while building iOS project in Xcode.
Is anyone have any idea about this about how to solve this problem.
This might not be what yo want. But I ran into the same issue where xcode was complaining it can't spawn a process where it was trying to invoke a shell script. In my case, I was using react-native
The following helped for me. Hoping it will do for others who stumble upon this question as well.
change #/bin/sh to #!/bin/sh
https://github.com/luggit/react-native-config/issues/342#issuecomment-478015709
Related
I pull the last changes from git in my react-native project, when I run the application the process in XCode finished without errors, but when the application is opened gave me this error: "Native module cannot be null".
I have seen many issues in git and the configuration of Libraries is fine, I don't know where is came from this error.
If somebody has encountered this kind of error, please help me.
Thanks in advance
I am making a Cordova app for iOS on MacOS. When I try to run cordova emulate iOS it ends up returning the following error:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
What's strange is it says ** BUILD SUCCEEDED ** and it wasn't doing this before, and I don't think I changed anything. It's just started happening all of a sudden.
What is causing this?
I found a similar issue here. May be it gives you some ideas to solve the issue.
I have the same issue with you. The cause is that my cordova project path contains the special character ".", like /Users/somepath/path4.2.9/app
After I moved the project to a path without dot, everything works fine.
Suddenly I can't get my react native project to start on ios simulator or device. I don't know what happened in between. I tried to clear all cache, reinstalled the node modules, pod install, but nothing works. Can't find anything except that in the react native documentation that this is part of Systrace. I'm stumped.
I did run npm link yesterday - maybe it messed something up, but still after that building was not an issue.
I'm sure i messed something up myself, but hopefully someone has a hint.
Not sure this will help, but sometimes cleaning the ios build folder fixes weird things
This was a bit of a headache.
I also saw the error Module AppRegistry is not a registered callable module (calling runApplication). But that was not really the issue.
Whilst checking if android build has similar problem, I found that the module react-native-animated-linear-gradient had two issues
It gave problems with ReactNativeFeatureFlags.js.
It had a duplicate definition of react-native (as if it also included the whole react-native project through its package.json
By continuing to remove this package completely, unlinking it manually, reinstalling npm packages and cleaning my npm cache I finally got it to work again, both on android and ios.
I wasn't using that package, but due to lingering in my package.json and running npm update it went and broke something in my setup I suspect. If only I had removed it completely after not testing and deciding not using it.
I hope it helps people giving direction if you suddenly see installreacthook not found. It costs me 4 hours to figure out.
I keep trying to run my Xcode project (named "ppsideloader") and it keeps giving me 2 errors. Also I Cleaned and Built many times then tried to run, but still same problem.
First Error:
/Users/myUser/Library/Developer/Xcode/DerivedData/ppsideloader-flikuhbwvklweghesxwygrfiylum/Build/Products/Debug-iphoneos/ppsideloader.app/*.dylib: No such file or directory
Second Error:
Command /bin/sh emitted errors but did not return a nonzero exit code to indicate failure
My Build Phases:
I don't know what to do, I tried almost everything. Can someone please help me ?
#Emm...I also faced Same Issue. But the issue is fixed when i re install xcode and restarted my machine.
Try the Same i hope that it will be helpfull to you
I'm trying to make a simple react-native app with redux and redux-saga tie-ins. Unfortunately, when I try to run the app (whether using react-native run-ios or running through Xcode, I get the following error:
Strangely enough, when I ported things like the Counter example for redux-saga to react-native or other examples I don't have this issue. I'm wondering if someone could help point to where things could be going wrong?
So turns out I just needed to link some more libraries together.
Reinstalling these components helped:
npm install --save react-native
and
npm install --save react-native-controllers
followed by rnpm link fixed the issue
Here is another solution based on my own failure:
Through rechecking iOS installation doc, I found out some tricky differences in the #4 requirement:
It clearly says project row instead of target row. This time I selected 'project' row and add do what the #4 instruction told to do. Then it solved the problem. Hopefully my solution will be found helpful.
I faced a similar problem and it was because somehow the setup I made for the Xcode project were lost, so following the instructions I made them again and the problem was solved.