I have tried again and again to generate and install the .mobileprovision on my device for testing apps following the exact instructions. I cannot get this to work. When I tap the .mobileprovision on the device I get the error "Profile Error - This profile cannot be installed."
In Xcode in the console as I try to install the profile, this is what it shows:
`profiled (ManagedConfiguration)
Desc : Invalid Profile
US Desc: Invalid Profile
Domain : MCProfileErrorDomain
Code : 1000
Type : MCFatalError
and then
profiled
Desc : Invalid Profile
Sugg : Invalid Profile
US Desc: Invalid Profile
US Sugg: Invalid Profile
Domain : MCInstallationErrorDomain
Code : 4000
Type : MCFatalError
...Underlying error:
NSError:
Desc : Invalid Profile
US Desc: Invalid Profile
Domain : MCProfileErrorDomain
Code : 1000
Type : MCFatalError
I have been at this for days and cannot get it to work. Any help would be appreciated
I wanna start by correcting some misconceptions. First, in modern iOS development workflows you never need to install a provisioning profile on a device. Rather, Xcode embeds the profile within the app and the system picks it up from there [1].
Second, if you’re a member of a paid developer team, your provisioning profiles last for about a year. The only time where you’ll see a profile with a very short lifespan is if you’re using free provisioning [2]. Xcode shows this as a Personal Team.
I’m not 100% sure what’s going wrong with your setup but my advice is:
-
In Xcode > Settings > Accounts, makes sure you’re signed in to your paid developer account.
-
Create a new project from the iOS > App template.
-
In Signing & Capabilities, enable automatic code signing.
-
And choose your paid team from the Team popup.
After that, Xcode should take care of everything.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
[1] The exact placement is documented in Placing Content in a Bundle, but that’s only relevant when you’re debugging problems. For day-to-day development, you just let Xcode do its thing.
[2] And even then your profiles should last for seven days. For the details, see Developer > Support > Choosing a Membership.