View unanswered posts | View active topics

Reply to topic  [ 1 post ] 
Solution to ERROR ITMS-9000: "Invalid Segment Alignment." 
Author Message

Joined: Mon Nov 03, 2014 10:21 am
Posts: 2
Reply with quote
I'm running FlashDevelop and I have the Flex 4.13 SDK. When I build a release version of my iOS app for the iTunes App Store, I received the following error.

ERROR ITMS-9000: "Invalid Segment Alignment. This app does not have proper segment alignment and should be rebuild with the latest version of Xcode. Please contact Developer Technical Support if you need further assistance."

To resolve this problem I had to install the Apache Flex SDK with Flex SDK 4.13 and AIR SDK 15.0.302. I installed the FlexSDK and AIR SDK with the Apache Flex installation binary.

For many of you, this should be enough to rebuild and run your application. However, after I built an ad-hoc version of my iOS app, and transferred it to my iPhone 4 (iOS 8.0.2) and iPad 2 (iOS 8.1), it crashed after launch.

If I rebuilt my App in debug mode (-debug-interpreter), it ran correctly. So how can I debug this issue? I can't with FlashDevelop.

However, I found a reference on an Adobe message board to a command line parameter, useLegacyAOT, which indicated that the poster had some success with this command line option after his app crashed.

I opened the batch file, PackageApp.bat, and added the following line before the line that calls the packager, "call bat\Packager.bat".

if %C% GTR 7 set OPTIONS=-useLegacyAOT yes

This option tells the compiler to disable fast packaging. However, the new linker in AIR 15.0.302 still aligns segments correctly.

Don't do this unless you have to. But this seemed to work for me, and I was able to submit my iOS App to the iTunes App Store.

Mon Nov 03, 2014 11:01 am
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.