please follow the below steps :-
Requirements: You must be running iOS 9 on your devices (iPhone or iPad), latest Xcode 7 and you’ll need a free developer account, which lets you “test on device”.
Step 1: Launch your application which you want to run on device.
Step 2: Connect your iOS device via USB.
Step 3: In the drop down device selection menu, select your device (not a simulator).
Step 4: Wait as Xcode 7 indexes and processes symbol files. This may take a while as well, so be patient. Once complete, the status will say Ready.
Step 5: Click the Play button (Run application). You’ll likely get an error that says “failed to code sign”. That’s okay. Click Fix Issue and click Add to log in with your developer account. Remember, you don’t need a paid developer account, but you will need a free developer account (Apple ID). If you don’t have a developer account, create one by clicking Join a Program instead.
Step 6: Once you log in, click the Play button again to proceed with the compile. You may receive another error that says An App ID with Identifier…is not available. Please enter a different string. To fix this, click the General tab, and give the Bundle Identifier a unique name (delete the name between the two dots and add your own name. Leave the prefix and suffix as it is).
Step 7: Click the Play button once more. The compile should complete, and you’ll see the app that you compiled appear on your iOS device’s Home screen.
Step 8: You’ll need to enable access to the app by trusting the developer on your iOS device. This can be done by going to Settings → General → Profile and tapping on the Developer app and granting access.
Step 9: Launch the app on your device Home screen, and iOS should allow you to use it.
Happy code signing :).
Note: you cannot test Push Notification and In-App purchase on Free Membership Account.