Invalid Segment Alignment

I’m getting Invalid Segment Alignment when building for iOS on Mac OS X Yosemite with the latest corona daily build (Version 2014.2496 (2014.11.7)) as well as a stable build Version 2014.2460 (2014.10.10). 

Build for iOS 8.0

XCode version is Version 6.1 (6A1052d) on Yosemite

Do I need to downgrade to Maveriks and XCode 5?

What happens if you try and build the “Hello World” sample app?

Rob

Ok that worked  so that rules out my setup and Xcode 6.1. But what am I doing wrong with my app and how can I find more debug information?

I’ve got some debug information out of system.log

[2014-11-09 11:48:18 GMT] <main> DBG-X:   parameter Version = 1.8.3

[2014-11-09 11:48:18 GMT] <main>  INFO: id = 20141109114818-339

[2014-11-09 11:48:21 GMT] <main> DBG-X: Apple’s web service operation return value:

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter ErrorMessage = ERROR ITMS-9000: "Invalid Segment Alignment. This app does not have proper segment alignment and should be rebuilt with the latest version of Xcode. Please contact Developer Technical Support if you need further assistance.

(1102)

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter CPUToken = 8c5d33ce-20da-4648-9931-683bfd33795f/1415533692225

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter FileSizes = {Linedrone.zip=8727198}

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter AssetsToDescribe = [{UTI=com.apple.ipa, Role=source, ShouldDescribeAsset=true, Filename=Linedrone.zip}]

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter Checksums = {Linedrone.zip=827ea627df22ee2456e14a485ad86d9d}

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter ErrorCode = 1102

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter Success = false

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter Warnings = [WARNING ITMS-9000: “Missing 64-bit support. Starting February 1, 2015, new iOS apps uploaded to the App Store must include 64-bit support and be built with the iOS 8 SDK, included in Xcode 6 or later. To enable 64-bit in your project, we recommend using the default Xcode build setting of “Standard architectures” to build a single binary with both 32-bit and 64-bit code.”, WARNING ITMS-9000: “Missing 64-bit support. Starting February 1, 2015, new iOS apps uploaded to the App Store must include 64-bit support and be built with the iOS 8 SDK, included in Xcode 6 or later. To enable 64-bit in your project, we recommend using the default Xcode build setting of “Standard architectures” to build a single binary with both 32-bit and 64-bit code.”]

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter Errors = [ERROR ITMS-9000: “Invalid Segment Alignment. This app does not have proper segment alignment and should be rebuilt with the latest version of Xcode. Please contact Developer Technical Support if you need further assistance.”]

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter MinimumFileSizeThresholdForCheckum = 104857600

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter FilesToUpload = [metadata.xml, Linedrone.zip]

[2014-11-09 11:48:21 GMT] <main> ERROR: ERROR ITMS-9000: “Invalid Segment Alignment. This app does not have proper segment alignment and should be rebuilt with the latest version of Xcode. Please contact Developer Technical Support if you need further assistance.”

[2014-11-09 11:48:21 GMT] <main> DBG-X: The error code is: 1102

[2014-11-09 11:48:21 GMT] <main>  INFO: Done performing authentication.

[2014-11-09 11:48:21 GMT] <main>  INFO: The following warnings were received from Apple’s web service …

[2014-11-09 11:48:21 GMT] <main>  WARN: WARNING ITMS-9000: “Missing 64-bit support. Starting February 1, 2015, new iOS apps uploaded to the App Store must include 64-bit support and be built with the iOS 8 SDK, included in Xcode 6 or later. To enable 64-bit in your project, we recommend using the default Xcode build setting of “Standard architectures” to build a single binary with both 32-bit and 64-bit code.”

[2014-11-09 11:48:21 GMT] <main> DBG-X: Returning 1

Nov  9 11:48:21 Andreis-MBP-2 Application Loader[1172]:  Out:

Package Summary:

1 package(s) were not uploaded because they had problems:

/var/folders/6f/3w4gtq8x4nsb5nt_81w7k8j40000gn/T/05DE116A-5A3C-4143-8227-6012F2AA8C5B/928958246.itmsp - Error Messages:

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

My bad, I was including a “.so” file 

Glad you solved it.  That’s a good bit to add to our knowledge of errors.

Rob

What happens if you try and build the “Hello World” sample app?

Rob

Ok that worked  so that rules out my setup and Xcode 6.1. But what am I doing wrong with my app and how can I find more debug information?

I’ve got some debug information out of system.log

[2014-11-09 11:48:18 GMT] <main> DBG-X:   parameter Version = 1.8.3

[2014-11-09 11:48:18 GMT] <main>  INFO: id = 20141109114818-339

[2014-11-09 11:48:21 GMT] <main> DBG-X: Apple’s web service operation return value:

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter ErrorMessage = ERROR ITMS-9000: "Invalid Segment Alignment. This app does not have proper segment alignment and should be rebuilt with the latest version of Xcode. Please contact Developer Technical Support if you need further assistance.

(1102)

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter CPUToken = 8c5d33ce-20da-4648-9931-683bfd33795f/1415533692225

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter FileSizes = {Linedrone.zip=8727198}

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter AssetsToDescribe = [{UTI=com.apple.ipa, Role=source, ShouldDescribeAsset=true, Filename=Linedrone.zip}]

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter Checksums = {Linedrone.zip=827ea627df22ee2456e14a485ad86d9d}

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter ErrorCode = 1102

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter Success = false

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter Warnings = [WARNING ITMS-9000: “Missing 64-bit support. Starting February 1, 2015, new iOS apps uploaded to the App Store must include 64-bit support and be built with the iOS 8 SDK, included in Xcode 6 or later. To enable 64-bit in your project, we recommend using the default Xcode build setting of “Standard architectures” to build a single binary with both 32-bit and 64-bit code.”, WARNING ITMS-9000: “Missing 64-bit support. Starting February 1, 2015, new iOS apps uploaded to the App Store must include 64-bit support and be built with the iOS 8 SDK, included in Xcode 6 or later. To enable 64-bit in your project, we recommend using the default Xcode build setting of “Standard architectures” to build a single binary with both 32-bit and 64-bit code.”]

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter Errors = [ERROR ITMS-9000: “Invalid Segment Alignment. This app does not have proper segment alignment and should be rebuilt with the latest version of Xcode. Please contact Developer Technical Support if you need further assistance.”]

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter MinimumFileSizeThresholdForCheckum = 104857600

[2014-11-09 11:48:21 GMT] <main> DBG-X:   parameter FilesToUpload = [metadata.xml, Linedrone.zip]

[2014-11-09 11:48:21 GMT] <main> ERROR: ERROR ITMS-9000: “Invalid Segment Alignment. This app does not have proper segment alignment and should be rebuilt with the latest version of Xcode. Please contact Developer Technical Support if you need further assistance.”

[2014-11-09 11:48:21 GMT] <main> DBG-X: The error code is: 1102

[2014-11-09 11:48:21 GMT] <main>  INFO: Done performing authentication.

[2014-11-09 11:48:21 GMT] <main>  INFO: The following warnings were received from Apple’s web service …

[2014-11-09 11:48:21 GMT] <main>  WARN: WARNING ITMS-9000: “Missing 64-bit support. Starting February 1, 2015, new iOS apps uploaded to the App Store must include 64-bit support and be built with the iOS 8 SDK, included in Xcode 6 or later. To enable 64-bit in your project, we recommend using the default Xcode build setting of “Standard architectures” to build a single binary with both 32-bit and 64-bit code.”

[2014-11-09 11:48:21 GMT] <main> DBG-X: Returning 1

Nov  9 11:48:21 Andreis-MBP-2 Application Loader[1172]:  Out:

Package Summary:

1 package(s) were not uploaded because they had problems:

/var/folders/6f/3w4gtq8x4nsb5nt_81w7k8j40000gn/T/05DE116A-5A3C-4143-8227-6012F2AA8C5B/928958246.itmsp - Error Messages:

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

My bad, I was including a “.so” file 

Glad you solved it.  That’s a good bit to add to our knowledge of errors.

Rob