Hi there, I'm snagged after a fresh install today:
$ react-native init AwesomeProject
$ react-native run-ios
Full log:
https://gist.github.com/andresn/1f35d718da9fc57542bb399460f2efd0#file-gistfile1-txt-L109
[email protected]
[email protected]
XCode Beta 8.0
Mac OS X El Capitan v.10.11.5
I think this is specific to having Xcode-beta 8.0 installed, because running the app through beta-7.3 does work.
I had similar experience today. But it was on macOS beta. Build failed on both XCode 7.3.1 (7D1014) and 8.0 beta 2 (8S162m). I did try $ react-native run-ios but got error:
ERROR ENOENT: no such file or directory, lstat '/AwesomeProject/ios/build/ModuleCache/3F1D94PC0NUP2/AVFoundation-1M2ASOEW37WIZ.pcm-53d428b3'
{"errno":-2,"code":"ENOENT","syscall":"lstat","path":"/AwesomeProject/ios/build/ModuleCache/3F1D94PC0NUP2/AVFoundation-1M2ASOEW37WIZ.pcm-53d428b3"}
Error: ENOENT: no such file or directory, lstat '/AwesomeProject/ios/build/ModuleCache/3F1D94PC0NUP2/AVFoundation-1M2ASOEW37WIZ.pcm-53d428b3'
at Error (native)
macOS: 10.12 Beta (16A239j)
react-native-cli: 1.0.0
react-native: 0.29.0
Same two errors on both versions of XCode under Semantic Issue, when I tried build with XCode:
Edit: Sorry, I forgot to mention that I was not able to install watchman.
+1 on this, getting almost exactly the same output as OP 馃槶
Could be related to https://github.com/facebook/react-native/issues/8108?
I'm also facing this error :(
same :(
I'm running into this issue as well. I'm on Xcode Version 8.0 beta 2. And OS X 10.11.5. I've got almost the same log too
Same issue here :(
Same issue here:(
Same issue here:(
Same issue here on Xcode version 8.0 beta 3
I uninstalled Xcode version 8.0 beta 3 and installed 7.3 and now everything works fine.
Just doubleclick on the RCTWebSocket project in your navigator and remove the flags under _build settings_ > _custom compiler flags_
Your project should compile just fine now!
@TimBroddin Thank you!!
Having the same issue, but on XCode 7.2.1
I think the fact that upgrading XCode fixes this for some people has more to do with temporary files being retained somewhere and the installer deletes them.
What is the -proper- way to clear a working directory and rerun a build with react-native? I'm having problems with rebuilding and having components that have been deleted or renamed still causing errors, which means that some part of the build is not removing intermediate results between builds.
Thanks for this!!
How to upgrade to this version o this code in a "old" project @javache?
We don't release patches for old releases, but you can apply these changes yourself.
Oh thanks. I'll try
Thanks @TimBroddin - it worked for me too!
@TimBroddin your the man!
I feel so embarrassed to be posting this. I can't figure out how to delete those flags. I tried hitting the delete key, right clicking on them, checking the file menu, but can't find anything. Someone please put me out of my misery.
Oh, I figured it out. It was the values inside of those menus. Not the items themselves.
@TimBroddin + 1
thank you,this is fine~
thank you @TimBroddin
@TimBroddin Thank you so much.
馃憤
:+1:
If we upgrade our React Native version after applying the above fix to remove the flags, will the upgrade restore the new patch for 0.34 properly?
Thank you @TimBroddin
@TimBroddin That did the trick, thanks.
If you're like me, and trying to get FirebaseReactNativeSample to work, you need to go to FirebaseReactNativeSample > Libraries > RCTWebsocket.xcodeproj and then search in the right side for "custom", and you'll find it. It worked for me after doing that :)
@TimBroddin you are such a hero.
I updated to Sierra, initialised a new rn project, removed the flags and I still get the error: Application AppName has not been registered. This is either due to a require() error during initialisation or failure to call AppRegistry.registerComponent. Any thoughts?
@frostfat +1 (I tried RCTWebRTCDemo on macOS Sierra).
I got around it by putting (void)
in front of function call on error line.
TimBroddin tks a lot, save me time.
@edin-m's solution of (void) in front of line temporarily worked for us on Sierra .. TY
Also faced with this problem, but my settings here is empty:
Here is my environment:
react-native-cli: 1.0.0
react-native: 0.32.0
xcode:Version 8.0 (8A218a)
mac:10.12 (16A323)
Thanks in advance.
@noprom it looks like you're searching in your main project. If you click RCTWebSocket in the sidebar, and then search in Build Settings, you should see it.
@TimBroddin i love u
@TimBroddin you are the MVP here.
@TimBroddin, Bless your children, give them names...
@TimBroddin You rock
@dwilt I do take a while to figure it out,hahaha
@TimBroddin God bless you children...
Most helpful comment
Just doubleclick on the RCTWebSocket project in your navigator and remove the flags under _build settings_ > _custom compiler flags_
Your project should compile just fine now!