Hello,
When I try to distribute Xamarin.Forms ios app to app store, VS gives below error:
Could not create ipa file for distribution of the archive 'Fit Tolerance ANSI'
/usr/bin/codesign exited with code 1
Failed to codesign 'D:/VisualStudio/ames/fittoleranceansi/fittoleranceansi/fittoleranceansi.iOS/obj/iPhone/Release/archives/fittoleranceansi.iOS 3-08-21 10.34 AM.xcarchive/Products/Applications/fittoleranceansi.iOS.app//**/*.metallib': /Users/user919742/Library/Caches/Xamarin/mtbs/builds/fittoleranceansi.iOS/072124e55de6a6ff0ff2d2d1bfec16502b437586de971b6e9cad7e31762c61d8/D:/VisualStudio/ames/fittoleranceansi/fittoleranceansi/fittoleranceansi.iOS/obj/iPhone/Release/archives/fittoleranceansi.iOS 3-08-21 10.34 AM.xcarchive/Products/Applications/fittoleranceansi.iOS.app//**/*.metallib: No such file or directory
Publishing project 'Fit Tolerance ANSI' completed with errors.
This app exists for several years at the store, this is the first time I received an error like this. I have 2 very similar apps with the same setup and they distribute as expected. All apps use same distribution certificate (not expired), with different appIDs hence different distribution profiles with the same expiration date.
At VS project properties > ios bundle signing, manual provisioning and corresponding team id and profile are selected.
At mac, I see the certificate at keychain access, with codesign is in always allowed list.
Projects and solution is cleaned, bin+obj+cache folders are deleted. App rebuilds and archives successfully, but cannot be distributed to app store. At distribute dialogs, team id and profile are shown and selected. I also tried "save as" app store ipa file locally and Ad Hoc distribution options but those all have given the same error, cannot reaching to the phase which it asks for app-specific password. Can anyone please give any advice to solve this?
Tool versions: VS 2019 Version 16.9.0, Xamarin 16.9.000.271, Xamarin.iOS 14.14.2.5, macOS Catalina 10.15.7
Regards,
Yasar