Having issues deploying IOS project on iphone

Shraddha Chauhan 10 Reputation points
2023-08-01T04:45:43.94+00:00

Microsoft Visual Studio Professional 2022 (64-bit) - Current

Version 17.5.5

Xamrin 17.5.0.173 & Xamarin.IOS -16.2.0.5

Getting these errors :
Severity Code Description Project File Line Suppression State

Error /usr/bin/codesign exited with code 1:

Warning: unable to build chain to self-signed root for signer "Apple Development: Shraddha chauhan (4295U636YC)"

/Users/shraddhachauhan/Library/Caches/Xamarin/mtbs/builds/iOSPatientApp/c83ec39ed929cc45674804731ea6dd8319a7274e16563eb56daf251144602a3c/bin/iPhone/Debug/PatientApp.app: errSecInternalComponent iOSPatientApp

Error Failed to codesign '/Users/shraddhachauhan/Library/Caches/Xamarin/mtbs/builds/iOSPatientApp/c83ec39ed929cc45674804731ea6dd8319a7274e16563eb56daf251144602a3c/bin/iPhone/Debug/PatientApp.app': Warning: unable to build chain to self-signed root for signer "Apple Development: Shraddha chauhan (4295U636YC)"

/Users/shraddhachauhan/Library/Caches/Xamarin/mtbs/builds/iOSPatientApp/c83ec39ed929cc45674804731ea6dd8319a7274e16563eb56daf251144602a3c/bin/iPhone/Debug/PatientApp.app: errSecInternalComponent iOSPatientApp

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,298 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,846 Reputation points Microsoft Vendor
    2023-08-16T03:17:28.8833333+00:00

    Hello,

    I connect through window only

    It means that you are using Xamarin Hot Restart and connect a Local Device.

    There are two solutions you could have a try:

    1. Enable automatic provisioning. Please follow the MAUI Hot Restart doc to create an App Store Connect API key and add your Individual account (Apple developer account), then configure Automatic Provisioning. (This doc is about MAUI, it also applies for Xamarin) For this solution, it's not supported if your app has the following entitlements: App Groups, Associated Domains, Apple Pay, Game Center, HealthKit, HomeKit, Hotspot, In-App purchase, Multipath, NFC, Personal VPN, Push Notifications, Wireless Accessory Configuration.
    2. Connect your device with Mac, and pair to mac, then select your device from Remote Device. After that, you could try to choose manual provisioning like screenshot in your comment. If the profile is invalid, you have to create a new one. Please see Manual provisioning for Xamarin.iOS.

    If you have any other issues, please feel free to post in here.

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.