A valid provisioning profile for this executable was not found. BUT I'VE TRIED ALL THE OTHER SOLUTIONS POSTED HERE!!!!

So I'm trying to run my Cordova-based app on my iPad Mini 2 (iOS version 12.5.5), and I keep getting the "A valid provisioning profile for this executable was not found." error. FOR THREE DAMN DAYS NOW!!!!!!!!!!!! (The Enterprise version of this app runs just fine on this iPad, btw. It's clearly not Cordova and it's not this iPad, despite its age.)

I have deleted EVERY LAST CERTIFICATE AND KEY from my computer. I have revoked EVERY LAST CERTIFICATE and DELETED EVERY LAST PROFILE from my developer account. I have created TWO NEW CERTS -- one for Apple Development and one for Apple Distribution.

I have created TWO NEW PROFILES -- one for Apple Development (using my brand-new Apple Development cert) and one for Apple Distribution (using my brand-new Apple Distribution cert).

I have downloaded the two new certs and the two new profiles and double-clicked on them. The certs DO appear in my Keychain Access app. The profiles DO appear in XCode.

In XCode (13.4.1 (20504) (Build 13F100)) I have ensured that Targets | myApp | Build Settings | Code Signing Identity is set to Debug: myNewAppleDevCert, Release: myNewAppleDistCert, and that Code Signing Style is set to Manual. Also in Targets | myApp | Build Settings | Deployment | Targeted Device Families is set to "iPhone, iPad" and iOS Deployment Target is set to 12.4 (it won't let me choose 12.5 -- that's not in the list, but 12.4 should work, I would think).

Also in XCode, I have ensured all of the above for Project | myApp | Build Settings as well. The same Code Signing Identities, the same Code Signing Style, the same Targeted Device Families, the same iOS Deployment Target.

The app runs fine on my iPhone 11 Pro (iOS version 15.5). SO WHY WILL IT NOT RUN ON THIS STUPID IPAD?!!! I HAVE DONE EVERYTHING THAT EVERY POST REGARDING THIS ERROR MESSAGE TELLS ME TO DO, AND YET IT STILL WILL NOT WORK!!!!!!!!!!!

This is STUPID!!! I have spent THREE DAMN DAYS on this!!!!! WHY WILL THIS APP NOT WORK ON THIS IPAD?!!!!!

It’d be easier to read your post if it weren’t full of uppercase text; that’s hard to read and comes across as shouty.

My advice in situations like this is that you start by creating a new test project from one of the built-in Xcode templates. Make sure that “Automatically manage signing” is set in Signing & Certificates.

When you do this, select the Storyboard interface and the Swift language. You’ll encounter compile-time problems when you switch the deployment target back to iOS 12 but you can get past them by just commenting out UIScene code until the app compiles. Remember that you don’t need this code to run properly, you only need it to test the build and installation process.

If you do this, can you get the app to start on your iPad?

Just for grins I dusted off (literally) an iPhone 6 Plus running iOS 12.5.5 and ran through the above process on that (I’m using Xcode 13.4.1 on macOS 12.4). The app built and ran just fine. Specifically, I set a breakpoint in application(_:didFinishLaunchingWithOptions:) and it stopped in the debugger. Going any further fails, because I don’t have any code to replace the UIScene code that I commented out, but IMO that doesn’t matter for this issue.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

It IS shouty because I'm PISSED OFF! I've spent a WEEK on this stupid problem, to no avail.

I know literally nothing about XCode, other than how to set a few things in the info.plist file. Definitely don't know how to do anything with creating new projects inside it, and it would do nothing to help me anyway, because I need it to work on THIS project, not some other random test project. I have plenty of other Cordova projects that don't give me this problem, so it's not Cordova and it's not my test devices.

The way I create projects in XCode is by typing cordova platform add ios and then cordova build ios at the command line in a Terminal window. Then I open the .XCodeProject file it creates from that. I set the App signing to use the profiles I created for the project on developer.apple.com, and then I run it on a couple of devices locally to make sure it works, then I do Project | Archive to get an .IPA file out of it, upload that file to the App Store, and we're good.

On this particular project, and only on this particular project, I'm currently stuck at the "run it on a couple of devices locally to make sure it works" part. It works fine on any iOS 15.5 device, but refuses to run on any iOS 12.5.5 device.

AND THIS IS THE FIRST AND ONLY CORDOVA PROJECT TO EVER DO THIS TO ME IN 8 YEARS OF WRITING APPS THIS WAY!!!!! I've got others and they all work fine. I can create a test project in Cordova and it works fine. EVERYTHING WORKS BUT THIS STUPID PROJECT!!!!

Why would it not be able to find a provisioning profile for a specific VERSION of iOS?!!! Either the profile exists, or it doesn't, right?! Clearly it DOES exist, since it runs on iOS 15.5. So why not on 12.5.5?! It make ZERO SENSE!

A valid provisioning profile for this executable was not found. BUT I'VE TRIED ALL THE OTHER SOLUTIONS POSTED HERE!!!!
 
 
Q