如果你的app運用了CoreData技術,那麼在你修改了DB字段以後,再在舊版本上升級爲新版本時會crash. 因爲升級只升級了應用app,沒有升級目錄下的db文件。如果是開發當中,只需要deleate app再install一次。如果是上傳到appstore的軟件,那你可要小心處理了,沒有經過migrate處理的app,用戶升級後必然會crash.
所需要的技術就是CoreData versioning and migrate.
http://mobile.tutsplus.com/tutorials/iphone/core-data_schema-versioning-and-lightweight-migrations/