Skip to main content
Participating Frequently
Jan 6, 2015 9:25 AM UTC
Question

iOS adhoc displays black screen after launch

my iOS application displays black screen after splash screen.nothing happens after the splash screen and couldn't see any proper errors on debug utility.

I can build adhoc using flash builder and it's works fine but this problem occurs when I create ipa using dumped config file on command line(ant)

I'm using flex sdk 4.6 and AirSDK 15.0(overladed) iOS version 8.0 .my application includes few iOS native extensions.

I also tried installing flex sdk 4.13 with AIRSDK 15 but same thing happens.

mxmlc
mxmlc
-load-config app-config.xml src/mobapp.mxml -output myapp.swf



adt

<target name="build-release-adhoc-package-ipa">

  
<echo>::building captive-runtime release-adhoc ipa..</echo>

  
<exec executable="${FLEX_BIN}/adt" failonerror="true">

  
<arg line="-package" />

  
<arg line="-target ipa-ad-hoc" />

  
<arg line="-storetype pkcs12" />

  
<arg line="-keystore ${provision.dir}/release-adhoc.p12" />

  
<arg line="-storepass 12345" />

  
<arg line="-provisioning-profile ${provision.dir}/release_adhoc.mobileprovision" />

  
<arg line="${adhoc.dir}/ios-adhoc.ipa" />

  
<arg line="${src}/mobapp-app.xml" />

  
<arg line="myapp.swf" />

  
<arg line="${icon.dir}/applicationIcon16.png" />

  
<arg line="${icon.dir}/applicationIcon32.png" />

  
<arg line="${icon.dir}/applicationIcon36.png" />

  
<arg line="${icon.dir}/applicationIcon48.png" />

  
<arg line="${icon.dir}/applicationIcon57.png" />

  
<arg line="${icon.dir}/applicationIcon72.png" />

  
<arg line="${icon.dir}/applicationIcon76.png" />

  
<arg line="${icon.dir}/applicationIcon114.png" />

  
<arg line="${icon.dir}/applicationIcon120.png" />

  
<arg line="${icon.dir}/applicationIcon128.png" />

  
<arg line="${icon.dir}/applicationIcon152.png" />

  
<arg line="${base.dir}/Default-568h@2x.png" />

  
<arg line="-extdir ${src}/ane" />

  
<arg line="-platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPh oneOS.sdk" />

  
</exec>

  
</target>



please help!

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

angabriel
Participant
Jan 20, 2015 11:43 AM UTC

Had exactly the same problem, except my blackscreen was white

What I see from your adt config:

1. platform sdk contains a whitespace -> iPh oneOS.sdk

2. don't use -load-config in mxmlc. Sdk contains the correct config, when you have

<supportedProfiles>mobileDevice</supportedProfiles>

mentioned in the app-descriptor.xml


3. Other guesses:


It turned out that I had mismatching certificates. After trying for days I found out, the best way to deploy your ad-hoc ipa is to use XCode (6.1.1).

Just press SHIFT-CMD-2 to open the device view. When your Device is connected, click on it on the left. Then there is a list 'Installed Apps'. Press the + sign and select your freshly compiled ipa. Watch the log below carefully. It will print messages like (from my mind):

- could not verify certificate ...

- entitlements do not match

The App descriptor XML must contain something like this (otherwise black/whitescreen):

xxxxxxxxxx = IOS developer team ID

yyyyy          = App ID

<application>

 

.... // ....

<iPhone>

        <InfoAdditions><![CDATA[

  <key>UIDeviceFamily</key>

  <array>

  <string>1</string>

  <string>2</string>

  </array>

  <key>MinimumOSVersion</key>

  <string>6.1</string>

  ]]></InfoAdditions>

      

        <requestedDisplayResolution>high</requestedDisplayResolution>

      

        <Entitlements>

        <![CDATA[

          <key>keychain-access-groups</key>

             <array>

             <string>xxxxxxxxxx.*</string>

             </array>

           

             <key>get-task-allow</key>

             <false/>

           

             <key>application-identifier</key>

             <string>xxxxxxxxxx.yyyyy</string>

           

             <key>com.apple.developer.team-identifier</key>

             <string>xxxxxxxxxx</string>

        ]]>

    </Entitlements>

   

    </iPhone>

</application>

Hope this helps anyone else in any way

It was very tough and time consuming to get the entitlements right.

Translate