cordova-ios icon indicating copy to clipboard operation
cordova-ios copied to clipboard

Failed to verify code signature of some framework and cannot install on device

Open alexp25 opened this issue 1 year ago • 4 comments
trafficstars

Bug Report

Problem

After updating to the the latest macOS (Sonoma), XCode (15.0.1) and iOS (17.1.1), I have encountered problems compiling and running my ionic cordova app via XCode.

What is expected to happen?

The app should be installed and run on the device.

What does actually happen?

The app compiles but when it attempts to install on the device, the following error pops up:

Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.97IJGl/extracted/Leplace World.app/Frameworks/OneSignal.framework : 0xe8008015 (A valid provisioning profile for this executable was not found.) Verify that the Developer App certificate for your account is trusted on your device. Open Settings on the device and navigate to General -> VPN & Device Management, then select your Developer App certificate to trust it.

Information

I am aware that this issue might arise from a plugin, but I do not understand the underlying mechanism and what I should do about it, as I've never encountered such an error over the last few years, until I updated to the latest versions of macOS, Xcode, iOS, etc. The indication "Open Settings on the device and navigate to General -> VPN & Device Management, then select your Developer App certificate to trust it." seems misleading (what device? my iPhone? as there is no such setting on Mac, and no "certificate" on the iPhone). I have seen issues that suggest an upcoming change in the certificate signing mechanism: https://github.com/apache/cordova-ios/issues/1391, which might impact all future developments - and seems to be already in effect.

Command or Code

run with Xcode

Environment, Platform, Device

macOS (Sonoma), Xcode (15.0.1) and iOS (17.1.1)

Version information

Cordova CLI: 12.0.0 ([email protected]) Cordova Platforms: ios 6.3.0 Xcode: 15.0.1 iOS: 17.1.1

Checklist

  • [ x ] I searched for existing GitHub issues
  • [ x ] I updated all Cordova tooling to most recent version
  • [ x ] I included all the necessary information above

alexp25 avatar Dec 19 '23 15:12 alexp25

Update: I was able to install by using the cordova run ios command (this is great, but it doesn't include the debugger). Hopefully, this might bring some sense in order to further pinpoint and solve the issue (which might be related to Xcode itself, but something tells me that there are multiple factors involved).

alexp25 avatar Dec 19 '23 15:12 alexp25

Is your device registered as a development device in your developer/team account? Sign into developer.apple.com and go to Devices.

The device needs to be registered for a lot of development features to work properly. Not really confident that this is the issue but something worth checking.

breautek avatar Dec 30 '23 14:12 breautek

Hi @breautek. I'm working on the free dev account and will get the paid in the next days. I noticed I can't run my app on a physical device with the "Enable App Sandbox" set to Yes. "A valid provisioning profile for this executable was not found". It installs fine on the emulator.

Is this one of the functions that requires a fully paid developer account?

1dstudio avatar Jan 01 '24 12:01 1dstudio

@1dstudio Just set "Enable App Sandbox" to No and your problem will be solved

WorkerYT avatar Jun 27 '24 10:06 WorkerYT