apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.15k stars 986 forks source link

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

Open alexp25 opened 4 months ago

alexp25 commented 4 months ago

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 (cordova-lib@12.0.1) Cordova Platforms: ios 6.3.0 Xcode: 15.0.1 iOS: 17.1.1

Checklist

alexp25 commented 4 months ago

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

breautek commented 4 months ago

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.

1dstudio commented 4 months ago

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?