I am developing an app based on Images. I am at basic level, I am debugging app using xcode 7.2.1 in iPhone 5 (iOS 9.2.1). Initially, I able to run app in mobile. Later after one week I started developing app further. Now, my app closes automatically within 1 to 2 seconds after tapping (opening).