iPhone has denied the launch request Xcode 10 + Cordova - ios

I have built a Cordova app, I've recently been able to build the app and run it on my phone prior to adding a new paid Apple Developer account to Xcode (not a Personal Team account).
Since adding this account, I am encountering the issue where the app will successfully build, but won't launch on the iPhone, it will continuously close every time I tap the app icon, in addition the error I get in Xcode is:
iPhone has denied the launch request.
Internal launch error: process launch failed: Unspecified
I'm running Xcode 10.2.1, building to an iPhone 6S Plus running iOS 12.4 (the latest), and am using Cordova 8.0.0
I've tried deleting the Apple Worldwide certificate, adding a new account, adding a new user to the system, restarting the machine, changing the Bundle Identifier.
Inside of the signing tab in general I have:
Team: [name of team]
Provisioning Profile: Xcode Managed Profile
Signing Certificate: iPhone Developer: [name of person] ([some ID])
In addition, I have currently got the following command: cordova run ios --buildFlag='-UseModernBuildSystem=0'
But the build system shouldn't matter here.
EDIT
Updating to Xcode 10.3 doesn't solve the issue.

Related

I just can't get App Check to work on my iOS deployment

I have been trying and trying to enable App Check for the iOS version of my app. The Android version is working fine.
I have followed the instructions at: https://firebase.google.com/docs/app-check
Here is my build output:
flutter build ipa
💪 Building with sound null safety 💪
Archiving [bundle ID]...
Updating project for Xcode compatibility.
Upgrading Runner.xcscheme
Automatically signing iOS for device deployment using specified development team in Xcode project: [team ID]
Running pod install... 10.6s
Running Xcode build...
└─Compiling, linking and signing... 10.8s
Xcode archive done. 358.4s
Built .../build/ios/archive/Runner.xcarchive.
Building App Store IPA... 4.2s
Encountered error while creating the IPA:
error: exportArchive: "Runner.app" requires a provisioning profile with the Push Notifications and App Attest features.
Try distributing the app in Xcode: "open .../build/ios/archive/Runner.xcarchive"
My provisioning profile looks like:
My XCode Signing & Capabilities:
I used Xcode to distribute the app archive to App Store Connect, which was successful.
When my son loads the app via TestFlight on his iPhone, he cannot use any function that reads/writes to Firebase (in enforcement mode). I can see in the Firebase console that the requests from his iPhone are invalid and are being rejected.
Anyone got any suggestions? I feel like I've tried everything.
Thanks,
Luke

iOS - Xcode Automatically Manage Signing Not Work With Ionic 4 Cordova Project

I have created a iOS app using ionic 4 with cordova and I have used following command to build iOS platform.
ionic cordova platform add ios#4.5.1
ionic cordova build ios --prod --release
After that I have open the xcodeworkspace file using Xcode and tested using simulator as well.
But when I trying to upload it to App Store I can't do it because this automatically manage signing doesn't work.
Here is the error Xcode shows.
Xcode Version : 12.1
I have try following solutions but didn't work them.
Deleting provisioning profiles in ~/Library/MobileDevice/
Restart the Xcode
Adding and removing push notification capabilities as described here iOS - automatic signing is unable to resolve
All the solutions in here as well Xcode - error
The file path is APP > Platforms > ios > Cordova > build-release.xconfig
And in the file, iPhone Distribution is explicitly set for CODE_SIGN_IDENTITY.
Change:
CODE_SIGN_IDENTITY = iPhone Distribution
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Distribution
To:
CODE_SIGN_IDENTITY = iPhone Developer
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer
After all these solution it shows above error.
EDIT
I have a doubt with this signing certificate also. Is this normal with individual developer program ?
EDIT 2
Here I have noticed identifiers are automatically created using Xcode. But there is no certificates or profiles. Why is that?
EDIT 3
Manual signing works
After suggestion by
#MostafaHarb
I have add certificates and profiles manually add install them. After that only it allows me to use manual signing.

Xcode couldn't find any iOS App Development provisioning profiles matching "App Name"

I am trying to build flutter with one of XCode's simulators but it is giving me this error in the general tab of Runner Xcode
couldn't find any iOS App Development provisioning profiles matching
"App Name"
also the build fails with this error:
ld: library not found for -lFMDB
is it possible to run ios without enrolling to apple developer plans(also is it possible to build IPAs this way?)
Running a Flutter app on an iOS simulator doesn't require an Apple Developer account, unless you need to have some Capabilities enabled in the iOS app for example. If you're using Android Studio, you can run the Flutter app on an iOS simulator easily after it has been set up.

ApplicationVerificationFailed from Nativescript CLI

I am using the latest version (2.0) of the Nativescript CLI. I recently updated by iPad to iOS 9.3 from iOS 7. Prior to this upgrade, I was able to run Nativescript apps on my device using "tns run ios". Since the upgrade, I get the following error:
Error: ApplicationVerificationFailed
ErrorDescription: The bundle being installed with bundle ID org.nativescript.bluetoothdemo2 is authorized by a free provisioning profile, but apps validated by those are not allowed to be installed from this source.
I have attempted to change the bundle ID (hence the 2) and generate new provisioning profiles to no avail. I have opened the project in xCode and the "Fix It" button is not available. The project does run in xCode.
This is how I solved the same problem.
1) Opened up XCode project that Nativescript generated, tried to run it, but it failed with message that apphas to be verified on the phone itself.
2) Opened up phone General settings > Profiles and Devices Management > Developer App.
3) Verified the app.
4) Built and run app via "tns run ios --device 1" normally without any problems.
Hope it helps :)
I would recommend you try the following:
1) Remove the platform/ios by running tns platform remove ios
2) Make sure your package.json contains the correct bundleID (this will be passed to your xcode project when you build).
3) Make sure you use the same BundleID from your Apple dev-certificates.
4) Add the platform/ios by running tns platform add ios
5) Prepare & Build: tns prepare ios & tns build ios
6) Go to your .../platforms/ios folder and open the .xcodeproj or .xcworkspace
7) Go to "General" tab of you main app target and under "Identity" group make sure you have the correct BundleID and the correct Team (your Apple dev account).
8) Go to Build Settings tab and under Code Signing group the Code Signing Identity key is set to iOS Developer (your dev Certificate), and that the Provisioning Profile is set to Automatic (when publishing it will automatically choose the correct profile).
Now you can just close XCode and run the app via CLI.

Phonegap Build App never installs in iOS 7

I'm developing an App with Phonegap Build and Cordova 3.3.0 for iOS.
I've installed and tested my app in iOS 6 and everything it's ok. I can install it and test it. But when I try to install it in iOS 7 (the same app, the same .ipa), the app stay in "Installing..." and never installs.
Cordova 3.3.0 it supposed to support iOS 7. I verified the UDID of my devices are corrects in my iOS Certificates.
Any idea why my Phonegap App in iOS 7 stay in an "installing loop"?
Phonegap Build use the iPhone Developer Certificate (.p12) and the Development Provisioning Profile (.mobileprovision).
Verify the UDID of all your devices are correct in your Provisioning Profile.
How to know my UDID of my Device?
You have to be sure that ALL your test devices are added into your Provisioning Profile. If you add new devices later you have to REGENERATE your provisioning profile and update your iOS Sign Key in your Phonegap Build Panel with the new Provisioning Profile.

Resources