iPhone development: pointer being freed was not allocated - Stack Overflow
去年九月就被困擾了。Duplicate rdar://problem/7025404
看一個錯誤訊息看了老半天,錯誤訊息發生在 UIImage dealloc 的地方,自己 trace 個不出所以然來,就去看了 stack overflow。就有人這麼說:
If I change the build target to 3.1, the errors in the simulator go away. If I run the code on the device, the errors don’t appear. Possibly a bug in 3.0
My advice is to test with 3.1 as your target, and if you want, you can build for 3.0 for release and not worry about the errors as they don’t happen on the device
既然連 3.0 都會遇到這種問題,那-這個專案可不可以只要支援 3.1,連 3.0 都不要支援呢?嘎嘎嘎。