hej,
our ios app runs fine (with xcode 7) in the simulator and on the device without optimization. with enabled optimization the app starts, but on some user input the app crashs with the message:
"Thread 1: EXC_BAD_ACCESS (code=1, address=0x....)"
it looks that some parts of the model (global variable) doesn't exist anymore. it crashs in the funktion:
func getUnknownString () -> String {
return model.unknownStack.peek ()!
}
po model.unknownStack returns:
error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0xe000000013896413).
The process has been returned to the state before expression evaluation.
po model:
0x000000013766e720
{
unknownIsForced = <invalid> (0x5)
unknownStack = 0x000000013775d7d0 {
size = 2
items = {}
}
...
...
and many
<read memory from 0x... failed (0 of ... bytes read)>
unknownStack is a normal stack implemented with generics.
optimization worked fine(*) on xcode 6.
i hope you can help.
p
* with swift 1.2 / xcode6 we had some strange problems but we could fix everything with refactoring some methodes.