Skip to content

Cannot get property 'productType' on null object #472

Description

@surame8288

Hello All, I just created a "Hello world" iOS application in Xcode and trying to build it using Gradle with below script but my build fails with an error I posted below. Can any one try to assist me to fix this issue

Build Script

buildscript {
    repositories {
        maven {
            url('http://repository.openbakery.org')
            allowInsecureProtocol = true
            //url('file:///Users/rene/workspace/openbakery/xcodePlugin/repository')
        }
        mavenCentral()
  }

    dependencies {
        classpath "org.openbakery:xcode-plugin:0.23.+"
    }
}

apply plugin: 'org.openbakery.xcode-plugin'

xcodebuild {
    target = 'GradleTest'
    scheme = 'GradleTest'
    productName = 'GradleTest'
    configuration = 'Test'
    destination = ['iPhone 15 Plus', 'iPhone SE' ]
}

infoplist {
	// override the bundle identifier that was specified in the xcode project.
	bundleIdentifier= 'com.aa.test.peripheral.GradleTest'
}

Error:

% gradle clean xcodebuild
> Task :xcodebuildConfig FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':xcodebuildConfig'.
> Cannot get property 'productType' on null object

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions