openbakery / gradle-xcodePlugin

gradle plugin for building Xcode Projects for iOS, watchOS, macOS or tvOS
Apache License 2.0
457 stars 127 forks source link

'xcodebuild' is not up-to-date because: Task has not declared any outputs despite executing actions #404

Closed wizofaus closed 2 years ago

wizofaus commented 5 years ago

The xcodebuild task generated by the plugin doesn't appear to analyse the workspace/project files to determine the inputs and outputs. If xcodebuild itself did a good job of this and exited quickly when there was no work to do this wouldn't be a major issue but it's rubbish, often taking several minutes to rebuild things quite unnecessarily. Even if it were just an option, the ability to use gradles' much much faster dependency checking would be a huge bonus.

renep commented 5 years ago

The xcodebuild task is only an adapter to the xcodebuild commandline tool. Therefor all the dependency checking is done by the xcodebuild commandline tool. Making this plugin smarter so that not the xcodebuild tool is used for compiling the files and handling all the dependencies would be nice, but I don't think this is going to happen in the foreseeable future. This plugin is only a side project for me and there are lots of things I would like to add or make better. But I have mostly only time to update and add things I need for the iOS projects I'm working and where I use this plugin.

wizofaus commented 5 years ago

Fair enough, didn't expect it to be considered high priority! I've just been testing some changes to our build scripts recently and having to wait almost 7 minutes sometimes just for xcodebuild to finish (even though, as I said, no files have changed) is a major drag on productivity. I guess I should just modify the xcodebuild task definition to add the inputs and outputs.