I cannot get around this. I have tried everything with no sucess. any ideas. i am using xcode 7.3.1
I think what you meant (clearly out of frustration) was that you've had no success with everything you've tried so far 😉 - no surprise when older versions are used as examples for current tools, I guess.
>I have a free developer account.
You might want to confirm your process in that case.
-=-
Free provisioning*/testing on your device:
• From within Xcode 7.x (Mac only), navigate to “Xcode—->Preferences—->Accounts.” Hit the '+' icon below left to add your Apple ID. After you add your account, it will show within the main account window on the right.
• Select your account, hit the “View Details” button and wait for them to load.
• Now create the 'signing identity' used to create a provisioning profile used for device testing - Hit the “Create” button next to the 'iOS development' label. When completed, hit ‘Done’.
• Connect your device and select it as build destination via the 'active scheme' dropdown to the right of the play and stop icons.
• In target's 'General' tab/settings:
• a. Set app identifier you want for your free profile
• b. Set team id as your apple id
• c. Hit 'Fix Issue' button below the provisioning profile warning
• Run your app with your device selected.
You may have to 'fix issue' more than once - keep at it so Xcode can step thru them as needed.
- The profile will be valid for 1 week, after which time you will need to recreate a new one.
- What you can/can't do w/free provisioning is listed here: https://developer.apple.com/support/app-capabilities/
- If this is about creating an /ipa to manually hand off, select Build For Archiving under the project menu, not ‘Run’.