I have recently switched my app from the development to the distribution stage, but now I'm unable to install the app from Xcode to my test phone directly. The simulators work but I need to test this on an actual device, and testflight just takes too long for what I want to test.
When attempting to install the app to my phone via Xcode, I get this error
Failed to code sign <App Name>.
None of the valid provisioning profiles include the devices: <device name>
However, this device is set up on my developer account with the correct UDID and everything.
I'm wondering if its still possible to install my app directly from Xcode onto my device, and how to do so if possible.
Thanks!
Thanks to #Darklex, it turned out that under the build settings in my target application, I had somehow managed to change the code signing identity to iOS Distribution when I needed it as iOS Development.
Related
The app, which is for personal use, has worked perfectly for one year on my device.
Suddenly it stopped working. It would show the startup image briefly, and then quit immediately. That didn't surprise me, because the same thing happened with my other app, as my provisioning profile was expired. On the other app, I fixed it by rebuilding the app in Xcode, and it worked again. On the app that doesn't work, I can build it with Xcode and run in the simulator only, but if I try to run it on the device, either via Xcode or by archiving and exporting, the same thing happens: Launch image shown briefly, then it quits immediately. Xcode gives this error message:
Unable to launch /private/var/containers/Bundle/Application/AD405D63-426C-401B-8678-726D60BCB6F8/QuickDict.app
I have not been able to find any more diagnostics information. I notice that for my other app, the one that worked, Xcode uses a provisioning profile with a full app identifier, as in "com.domain.AppName", whereas for the app that doesn't work, it uses a profile with a wildcard app identifier. However, I need no capabilities for this one app that I know of. I let Xcode handle signing automatically.
On the device, the app won't run neither when launching via Xcode nor when trying to install the app via iTunes.
Xcode version: 8.3.3 (8E3004b)
Deployment target: iPhone iOS 9.2
Device: iPhone 5s
It is not guaranteed that the reason has to do with provisioning profiles, because some code has been changed after it was last deployed. However, it works perfectly in the simulator.
EDIT: I saw that my app was set up to run with release build in Xcode. I tried running the debug build instead, and got a new equally "informative" error message:
Could not launch "QuickDict"
process launch failed: Unspecified
EDIT2: In this case I had a different domain name available, and was able to get the app to work simply by changing the (domain name in the) app identifier. Clearly Xcode had an expired provisioning profile in the system which it insisted on using. This is not an ideal solution for others, so I will not write it as an answer, although the problem now no longer exists for me.
You have chosen adhoc based provisioning profile ,you have to choose development based provisioning profile .
Go to developer.apple and download your app development provisioning profile then choose in Xcode build setting -> code signing tab then launch I am sure you will able to launch your app as well.
Thanks.
I have created a minimal demo app from the default tab template and the generated apk works correctly on my Android.
I can get the generated .ipa to the iPhone 4 IOS 7 via iTune but when I try to run the app it just show a message 'installing' and the app stuck in an infinite “installing” loop.
This generally indicates a problem with the provisioning profile. Make sure that our device is one of the devices registered in the app's provisioning profile. Also, note that you can't install "app store" builds directly on your device. Those are meant for uploading to iTunes. You can only install development builds directly.
This is Minton. I've recently discovered a software known as "Adobe PhoneGap". It involves using HTML CSS and Javascript to write apps.
Everything is going fine, but when I want to put my alpha test onto my iphone for testing, it tells me that I need a valid signing certificate and provisioning profile to put apps onto my phone.
For iphone apps I have been using XCode and thus the profiles are linked to my apple ID (I'm using the free one just to put alpha tests onto my device), but how do I access my certificate files (if any) in PhoneGap?
Thanks in advance!
To run your mobile App on your iPhone you have two options :
Build the app directly to your phone via terminal command
cordova run ios --device
Add your UDID to your provisioning profile
you have to get your iPhone UDID which you can get it from you iTunes while connecting the iPhone to it
then add this unique number to Devices tab on your Apple developer account
and then add this device to your provisioning profile you are using with this APP
After finish all development on the app you can upload it via application loader which come with XCode to the app store where you can install it to any iPhone compatible with your supported version of iOS
We submitted an app recently with Apple Watch support. It installed from the App store fine but when preparing an update, we can't get it to install on a real Apple Watch anymore (fine in simulator). We have tried installing using Apple Testflight Beta and Ad Hoc builds (we, the developers do not have an actual device ourselves, just a remote tester).
The only significant thing that has changed is that we have updated to XCode 6.3 since the first release.
I have tried:
Adding/removing beta-reports-active: Debug on real Apple Watch: Application Verification Failed
Verified that the deployment target is iOS 8.2.
UUID for watch and phone are in the provisioning profiles
Provisioning seems OK when examining IPA bundle and it can be uploaded to Apple Testflight
Rebooting XCode, machine, etc.
The one thing that is suspicious, is that when exporting the IPA from XCode, the entitlements summary for the watch app have a circle/cross for the icon (no error is reported though). Also, the keychain-access-groups value is by default set to the Watch app's bundle id (not the host app). I have tried creating my own entitlement file to match though, and this doesn't seem to do anything. I would attach a screenshot but I don't have a 10 reputation...
Any help with this would be great. It is very hard debugging when you don't have the actual device. I have to make builds and wait for the one remote tester to try. Then repeat...
Update:
Now that I have the rep, here is the screenshot:
I did get a watch. The first time I tried to install it, it gave the same error. I then tried debugging in Xcode. It would install through Xcode (Xcode created provisioning XC profiles). Subsequently, I could get it to install using Testflight Beta. However, it still would not install for our external tester!
Check your certificate entitlements. Go to apple developer center and accept the new entitlement if any. Make sure you are not using beta Xcode to publish the app.
Try validating the build before pushing to Test flight(validate in archive area) and also do check the certificate is a distribution certificate.
I have developed my iPhone application using Phonegap.I am able to install my application from diawi to my development device(iPhone 5c).
Using Iphone have IOS 7.1 version and developed my application using developer certificate.
Same link on client device download the application,but application is not installed properly.The installation failed with the following error message "Could not install the xxxx(app name) application on this device".
Need help to solve this.
Since this application is installed on your phone, certificates and provisional profiles are created properly. The error on the client device may come because of two reasons:
Client device UUID is not added to the provisional profile which is used while compiling this application.
Your deployment target is higher than client's device iOS version.
I assume that you are in development phase and trying to install the app via Xcode. If thats the case then make sure 1. you have added Client iPhone UDID in the list of devices in the Member Center 2. You have included that device ID in list of devices which can install the app under your provisioning profile. 3. If you are using Team Provision Profile, then make sure all devices are associated with the team + all development certificates are associated with the team. If you have already release a app then I am sure you had created a distribution certificate. Just before you submit your app to the store, you create a signed archive of your app and validate it. Test your final build before submitting it to the store, and if you have not done so, test the archive again for regressions after validating it. Link 1
If you are targeting a specific iOS version (for e.g.: 7), make sure client's devices has <= of that.