openbakery / gradle-xcodePlugin

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

Support for Cordova app #435

Open saravnandm opened 4 years ago

saravnandm commented 4 years ago

Hi, I'm trying to use the lib for my Cordova app. When I run "gradle xcodebuild" getting the following error. I knew the error is due to placing the build.gradle file in root instead of .xcodeproj/.xcworkspace ios project folder. Is there a way to set the path of .xcodeproj ?

Task :xcodebuildConfig FAILED

FAILURE: Build failed with an exception.

@renep

renep commented 4 years ago

As far as I know not having the .xcodeproj or .xcworkspace in the same directory as the build.gradle causes problems. To be honest: In the several years I have used this gradle plugin to build my apps, I have never had the need for this, and I don't think this is gonna change in the foreseeable future. Normally I extend and fix things in this project when I need it myself, or when I think this is a needed thing to have. But Cordova support is not a feature that I need, therefor it is very very unlikely that I will investigate and fix this. So for Cordova support will only happen when someone sends me a pull request.