Xcode Failed to create a provisioning profile - ios

I have an iOS app I am trying to develop and test in Xcode. However, I get the error below. I do not have a physical Apple device, but would like to test this on an iOS Simulator. I thought this should launch a Simulator if I press the play button, as I have selected iPhone 6s Plus for example, but it just says "Build Succeeded" and does nothing.
Question
How do I resolve the errors below, and test the app on a Simulator?
Thanks
and

This is not because of Provisioning profile or Automatic manage signing.
You've selected the wrong target, Please select the target as 'theWhoZoo' (which is beside Run & Stop button at the top) and run on Simulator again.
While running on Simulator, you don't need the Provisioning profile or Automatic manage signing.
As shown in image below:
Hope this helps!

For me, it worked just turning off 'Automatically manage signing'.

Maybe they didn't give you full account access. Check if this link:
https://developer.apple.com/account/ios/certificate/
Show this pop-up

Related

Using my device as an Emulator: "Archive" button is greyed out

I am trying to create an IPA from my device (Iphone app) that was written in XCode. While doing so I encountered a little problem, "product -> archive" is grey and blocked.
As I saw in Xcode 4 - "Archive" is greyed out? in the top bar after the play/stop btn there should be: "project name > iOS device" to allow to iPA the project (press here to see the picture), but i don't find such an option on my mac!?
If this might help to answer my question i should say that I do have an option to select "Generic iOS Device" but then I have an error while building "No code signing identities"
I will be very happy for help :)
Thanks,
Tomer
The "Generic iOS Device" is the correct option to do an archive. If you dont have any code signing identities, go to the Xcode preferences account tab, and add your apple developer account. You may have to make a provisioning profile for your app

iOS 9.2 missing Profile section from General Settings

I was trying to activate a developer app in iOS 9.2 and the app was not trusted due to security settings. I tried to go into the Profile area under General Settings, but it wasn't there. What gives? It was there this morning . . .
Apple renamed the Profile section to Device Management. It is still under General Settings and performs the same function.
This somewhat worked for me: Instead of looking in the device, go to XCode, Devices (Under Window), ctrl -click on the device and you should see a "Show Provisioning Profiles" menu item.
I had the same problem and I couldn't debug my apps anymore.
I used the Apple Configurator (https://itunes.apple.com/de/app/apple-configurator-2/id1037126344?mt=12) to delete all of my profiles on the iPhone. Afterwards I installed another signed app again and now I can debug again.
But I still can't see "Device Management" in Settings.
I was successful doing this when I accidentally went to Product>Profile once the build is finished head over to your phone then Settings>General> then the Device Management will instantly appear under VPN.
I am at iOS 12.1.2(16C101) and was trying to verify that the Developer App certificate for my account is trusted on my device. Found the option at
General -> Profiles & Device Management.
If "Device Management" doesn't appear you must restart your device to see it.
This worked on ios 9.

iOS- Provisioning profile issues.

OK, so I have tried everything possible but still having issues.
I am testing on two devices. An iPhone and an iPad. When I connect the iPhone to Xcode and hit run it builds on the iPhone without any problems but when I connect the iPad to Xcode and hit run it fails and gives me this
This product type must be built using a provisioning profile, however
no provisioning profile matching both the identity
I used to be able to test very easily before I upgraded to Xcode5.
Now it works on one device but not the other. Can anyone please tell me how I can fix this?
All my devices are upgraded to iOS 7.1 as well.
In order to fix this problem, please follow these steps:
I. Go to Xcode Settings (Xcode -> Preferences), and select "Accounts." Make sure you are signed in to your developer account.
II. Click on the first tab under the run button, and then click on the name of the project (circled in red)
III. Under "Identity" select the account that matches your build identifier, or click "Fix Issue"
IV. If this does not fix your issue, go to "Build Settings" -> "Code Signing"
V. Finally: If this does not fix your issue, go back to the Certificate Center in the iOS Developer Center (developer.apple.com) and reprovision the certificate, then repeat these steps.

Xcode "Could not launch". Only reports "Security" as error

I've edited the app name out. Other than that the dialog is exactly like this.
I'm developing an enterprise app and I've tried restarting xcode and the iPhone I'm developing on.
No change. Anyone encountered this? Are there any log posts that could point me in the right direction or get me more details. There is nothing in the regular log from what I can see.
Update
Found this in the device log:
<Warning>: Unable to launch com.bundleID.etc because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.
Which is a bit weird since it worked yesterday and all profiles etc. were issued a week ago.
Apparently after upgrading the OS and such you must manually launch the app on the device and say that you trust the developer of the software.
That error message disappeared now.
Using xcode 7 with an iOS device running version 9.2, I had to:
Open 'Settings'
Tap 'General'
Tap 'Device Management'
Tap 'Developer App' that's in the list
Tap 'Trust (developer name)'
Tap 'Trust' in the popup
The app should load and launch when you run xcode.
I had the problem of not having the app on my device, so I couldn't manually launch it to accept the prompt. For me, I got this to work after deleting all expired provisioning profiles from my device, which forced Xcode to install a new one.
After this, I was able to get my app to run.
I just got this issue running on an iOS 8 device for the first time as it required me to launch manually on the device (it copies it fine but doesn't launch it) and then state that I trust the developer.
I had the same issue solved like this:
It can be happen because your developer profile is not assigned as TRUSTED in your phone or watchos settings.
You can set your profile as TRUSTED as below:
Go to Settings,
Profile
Assign your profile as Trusted there.
If you sign the app with Enterprise provisioning you will get this error. It will still install the app on your phone, but apparently you cannot debug an app signed this way. You must either sign the app with Developer provisioning or manually launch the app in the phone.
Choose Window->Devices.
Right click on the device in left column, choose "Show Provisioning Profiles".
Click on the provisioning profile in question.
Press the "-" button Continue to removing all affected profiles.
Re-install the app.
To fix the process launch failed: Security issue, tap the app icon on your iOS device after running the app via Xcode.
Be sure to tap the app icon while the Xcode alert is still shown. Otherwise the app will not run.
Run the app via Xcode. You will see the security alert below. Do not press OK.
On your iOS device, tap the newly installed app icon:
After tapping the icon, you should now see an alert asking you to "Trust" the Untrusted App Developer. After doing so the app will immediately run, unconnected to the Xcode debugger.
If you do not see this "Trust" alert, you likely pressed "OK" in Xcode too soon. Do not press "OK" on the Xcode alert until after trusting the developer.
Finally, go back and press "OK" on the Xcode alert. You will have to re-run the app to connect the running app on your iOS device to the Xcode debugger.
Happened to me when my iPhone was in offline mode. Giving it access to the Internet fixed the problem.
I had the same problem as above and resolved it by changing the code signing identity to iOS Developer
(I had tried all of the other steps above first)
I can now run the app in xcode and see debug output
My solution was, use Internet on your phone cause the app must verify the email, then build again, this time will show a popup in which you can press trust and now everything works fine.
Side note: I'am developing with Flutter

Provisioning New Device for Development Xcode

I am a new iOS developer, and although I have been successful in provisioning a device for development in Xcode in the past, I just obtained a new device and am having an awful time getting Xcode to provision it and allow me to test applications on it.
When I connect the new device to Xcode, Xcode does recognize and identify the device correctly, however when I run the application I get the following error message: "A valid provisioning profile for this executable was not found."
According to the Apple documentation, I am supposed to first request a development certificate in Xcode using the following steps:
Choose Window > Organizer > Devices
Select Provisioning Profiles.
Click the Refresh button at the bottom of the window.
Enter your user name and password and click Log in.
After you sign in to your account, a prompt appears, asking whether Xcode should request your development certificate.
I have followed steps 1 - 4 repeatedly and each and every time Xcode crashes before I can get to step 5. I have tried completely closing xcode, detaching device, cleaning project, restarting computer, etc. Is there another way to request a development certificate outside of Xcode?
Ok so then the docs say I should provision the device (granted I assume this step is contingent upon the success of the previous step which I cannot achieve, but I tried it anyway) using the following steps:
Connect your device to your Mac.
Open the Devices organizer
select your iOS device.
Click the “Use for Development” button. The first time you add a device ID to your account, Xcode creates the iOS Team Provisioning Profile using the iOS Wildcard App ID, your development certificate, and the device ID. The iOS Team Provisioning Profile is also installed on your iOS device. If the device was used for development in the past, the “Use for Development” button may not appear. If this happens, click “Add to Portal” at the bottom of the screen instead.
So the "use for development" button does not appear (it appeared the first time I attempted this and hasn't since), so I clicked the "add to portal button". Every single time I do this, Xcode crashes.
I currently have the code signing identity set to iPhone Developer (my name). I have also tried setting it just to iPhone Developer and even Do Not Code Sign. I also went to the iOS dev center and added the device there (not sure if I needed to do that or not).
In any case, can anyone suggest anything I might be missing or any other approach?
While I was sleeping, Apple completely abolished the Portal and created a new and apparently largely broken interface. It's like a kind of evil April Fools joke. Anyway, if you go to https://developer.apple.com/account/ios/device/deviceList.action there's a great big sign telling you that you must "reset your device list before adding any new devices". That sounds like it covers exactly your case. Good luck.
I also went to the iOS dev center and added the device there (not sure if I needed to do that or not).
You need to add the device there.
Steps You need to follow after adding device:
Next re-download the mobile provisioning profile again.
Go to organizer and delete the old mobile provisioning profile you had.
Double click the new mobile provisioning profile you just downloaded and see that it appears on the organizer.
Connect your device and you should see your device's name instead of iOS device.
hope this helps.
If you are looking to bypass the 'Register a Device' portion of the Provisional Profile registration simply upload the 'sample .txt file' they provide you and upload it. You will then be allowed to click 'Next' to finish the registration so this way you do not have to enter a device UID.

Resources