blog icon indicating copy to clipboard operation
blog copied to clipboard

react-native get started demo didn't work, print ":CFBundleIdentifier", Does Not Exist

Open xhlwill opened this issue 8 years ago • 4 comments

I run command 'react-native run-ios' in the latest [email protected], but this error keep showing

...
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/AwesomeProject.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

the full error log is here.

xhlwill avatar Nov 26 '16 09:11 xhlwill

and error

error: use of undeclared identifier 'UIUserInterfaceIdiomCarPlay'; did you mean 'UIUserInterfaceIdiomPad'?

xhlwill avatar Nov 26 '16 10:11 xhlwill

finally I read this issue, and it's solved after I upgraded Xcode from 7.2 to 8.1, curious about why?

xhlwill avatar Nov 26 '16 11:11 xhlwill

this issue might be help: https://github.com/facebook/react-native/issues/14423

scurlyhair avatar Jul 30 '17 15:07 scurlyhair

I found this issue may come out if 8081 port is occupied(In my case it is occupied by McAfee). Run command sudo lsof -i :8081 to check which process has token the 8081 port. Or you can run react-native run-ios --port 8082 to specify another port.

phasedarray avatar Aug 14 '18 11:08 phasedarray