I get an error while trying to create a package version with this command
sfdx force:package:version:create -p MySalesforcePackage -d force-app -k MyPassWord --wait 10 -v DevHub
This is the arror. It was created as an Unmanaged Package
ERROR: MyConnectedAppApiName: Installing an app (MyConnectedAppApiName) that has been deleted.
This is the connected App inside the folder force-app/main/defult/connectedApps
<?xml version="1.0" encoding="UTF-8"?>
<ConnectedApp xmlns="http://soap.sforce.com/2006/04/metadata">
<contactEmail>fabrizio@mysite.com</contactEmail>
<description>Connected App</description>
<label>My App</label>
<oauthConfig>
<callbackUrl>https://myappsite.com/salesforce/setup</callbackUrl>
<scopes>Full</scopes>
<scopes>RefreshToken</scopes>
</oauthConfig>
</ConnectedApp>