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
Create .ipa file instead of .app file #155
Comments
If you run 'gradle package' you should find the ipa in the 'build/package' directory. |
Thank you for quick replay, pbxddxl:Test deltatechnology$ gradle package FAILURE: Build failed with an exception.
BUILD FAILED Total time: 2.651 secs I got the above error |
Hi renep, by using gradle archive command I can able to make Thank you renep |
Ah, I see the problem, use version 0.10.+ not 0.9.+ |
I am using gradle-2.3 my terminal commands pbxddxl:Test deltatechnology$ gradle -v Gradle 2.3Build time: 2015-02-16 05:09:33 UTC Groovy: 2.3.9 pbxddxl:Test deltatechnology$ Thank you, |
And? |
I dont understand what is this 0.10+version Thanks & regards, |
you have in your build file the following line:
You say here that you want to use the latest 0.9 version of this gradle plugin, which is 0.9.15 But where is a newer 0.10.2 version already release with improvements for swift etc. Therefor you need to change the line if you want to use the new 0.10.2 version:
|
Hi renep but archive task is not working please see my o/p pbxddxl:Test deltatechnology$ gradle package FAILURE: Build failed with an exception.
BUILD FAILED Total time: 17.497 secs Thanks & regards, |
Try to run with '--info' or '-i' parameter, then you see more detail. |
Here I am sending you the o/p of my terminal but same settings were working fine with 0.9+ version, there I can able to archive the file pbxddxl:Test deltatechnology$ gradle --info Welcome to Gradle 2.3. |
run |
Please look into this pbxddxl:Test deltatechnology$ gradle archive --info 2015-03-16 15:48:42.618 xcodebuild[1694:1007] [MT] DVTAssertions: Warning in /SourceCache/IDEFrameworks/IDEFrameworks-6611/IDEFoundation/SourceControl/Model/IDESourceControlManager.m:423 Check dependencies ProcessProductPackaging /Users/deltatechnology/Library/MobileDevice/Provisioning\ Profiles/gradle-32dc6244-716b-48f1-ad3f-13893b9338a9.mobileprovision build/sym/class\ org.gradle.api.tasks.testing.Test-Development/Release-iphoneos/Test.app/embedded.mobileprovision Touch build/sym/class\ org.gradle.api.tasks.testing.Test-Development/Release-iphoneos/Test.app CodeSign build/sym/class\ org.gradle.api.tasks.testing.Test-Development/Release-iphoneos/Test.app Signing Identity: "iPhone Distribution: Republic Services Inc. (YKXBJ5R297)"
/Users/deltatechnology/Documents/Test/build/sym/class org.gradle.api.tasks.testing.Test-Development/Release-iphoneos/Test.app: replacing existing signature Validate build/sym/class\ org.gradle.api.tasks.testing.Test-Development/Release-iphoneos/Test.app ** BUILD SUCCEEDED ** Done FAILURE: Build failed with an exception.
BUILD FAILED Total time: 3.819 secs |
You have spaces in your project path, can you try to change it so you do not have spaces. |
Here I am seining my project path which I am using now /Users/deltatechnology/Documents/Test |
Now I have changed The path to pbxddxl:Test deltatechnology$ cd /Users/deltatechnology/Desktop/ChangedThePathTest still have same issues: O/p pbxddxl:ChangedThePathTest deltatechnology$ gradle archive FAILURE: Build failed with an exception.
BUILD FAILED Total time: 5.38 secs Thank you for the help |
Your SYM_ROOT is containing spaces:
this should be Do you set the xcodebuild.symRoot parameters in your build.gradle file? If not this is really strange. |
I was using using but now I removed this lines am sending my build scriptbuildscript { xcodebuild { |
pbxddxl:ChangedThePathTest deltatechnology$ gradle package:xcodebuildConfig FAILURE: Build failed with an exception.
BUILD FAILED Total time: 4.604 secs pbxddxl:ChangedThePathTest deltatechnology$ gradle archive --infoStarting Build 2015-03-16 16:39:39.131 xcodebuild[2539:1007] [MT] DVTAssertions: Warning in /SourceCache/IDEFrameworks/IDEFrameworks-6611/IDEFoundation/SourceControl/Model/IDESourceControlManager.m:423 Check dependencies ProcessProductPackaging /Users/deltatechnology/Library/MobileDevice/Provisioning\ Profiles/gradle-32dc6244-716b-48f1-ad3f-13893b9338a9.mobileprovision build/sym/Release-iphoneos/Test.app/embedded.mobileprovision Touch build/sym/Release-iphoneos/Test.app CodeSign build/sym/Release-iphoneos/Test.app Signing Identity: "iPhone Distribution: Republic Services Inc. (YKXBJ5R297)"
/Users/deltatechnology/Desktop/ChangedThePathTest/build/sym/Release-iphoneos/Test.app: replacing existing signature Validate build/sym/Release-iphoneos/Test.app ** BUILD SUCCEEDED ** Done FAILURE: Build failed with an exception.
BUILD FAILED Total time: 4.172 secs |
The archive task looks for a |
Yes I changed the bundle name to TestName renew how can i change the bundle name through script? and my main issues is resolved I can able to create ipa file |
Hi renep,
I am creating Xcode build through gradle plugin
I am using the gradle xcodebuild command to run the script
I can able to create .app file and app.dysm file in /build/sym/Release-iphoneos folder
but I am expecting the .ipa file instead of .app file
please could you guide me to create .ipa file instead of .app file
here I am seining you my build script:
buildscript {
repositories {
maven {
url('http://openbakery.org/repository/')
}
mavenCentral()
}
dependencies {
classpath group: 'org.openbakery', name: 'xcodePlugin', version: '0.9.+'
}
}
apply plugin: 'xcode'
xcodebuild {
configuration='Release'
sdk = 'iphoneos'
target = 'Test'
signing {
identity = 'iPhone Distribution: Republic Services Inc. (YKXBJ5R297)'
certificateURI = 'file://localhost/Users//PrivateKey.p12'
certificatePassword = pwd
mobileProvisionURI = 'file://localhost/Users/Employee_Directory_Adhoc-3.mobileprovision'
}
}
The text was updated successfully, but these errors were encountered: