GradleFX packaged IPA doesn't start
Hi everyone,
I'm trying to build and create package for iOS using GradleFX 0.8.2 and Gradle 1.11. The problem is that when I'm starting App I can see only black screen. If I import that project in to Flex Builder 4.7 and build it using the same dependencies then my App is running well on the same device.
my build file:
//////////////////////////////////////////////////////////////
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'org.gradlefx', name: 'gradlefx', version: '0.8.2'
}
}
apply plugin: 'gradlefx'
apply plugin: 'flashbuilder'
//FLEX AND AIR SDK FOLDERS. CAN BE SET AS HOME ENVIRONMENT
flexHome = "C:/Program Files/Adobe/Adobe Flash Builder 4.7 (64 Bit)/sdks/flex_sdk_4.6.0_air_sdk_4.0"
//POINT TO LOCAL ANES
dependencies{
rsl fileTree(dir: '../DistriqtNativeExtensions/libs', include: ['*.ane'])
merged files(
'../../FlexApp/companyGlobals/build/companyGlobals.swc',
'../../FlexApp/companyUtilities/build/companyUtilities.swc',
'../companyViewerAppGlobals/build/companyViewerAppGlobals.swc',
'../companyViewerAppDownloader/build/companyViewerAppDownloader.swc',
'../companyViewerAppPhoneControls/build/companyViewerAppPhoneControls.swc'
)
}
version = '1.5.0'
//PROJECT TYPE: MOBILE
type = 'mobile'
//SOURCE FOLDER
srcDirs = ['src']
//CERTIFICATE AND ITS PASSWORD
air {
keystore = '../Certs/iph_dev.p12'
storepass = '*****'
}
//PROVISIONING PROFILE
airMobile {
provisioningProfile = 'ProvisioningProfiles/company_Viewer_company1_General.mobileprovision'
}
//PROJECT MAIN APP FILE
mainClass = 'companyViewerAppPhonecompany1General.mxml'
//PROJECT DESCRIPTION FILE AND ASSETS
air {
applicationDescriptor = 'src/companyViewerAppPhonecompany1General-app.xml'
includeFileTrees = [
fileTree(dir: 'src/', include: ['*.png', '*.css', 'assets/fonts/*.otf'])
]
}
//PACKAGE PLATFORM, TYPE AND EXTENSION
airMobile {
platform = 'ios'
outputExtension = 'ipa'
target = 'ipa-test'
extensionDir = '../DistriqtNativeExtensions/libs/'
}
//DESKTOP SIMULATOR SETTINGS
adl {
profile = 'mobileDevice'
screenSize = 'iPad'
}
//ADITIONAL COMPILER SETTIGNS
additionalCompilerOptions = [
'-swf-version=20'
]
///////////////////////////////////////////////////////////////////
My project structure is made using flashbuilder plugin:
///////////////////////////////////////////////////////////////////
`project
src
assets
-app.xml
.mxml
.actionScriptProperties
.flexProperties
.project
build.gradle`
///////////////////////////////////////////////////////////////////
I cannot start ADL either. The error code is 5 and means uknown error..
Any help please
Thanks
Dan
UPDATE!
One thing I have noticed that when I swap SWF inside IPA compiled with GradleFX (ipa-debug) with one from Flex compiled (debug) IPA then app is running well.
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
1 Posted by daniel.klokov on 01 May, 2014 11:10 AM
Hi everyone,
there is one more update.
After importing gradleFX generated project into flash builder the FB says that project must be converted into new version and set target player to 11.1. So I did set target player in build script but problem is still there.. Also I found that all ANEs in flash builder are under LIBRARY PATCH insted of NATIVE EXTENSIONS. If I move them to proper place and compile my App with FB then App is running well. So my asumption is that my ANEs are set incorectly in build script. Could anyone please suggest the best way to include ANEs?
2 Posted by daniel.klokov on 02 May, 2014 07:37 AM
Fixed! If anyone will strugle with the same problem then the solution is to replace all ANE extensions with SWC!
daniel.klokov closed this discussion on 02 May, 2014 07:37 AM.