The A6 chip, for instance, may incorporate standard ARM cores and chips, but it was developed using a custom internal design process. Similarly, the new combined-glass-and-digitiser screen must have involved a fair bit of R&D spend and changes to the manufacturing process before it could even be produced in the required volumes.
Apple consistently quotes a 30-40% margin (not gross margin) on its iOS range, which is not unreasonable considering the additional costs it sustains in developing value-added services like iCloud and having a good support setup in place.
Looking at the court records that were unsealed recently I honestly don't think the real iPhone BOM has changed that much from model to model, with the exception that it's hugely profitable for Apple to continue to sell the older model (now the 4S) with cheaper-to-produce components.
http://www.eetasia.com/ART_8800674648_480700_NT_eff210e8.HTM...
And sure, I realize that's not the whole cost for selling an iPhone, but if I remember correctly, a "new" iPhone's BOM used to be somewhere around $250-$300. I'm certainly seeing a trend downwards in cost. I think they mention the iPhone 4S BOM is cheaper "now", but I think it was more than $167 when it first launched, even though they barely changed anything. The iPhone 4's BOM was certainly higher.