WWDR Intermediate Certificate not found Error - IOS Simulator Launch Issue - ios

When I'm trying to launch simulator from VSCode with Titanium SDK I'm seeing the following error:
Download and install the certificate from http://developer.apple.com/certificationauthority/AppleWWDRCA.cer
How to fix this. The certificate that I'm installing is not supporting.

Check Apples site https://www.apple.com/certificateauthority/ and download Worldwide Developer Relations - G2 (Expiring 05/06/2029 23:43:24 UTC) (direkt link https://www.apple.com/certificateauthority/AppleWWDRCAG2.cer)
The other link just expired some days ago
Edit: a fix was pushed to the SDK itself so the link will be fixed in the next release

Related

Since updating to Xcode 13 I get a codsign error

After updating to Xcode 13.x on Monterey, I've started getting numerous Code sign error(s): Command usr/bin/codesign failed with a nonzero exit code when building my project.
Cleaning Build Folder and deleting derived data are NOT working as a fix. Any suggestions?
I found a solution to delete the Apple Worldwide Certificate in my Keychain Access. It seems to recreate when building and fixes the codesign error. Sometimes there are 2 certificates and I just delete the older one:
For me, xcode13.4 / monterey osx, iOS 15.0 device. I recently upgraded to monterey and for some reason was the certificate not trusted in the keychain. I had to manually trust the keychain and then it worked. See this also. https://support.apple.com/guide/keychain-access/change-the-trust-settings-of-a-certificate-kyca11871/mac

Not able to install Enterprise App from internal server on iPhone ( IOS 11.4)

I am not able to install an Enterprise App.
I am getting a message Unable to download app at this time
What could be the reason for this?
I have created a distribution provisioning profile
The bundle ID is matching with the certificate and app Bundle ID.
Try these steps may help you!
1) After uploading manifest file to respective server connect device to Xcode
2) Window--> Devices and Simulators
3) Install app(.ipa) from the link
it will show the related issue why app is not installing and fix it!

Xcode 9 - Alamofire Pods. Command /bin/sh failed with exit code 1

/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.

Xamarin cannot build to device - Tool exited with code: 1. Output: error: The specified item could not be found in the keychain

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.

Cannot run on device after installing 'cordova-plugin-mfp-push'

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.

Resources