App rejected by Apple

I submitted my first iOS App to MAS but it has been rejected, saying the App crashed launching in a device ?!?
Of course, it runs as expected on the Simulator AND on my iPhone 4s.

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000004fb5af4
Triggered by Thread: 0

Thread 0 name: Dispatch queue: com.apple.main-thread
.
.
4 UIKit 0x2da1f217 0x2d9df000 + 262679
5 UIKit 0x2db82ca9 0x2d9df000 + 1719465
6 UIKit 0x2da1f217 0x2d9df000 + 262679
7 UIKit 0x2da1f1bd 0x2d9df000 + 262589
.
.
In the Open event of the Main View I do some variable initialization and display them like:
m_TotalAmount = 0
txtTotal.Text = m_TotalAmount.ToText(Locale.Current, mFORMAT) (mFormat is a Constant = “#,##0.00”)

I also do some constraint setting depending on the device like:
Dim c As iOSLayoutConstraint
c = Self.Constraint(“txtTotalAmountTop”)
c.Offset = 130

When I debug my program in the Simulator it works without errors.

With the above Exception-Addresses, is there a way to see where the problems are?
I belive it all has to do with Control positioning, Autolayout and setting some LayoutConstraint in code.

Thanks for any help
Peter

Have you done any testing with an iPhone 6? 4s is like ages old.

It’s also 32-bit right?
It could be a 64-bit issue.

AFAIK 4s will not support 64 bit now mandatory for the App Store since February 1st.

An app can work perfectly in the simulator, and not on a device, or work perfectly in 32 bit and crash in 64 bit. In particular with some declares.

A 32 bit application would get a quick rejection.

@Hanspeter: does the conversation need to be moved to the beta channel?

[quote=164831:@Hanspeter Stocker]I submitted my first iOS App to MAS but it has been rejected, saying the App crashed launching in a device ?!?
Of course, it runs as expected on the Simulator AND on my iPhone 4s.

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000004fb5af4
Triggered by Thread: 0

Thread 0 name: Dispatch queue: com.apple.main-thread
.
.
4 UIKit 0x2da1f217 0x2d9df000 + 262679
5 UIKit 0x2db82ca9 0x2d9df000 + 1719465
6 UIKit 0x2da1f217 0x2d9df000 + 262679
7 UIKit 0x2da1f1bd 0x2d9df000 + 262589[/quote]

You may want to file a private bug report, with attached both your project and the entire crash report from Apple.

iPhone 4 and Simulator allow 32bit testing only. You need 5s or later to actually test 64bit

The OP is not a beta tester. This thread would become invisible to him.