I cannot get the "Over The Air" installation of iOS apps to work using the latest version of macOS (10.12.5) and Xcode Server (5.3.1). I can create Xcode Bots and the integrate without any issue, but it always fails with "cannot connect to server.local" when trying to install the app from any device.
The "Xcode Server OTA Installation" profile is installed.
I can download the archive and product using Safari on the Mac without a problem.
In summary, everything work but the OTA installation always fails.
Tried on two different Macs already, also with a complete clean installation of macOS before.
Versions: macOS 10.12.5, Xcode 8.3.2 and Server 5.3.1
I found several old reports of this problem but all the workarounds didn't seem to help.
Same problem on Xcode 9 beta 1 with the now built-in Xcode server.
For iOS 10.3 and later, a reason why fails, in some cases, with "Cannot connect to *.local" is that self-signed certificate shall be trusted manually in Settings on test devices (eg. iPhone).
Steps as follow:
Install self-signed certificate(s) from Xcode server's bots page on your iPhone;
Go to iPhone's Settings->General->About->Certificate Trust Settings;
Find your server's self-signed certificate(s) under section ENABLE FULL TRUST FOR ROOT CERTIFICATES, and turn the switch ON;
Visit bots page on Xcode Server, click install.
My SSL certificate had expired thats why happened to me. Make sure you add that to the list of things to check. Once I renewed that it started working again.
I had this issue on Xcode9 GM. I have installed profile on the Xcode server page and trust the profile. Is this a signing error? I use "export: installable product" for server bot.
Related
/Users/Alex/Library/Developer/Xcode/DerivedData/MyProject-ehabmnclpzlywhabrefntacibonm/Build/Intermediates.noindex/ArchiveIntermediates/Fuego/InstallationBuildProductsLocation/Applications//MyProject.app/Frameworks/Alamofire.framework: unknown error -1=ffffffffffffffff
Command /bin/sh failed with exit code 1
I got this issue when I Archive my project. When I run app on simulator it works ok without such issue above.
Also it works ok with Xcode 8, but now when I try to Archive it on Xcode 9 I have this issue. But maybe this is not the case as I reinstall Mac OS from scratch, so it maybe cocopods version issue I am not sure.
Also two // here in the example above is also strange for me /Applications//MyProject.app
I believe it's a Xcode's bug. Restart your Mac and try to build again. Xcode would ask permission to access your Keychain before build Alamofire, then just allow it.
Hm it's very strange after some search on the Web I found that this is actually signing issue.
I used Xcode to generate new distribution certificate and maybe this leads some problems for me.
What I did to solve my issue.
I removed all certificates on my Mac and in my apple account.
I removed all prov profiles as well on my Mac and in my apple account.
I requested certificate and save it on the disc manually (not via Xcode )
I recreated certificate and profile. Downloaded it manually and double click on it.
After that I faced with keychain issue when I can not enter password to allow signing my certificate. I use this link to move certificate form login to system section.
Finally I get it work.
I am trying to build an iOS app in Debug|iPhone configuration on Xamarin Mac, but I am getting:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: Error: Tool exited with code: 1. Output: error: The specified item could not be found in the keychain.
This all started when I had to reset my default keychain and lost my certificates. I've tried fixing it by:
Creating a new certificate manually (ensuring I had "Apple Worldwide Developer Relations Certification Authority" when requesting the certificate from the certificate authority as suggested here)
Creating a certificate using xcode 8.3.1 (exporting this certificate onto another machine lets me build fine on that machine)
Importing my certificates from my old keychain (each time I created a new certificate I ensured to update and download the provisioning profile)
exporting a working certificate from another user on another machine and importing it onto my machine
uninstalling Xamarin studio, deleting the folders mentioned here, and installing Xamarin Studio 6.1.3 + Xamarin.iOS 10.4.0.123 (was using 6.1.3 + 10.2.1.5 previously)
uninstalling Xcode 8.1 and installing Xcode 8.3.1
installing visual studio for mac (this gave me a different error "EnsureBindingRedirects task failed unexpectedly" - likely a separate bug)
The fact it failed to build when using a known working certificate/provisioning profile combo on another machine leads me to think that Xamarin is having a problem finding the certificate when doing the build, even though it sees the certificate and provisioning profile in Project Options -> iOS Bundle Signing. There could also be an issue in the Keychain somewhere.
Any help on this would be greatly appreciated.
I fixed this by doing the following:
security dump-keychain -d login.keychain to list all the items in my keychain
Noticed there was an extra certificate that was not showing up in Keychain Access
Deleted this item using security delete-identity
Did diskutil resetUserPermissions / $(id -u) and restarted my Mac
I'm not sure if steps 1-3 are necessary, so if you are having this issue I would try step 4 first and see if that works.
I am using Visual Studio on a mac and my solution was to shut down Visual Studio and start it again after logging out of Apple Developer Account in the visual studio preferences.
I am having an issue running my app on the device after installing the "cordova-plugin-mfp-push".
In Xcode , I see the error..
Unable to install "my app"
the certificate used to sign "myapp" has either expired or has been revoked. An updated certificate is required to sign and install the application.
When I remove the plugin the error goes away and I can deploy to my phone.
Can you give some hints on how to debug this issue. My certs is valid and push is enable for the certs.
I am using MobileFirst version 8 , xCode 7.3 with the mfp template
Thanks for your help
To help propagate the changes that are added by the push framework removing the ios environment and adding it back in has resolved a similar issue in my environment:
$ cordova remove ios
$ cordova add ios#latest
Once you have re added the ios platform run cordova prepare and cordova build ios
Once the above steps are completed you can open the project in Xcode. Here Xcode will find two warnings that can be automatically handled by Xcode that are worth updating. Review what will be updated and correct the warnings. See image below:
At this point you should be able to run the project successfully.
dUsing APNS requires the Push Notification capability and therefore a new certificate. You can renew the certificate within the Apple Developer Portal (Certificates, Identifiers & Profiles).
Alternatively you could use Xcode 8 which simplifies certificate handling a lot when using automatic code signing.
I was facing the same issue. After adding mfp-push plugin I was unable to install the app on iPhone with error saying "The application does not have valid signature".
I could resolve this by removing cordoba-plugin-mfp-push & also cordova-plugin-mfp, then adding only cordova-plugin-mfp-push, which in turn adds cordova-plugin-mfp.
I've got a CA certificate file. I'd like to install it on every iOS simulator available as part of a script. I've had a look around and used both https://github.com/ADVTOOLS/ADVTrustStore and https://github.com/yageek/iostrust but neither of them successfully install the certificate (they appear to install it successfully, but navigating to Settings in the simulator doesn't show any profiles installed). I am trying to install them on iOS 9.1 and iOS 8.4.
I can install the CA certificate by dragging and dropping it into the simulator, but I would like to find a way to do this automatically, as part of a set-up script. Has anyone had any success doing this?
I have the following problem - I am trying to install ad hoc .ipa file on my iPad 2, model MC979HC/A with iOS version 6.1.3. But when I try to install the app via iPhone Configuration Utility or iTunes it says: "An unknown error message 'Install Prohibited', was received from the device."
My app was created by using Xcode 4.6.1. I installed the same app on iPad 2 with iOS version 6.0.
What is the problem, because I can't find any solution on the internet? I guess it can be something with the version of Xcode and iOS. I also have to mention that in my iPad 2 General Settings, Restrictions are disabled. But if I enable the restrictions, the option "INSTALLING APPS" is set to OFF and it is not active, so I can't really change it. How to activate this option?
You may have already installed with other app in your iphone with same Provisioning profile. Please uninstall the app with same provisioning profile which you installed previously and install again a clean build.