- Start with a cloned copy of the
cordova-plugin-meteor-webapprepo:
cd ~
git clone https://github.com/meteor/cordova-plugin-meteor-webapp.git
- Make sure the
GCDWebServersubmodule is pulled in:
cd cordova-plugin-meteor-webapp
git submodule update --init --recursive
- Create a new test Cordova app:
cd ~
cordova create test-app
- Add the
cordova-plugin-meteor-webapp,cordova-plugin-meteor-webapp-tests, andcordova-plugin-test-frameworkplugins:
cd test-app
cordova plugin add https://github.com/apache/cordova-plugin-test-framework.git
cordova plugin add ../cordova-plugin-meteor-webapp/
cordova plugin add ../cordova-plugin-meteor-webapp/tests
- Add the
iosplatform:
cordova platform add ios
- Add a
build.jsonfile to the root of yourtest-app, that includes your Apple Developer Team ID:
{
"ios": {
"debug": {
"developmentTeam": "ABC123DEF456"
},
"release": {
"developmentTeam": "ABC123DEF456",
"codeSignIdentity": "iPhone Developer",
"packageType": "ad-hoc"
}
}
}- Update the
test-app'sconfig.xmlto point to the test runner:
Change
<content src="index.html" />to
<content src="cdvtests/index.html" />- Run the tests on a device or using the iOS emulator:
cordova emulate ios