Skip to content

Commit

Permalink
fix: cordova iso-sim error correction only for runs on ios
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanneff committed Jul 11, 2017
1 parent 256bd0c commit 0c4fe2d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions testbed/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ main() {
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 ../../../../
if [[ "$run_ios" == "true" ]]; then
cd ./platforms/ios/cordova/node_modules/
npm install ios-sim@latest
cd ../../../../
fi

# plugin
cordova plugin add ../
Expand Down

0 comments on commit 0c4fe2d

Please sign in to comment.