I can run my application on ios & android devices but when i try to build for submitting with
meteor build --debug --directory …/ritaposmobile --mobile-settings mobile-config.js --server http://app.ritapos.com
I’m getting
/Users/guncebektas/.meteor/packages/meteor-tool/.1.4.1_3.1ttdupr++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/isopackets/cordova-support/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:165
throw error;
^
SyntaxError: Unexpected token /
at Object.parse (native)
at CordovaBuilder.copyWWW (/tools/cordova/builder.js:382:12)
at CordovaProject.prepareFromAppBundle (/tools/cordova/project.js:189:13)
at /tools/cli/commands.js:969:24
at /tools/utils/buildmessage.js:359:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:352:34
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:350:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.enterJob (/tools/utils/buildmessage.js:324:26)
at /tools/cli/commands.js:960:20
at /tools/utils/buildmessage.js:271:13
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:264:29
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:262:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:253:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.capture (/tools/utils/buildmessage.js:252:19)
at Object.main.captureAndExit (/tools/cli/main.js:273:29)
at /tools/cli/commands.js:959:10
at buildCommand (/tools/cli/commands.js:956:37)
at Command.func (/tools/cli/commands.js:798:12)
at /tools/cli/main.js:1432:23
Can anybody help me? What is the problem? Thanks.
Looks to be a problem with the minification process. You can test this by running ‘meteor run ios --verbose --production’ and seeing where it may be failing in the minification process.
it’s running and connecting to the server with
meteor run ios --verbose --production --mobile-server http://app.ritapos.com
but when i try to build i’m getting these errors with meteor build --directory ../ritaposmobile --verbose --mobile-settings mobile-config.js --server http://app.ritapos.com
Getting installed version for platform android in Cordova project
Getting installed version for platform ios in Cordova project
Preparing Cordova project from app bundle
Processing mobile-config.js
Copying resources for mobile apps
Writing new config.xml
/Users/guncebektas/.meteor/packages/meteor-tool/.1.4.1_3.1ttdupr++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/isopackets/cordova-support/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:165
throw error;
^
SyntaxError: Unexpected token /
at Object.parse (native)
at CordovaBuilder.copyWWW (/tools/cordova/builder.js:382:12)
at CordovaProject.prepareFromAppBundle (/tools/cordova/project.js:189:13)
at /tools/cli/commands.js:969:24
at /tools/utils/buildmessage.js:359:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:352:34
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:350:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.enterJob (/tools/utils/buildmessage.js:324:26)
at /tools/cli/commands.js:960:20
at /tools/utils/buildmessage.js:271:13
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:264:29
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:262:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:253:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.capture (/tools/utils/buildmessage.js:252:19)
at Object.main.captureAndExit (/tools/cli/main.js:273:29)
at /tools/cli/commands.js:959:10
at buildCommand (/tools/cli/commands.js:956:37)
at Command.func (/tools/cli/commands.js:798:12)
at /tools/cli/main.js:1432:23
My other suggestion is to look into your --mobile-settings flag. I don’t believe you specify this flag for the mobile-config.js file, its more if you want to pass Meteor.setting values. Remove that and see if you build completes.
1 Like
build succeeded, thanks. But i couldn’t understand where will i set app icons and launch screens?
As long as your mobile-config.js sits in the root of your project you do not need to specify it in your build.
thank you a lot you saved my day. I checked icons and launch screens and they are in the bundle.