Closed joncursi closed 7 years ago
Ran the command again and it worked. Out of curiosity, I ran it a 3rd time, and it failed. Seems like it alternates every other between success and failure. Can this be updated to install more reliably? Our CI systems are going to drive us crazy!
Seems like its a permission issue on https://github.com/matejkriz/react-native-today-widget/blob/master/ios/TodayWidgetExtension/Info.plist ?
See: https://discussions.apple.com/thread/1979027?start=0&tstart=0
I even tried this on a brand new Macbook Pro to double check that it wasn't something on my old machine:
$ yarn add react-native-today-widget
error /Users/joncursi/Sites/joncursi/redbirdNative/node_modules/react-native-today-widget: Command failed.
Exit code: 1
Command: sh
Arguments: -c ./bin/setBundleId.sh
Directory: /Users/joncursi/Sites/joncursi/redbirdNative/node_modules/react-native-today-widget
Output:
./bin/setBundleId.sh: line 3: realpath: command not found
usage: dirname path
sed: 1: "s/^\s*"name": "(.*?)",$ ...": RE error: repetition-operator operand invalid
Reading CFBundleIdentifier from: /../../../ios//Info.plist
2017-08-11 17:29:29.647 defaults[31957:256937]
The domain/default pair of (/../../../ios//Info.plist, CFBundleIdentifier) does not exist
setting ".TodayWidgetExtension" as CFBundleIdentifier for /../ios/TodayWidgetExtension/Info.plist
2017-08-11 17:29:29.677 defaults[31958:256941] Could not write domain /../ios/TodayWidgetExtension/Info.plist; exiting
I will replace realpath
in postinstall script soon, but for now, you need to install coreutils
. I'm sorry that I missed it in documentation.
https://github.com/matejkriz/react-native-today-widget#dependencies