getting error when i am trying to build the ios using xamarin forms from window

Manthiram Arun 0 Reputation points
2023-06-29T09:00:49.7866667+00:00

I am using xamarin forms for my project using visual studio 2022 on window. When I am trying to take IPA file from the project with the "Remote Device" as target platform, i got the following error.

Severity    Code    Description Project File    Line    Suppression State
Error       Failed to codesign '/Users/dev1/Library/Caches/Xamarin/mtbs/builds/CP.mypro.App.iOS/453d74550fbc3f6c6544e031e2aae6db77e393d9ad1e4d70c67da4c28cd90e8b/bin/iPhone/Ad-Hoc/CPMYPROAppiOS.app': /Users/dev1/Library/Caches/Xamarin/mtbs/builds/CP.MYPRO.App.iOS/453d74550fbc3f6c6544e031e2aae6db77e393d9ad1e4d70c67da4c28cd90e8b/bin/iPhone/Ad-Hoc/CPMYPROAppiOS.app: cannot find code object on disk    CP.MYPRO.App.iOS            
Error       /usr/bin/codesign exited with code 1:
/Users/dev1/Library/Caches/Xamarin/mtbs/builds/CP.MYPRO
.App.iOS/453d74550fbc3f6c6544e031e2aae6db77e393d9ad1e4d70c67da4c28cd90e8b/bin/iPhone/Ad-Hoc/CPMYPROAppiOS.app: cannot find code object on disk  CP.MYPRO.App.iOS       

Provisioning profile correctly executed. But I got the error.

Please refer the attachments for properties.

iOS Run Options

iOS On-Demand Resources

iOS Debug

iOS Bundle Signing

iOS Build

InfoPlist2

InfoPlist1

Build

Application

I got this error on all Mode(Debug, Release, Ad-Hoc).

My Software Versions:

Windows:

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

Xamarin iOS and Xamarin Mac SDK - 16.4.0.6 (97731c92c)

Mac:

OS: 11 7.7

Xcode:12.5

Anyone Please help me to resolve this issue.

Developer technologies | .NET | Xamarin
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.