Error creating ipa for ipad: "Could not call BaseAirMobilePackage.launch()"
Hi,
when I try to compile a flex/air application i get the following
error:
Could not call BaseAirMobilePackage.launch() on task
':packageMobile' I am using gradle 1.8.
my gradle file (I changed file names and my password is not
'password') :
defaultTasks 'installMobile'
apply plugin: 'gradlefx'
apply plugin: 'maven'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'org.gradlefx', name: 'gradlefx', version: '0.7'
}
}
version = '1.0-SNAPSHOT'
type = 'mobile'
repositories {
add(new org.apache.ivy.plugins.resolver.URLResolver()) {
name = 'Apache'
addArtifactPattern 'http://apache.cu.be/flex/[revision]/binaries/[module]-[revision]-bin.[ext]'
}
add(new org.apache.ivy.plugins.resolver.URLResolver()) {
name = 'Adobe Air SDK'
addArtifactPattern 'http://download.macromedia.com/air/win/download/[revision]/[module].[ext]'
}
}
dependencies {
flexSDK group: 'org.apache', name: 'apache-flex-sdk', version: '4.9.1', ext: 'tar.gz'
airSDK group: 'com.adobe', name: 'AdobeAIRSDK', version: '3.4', ext: 'zip'
}
additionalCompilerOptions = [
'-headless-server=true'
]
sdkAutoInstall {
showPrompts = false
}
srcDirs = ['src/']
mainClass = 'Main.mxml'
air {
keystore = "myp12.p12"
storepass = "password"
applicationDescriptor = "app.xml"
includeFileTrees = [
fileTree(dir: 'src/', include: 'assets/')
]
}
airMobile {
platform = 'ios'
outputExtension = 'ipa'
target = 'ipa-debug'
provisioningProfile = "myProvisionFile.mobileprovision"
}
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
Support Staff 1 Posted by Yennick Trevels on 14 Nov, 2013 11:35 AM
Hi,
Can you try to run the packageMobile task by adding '--info' to your gradle command, and see if there's an exception or some other error message in there?
Thanks
2 Posted by Andreas on 14 Nov, 2013 12:02 PM
The only exception I get is "Could not call BaseAirMobilePackage.launch() on task ':packageMobile' "
P.S.
I changed my gradle config to use the air SDK for mac:
Support Staff 3 Posted by Yennick Trevels on 14 Nov, 2013 02:49 PM
I'll have to do some debugging on this to know what's going wrong. I'll let you know when I know more.
Support Staff 4 Posted by Yennick Trevels on 14 Nov, 2013 07:27 PM
I've been able to reproduce the error message (in my case by defining a provisioning file which doesn't exist). But above the ":packageMobile FAILED" message I can see exactly what went wrong. In my case it looks like this:
5 Posted by Andreas on 14 Nov, 2013 10:26 PM
Well, I do not have such a nice error message, but the "Compilation failed while executing : as" reads suspicious, but I can only assume that it means something.
Here is some more of my debug output:
Support Staff 6 Posted by Yennick Trevels on 15 Nov, 2013 07:51 PM
After some research on the web it appears like the "Compilation failed while executing: as" is the error message you need.
Here's a workaround that apparently should fix this:
In the next version of GradleFx all AIR & Flex SDK files will receive execution permissions upon installation.
7 Posted by Andreas on 16 Nov, 2013 03:52 PM
thank you, Yennick! I just successfully compiled and packaged an ipa-file!
I only see a black screen when I start my app, but I think that is because I forgot the Default-Landscape.png in my includeFileTrees.
Andreas closed this discussion on 16 Nov, 2013 05:55 PM.