Coder Social home page Coder Social logo

gradlexcodeissuedemo's Introduction

This is a dummy project demonstrating a possible issue in gradle-xcodePlugin.

The Issue

My theory is that the plugin is not supporting running xcodebuild for projects located in a subfolder rather than in the current directory.

Example

Running gradle xcodebuild works in this case:

MyApp/
  |
  |_ MyApp.xcodeproj

But doesn't work in this:

MyProject/
  |
  |_ MyApp/
    |
    |_ MyApp.xcodeproj

To reproduce clone the repo and run gradle xcodebuild from its root, you should get an output similar to the one in gradle_output.txt.

The relevant error message being:

xcodebuild: error: The directory /Users/me/path/to/repo/GradleXcodeIssueDemo does not contain an Xcode project or workspace.

Note that setting the value of projectFile doesn't solve the issue. See this project's build.gradle.

Proposed Solution

xcodebuild itself has a -project option to specify the location of the xcodeproj folder.

The plugin should set the -project option for xcodebuild using the value of the projectFile configuration, if any is set.

From what I can understand the proper place where to do it is in the build() task action of XcodeBuildTask.

To verify that using the -project option works run the successful_xcodebuild executable.

gradlexcodeissuedemo's People

Contributors

mokagio avatar

Watchers

James Cloos avatar  avatar

Forkers

phatblat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.