Skip to content

Commit

Permalink
fix: cordova iso-sim error when building testbed
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanneff committed Jul 11, 2017
1 parent c575200 commit 256bd0c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions testbed/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,12 @@ main() {
rm -rf ./plugins
rm -rf ./platforms
rm -rf ./build.json
rm -rf ./config.xml
rm -rf ./package.json

# config
yes | \cp -f config.template.xml config.xml

# build (platforms added before plugin because before_plugin_install does not work on file reference)
if [[ "$run_ios" == "true" ]]; then
cordova platform add ios
Expand All @@ -76,6 +80,11 @@ main() {
cordova platform add android
fi

# TODO: remove this cordova error fix (https://stackoverflow.com/questions/42350505/error-cannot-read-property-replace-of-undefined-when-building-ios-cordova)
cd ./platforms/ios/cordova/node_modules/
npm install ios-sim@latest
cd ../../../../

# plugin
cordova plugin add ../

Expand Down

0 comments on commit 256bd0c

Please sign in to comment.