So I install Xcode 8.2.1, open Preferences > Accounts, add my (non-developer program) account, create a new Single View Application project, plug in my iPhone 5 (running iOS 10.2.1), set the scheme to my iPhone device, then hit the Run button.
What happens is I'm told that no valid signing profiles could be found. So I go back to Preferences > Accounts, click my account > View Details... and then "Download All Profiles"... But it doesn't work, and I get an email about my certificate being revoked.
Why? I used to have a valid, paid ios developer account, but I lost my macbook pro during that year. Now that I finally have another mac, and now that Apple (supposedly) provides free code signing, provisioning, and deployment to iDevices (for testing), all I wanna do is develop an iOS app and test it on my iPhone.
What could cause this? How can I fix it?
Okay so I finally got it working...
Here's what I did:
- Reinstalled & Updated Mac OSX (El Capitan v10.11.6)
- Restored my iPhone to factory settings (No additional apps, running iOS 10.2.1)
- Visited developer.apple.com, logged in with my new account (rectangleequals@gmail.com), accepted the terms & conditions
- Reinstalled & Opened Xcode (v8.2.1), and DID NOT open any projects (yet)!
- Connected my iPhone
- Went to Preferences > Accounts > my account > View Details...
- Removed all provisions (Right-click > Move To Trash)
- Redownloaded all provisions
- Opened the project
- Cleaned the project
- Ran the project
Not sure exactly what the hold up was, or if some of these steps were unnecessary, but at least it actually installed onto my device.