Difference of memory organization between iOS device and iPhone simulator

前端 未结 2 1762
暗喜
暗喜 2021-01-17 00:38

I\'m trying to develop an app using Xcode 4.3.3 with iPhone 5.1 simulator.

When i run this app on simulator, i got no warnings and it\'s working very well. But,when

相关标签:
2条回答
  • 2021-01-17 01:10

    you should better do not debug with the simulator , because the simulators memory is the mac , but your devices memory is very limit , and the capability of the simulator is better

    0 讨论(0)
  • 2021-01-17 01:17

    You will never get memory warnings in the simulator unless you create them yourself (with the "Simulate Memory Warning" option). You have access to the entire memory of the Mac, including virtual memory. You had better not run out with a mobile app...

    If you're seeing memory warnings on device, it means you're using too much memory. The best tool for determining where you're having trouble is Instruments and specifically the Allocations instrument. This will show you what is taking the most memory and where you should focus. Most memory warnings are due to a leak or retain loop.

    0 讨论(0)
提交回复
热议问题