Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not execute the build #10

Open
rodriguise opened this issue Nov 13, 2014 · 4 comments
Open

Does not execute the build #10

rodriguise opened this issue Nov 13, 2014 · 4 comments
Assignees
Labels

Comments

@rodriguise
Copy link

module.exports = function(grunt) {
// Do grunt-related things in here
require('load-grunt-tasks')(grunt);

grunt.initConfig({
convert: {
    plist2json: {
    files: [
        {
        expand: true,
        src: ['PushKit-Info.plist'],
        ext: '.json'
        }
    ]
    }
},
bump: {
    options: {
    files: ['package.json'],
    updateConfigs: [],
    commit: false,
    commitMessage: 'Release v%VERSION%',
    commitFiles: ['package.json'],
    createTag: true,
    tagName: 'v%VERSION%',
    tagMessage: 'Version %VERSION%',
    push: true,
    pushTo: 'upstream',
    gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d',
    globalReplace: false
    }
},
xcode: {
        options: {
    clean: true,
    workspace: './PushKit.xcworkspace',
    scheme: 'Framework',
    target: 'Framework',
    configuration: 'Release'
        }
}
});

grunt.registerTask('push', 'Replace package version with project version and commit', function() {
grunt.task.run('convert');
var pkg = grunt.file.readJSON('PushKit-Info.json');
grunt.option('setversion', pkg.CFBundleShortVersionString + '-' + pkg.CFBundleVersion);
grunt.task.run('bump');
});

grunt.registerTask('build', function() {
grunt.task.run('xcode');
});    

};

Using the above config: grunt build

Running "build" task

Done, without errors.

It does nothing.

@rodriguise
Copy link
Author

Using Xcode 6.1 by the way.

The following works just fine:

xcodebuild -workspace PushKit.xcworkspace -scheme Framework -configuration Release

@rodriguise
Copy link
Author

Verbose Output:

grunt build --verbose
Initializing
Command-line options: --verbose

Reading "Gruntfile.js" Gruntfile...OK

Registering Gruntfile tasks.

Registering "grunt-bump" local Npm module tasks.
Reading /Volumes/Workspace/qwasi/roswell/ios-framework/node_modules/grunt-bump/package.json...OK
Parsing /Volumes/Workspace/qwasi/roswell/ios-framework/node_modules/grunt-bump/package.json...OK
Loading "bump.js" tasks...OK

  • bump, bump-commit, bump-only

Registering "grunt-changelog" local Npm module tasks.
Reading /Volumes/Workspace/qwasi/roswell/ios-framework/node_modules/grunt-changelog/package.json...OK
Parsing /Volumes/Workspace/qwasi/roswell/ios-framework/node_modules/grunt-changelog/package.json...OK
Loading "changelog.js" tasks...OK

  • changelog

Registering "grunt-convert" local Npm module tasks.
Reading /Volumes/Workspace/qwasi/roswell/ios-framework/node_modules/grunt-convert/package.json...OK
Parsing /Volumes/Workspace/qwasi/roswell/ios-framework/node_modules/grunt-convert/package.json...OK
Loading "convert.js" tasks...OK

  • convert

Registering "grunt-xcode" local Npm module tasks.
Reading /Volumes/Workspace/qwasi/roswell/ios-framework/node_modules/grunt-xcode/package.json...OK
Parsing /Volumes/Workspace/qwasi/roswell/ios-framework/node_modules/grunt-xcode/package.json...OK
Loading "xcode.js" tasks...OK

  • xcode
    Initializing config...OK
    Loading "Gruntfile.js" tasks...OK
  • build, push

Running tasks: build

Running "build" task

Running "xcode" task

Done, without errors.

@dwabyick
Copy link

dwabyick commented Feb 7, 2015

I'm having the same result with an even simpler Gruntfile.

@matiassingers
Copy link
Owner

@rodriguise @dwabyick sorry for my lack of response of this, hopefully I'll have some time to look into this issue over the weekend.

But yes, I definitely don't execute build - I only tested this project with iOS projects, hence the lack of build.

@matiassingers matiassingers self-assigned this Feb 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants