Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Error when archiving Xamarin Form iOS app for deployment to App Store #15602

Open
hro-it opened this issue Nov 15, 2022 · 4 comments
Open
Labels
p/iOS 🍎 s/unverified New report that has yet to be verified t/bug 🐛

Comments

@hro-it
Copy link

hro-it commented Nov 15, 2022

Description

Attempting to archive package for deployment to App Store for review. Archive is erroring out with complaint of Xamarin Forms control not being assigned the appropriate metadata or indicators required to comply with build. App builds and deploys to devices alright, but archiving is broken.

Steps to Reproduce

  1. Archive project? Not sure what is specific about my project.

Expected Behavior

Archive completes successfully.

Actual Behavior

Build properties for C:\Users\Matt\HRO\Mjolnir\Mjolnir.iOS\Mjolnir.iOS.csproj: VisualStudioProcessId: 15556, SolutionPath: C:\Users\Matt\HRO\Mjolnir\Mjolnir.sln, SolutionName: Mjolnir, RunConfiguration: Default, ArchiveOnBuild: False, ArchivePath: , IsAppDistribution: False, DeviceSpecificBuild: false, TargetiOSDevice: , IsHotRestartBuild: False, MessagingVersion: 17.4.0.301, _DotNetRootRemoteDirectory: /Users/matt\Library\Caches\Xamarin\XMA\SDKs\dotnet/, ServerSshPort: 22, ServerTcpPort: 50363, ServerUser: matt, ContinueOnDisconnected: False, ServerAddress: 192.168.86.72
Cannot create an IOS archive 'Mjolnir.iOS'. Process cannot be executed on XMA server.
The registrar found an invalid type 'UIKit.IUIViewControllerAnimatedTransitioning' in signature for method 'UIKit.UITabBarController/_UITabBarControllerDelegate.GetInteractionControllerForAnimationController': The interface must have a Protocol attribute specifying its wrapper type.
The registrar found an invalid type 'UIKit.IUIViewControllerTransitionCoordinator' in signature for method 'Xamarin.Forms.Platform.iOS.TabletFlyoutPageRenderer.ViewWillTransitionToSize': The interface must have a Protocol attribute specifying its wrapper type.
The registrar found an invalid type 'UIKit.IUIDragSession' in signature for method 'Xamarin.Forms.Platform.iOS.DragAndDropDelegate.SessionWillEnd': The interface must have a Protocol attribute specifying its wrapper type.
The registrar found an invalid type 'UIKit.IUIDropSession' in signature for method 'Xamarin.Forms.Platform.iOS.DragAndDropDelegate.CanHandleSession': The interface must have a Protocol attribute specifying its wrapper type.
The registrar found an invalid type 'UIKit.IUIDropSession' in signature for method 'Xamarin.Forms.Platform.iOS.DragAndDropDelegate.SessionDidExit': The interface must have a Protocol attribute specifying its wrapper type.
The registrar found an invalid type 'UIKit.IUIDropSession' in signature for method 'Xamarin.Forms.Platform.iOS.DragAndDropDelegate.SessionDidUpdate': The interface must have a Protocol attribute specifying its wrapper type.
The registrar found an invalid type 'UIKit.IUIDropSession' in signature for method 'Xamarin.Forms.Platform.iOS.DragAndDropDelegate.PerformDrop': The interface must have a Protocol attribute specifying its wrapper type.

Failed to create App archive 'Mjolnir'.

Basic Information

  • Version with issue:
  • Platform Target Frameworks:
    • iOS: 4.0.30319
  • NuGet Packages: Xamarin Forms: 5.0.0.2515, Xamarin.Essentials: 1.7.3, Telerik.UI.for.Xamarin: 2022.3.1109.1, Newtonsoft.Json: 13.0.1, Plugin.Fingerprint: 2.1.5, Prism.Unity.Forms: 7.2.0.1422, Refractored.XamForms.PullToRefresh: 2.4.1, Com.OneSignal: 3.10.6
  • Affected Devices: Archiving

Environment

Show/Hide Visual Studio info

Build Logs

Screenshots

Reproduction Link

Workaround

@hro-it hro-it added s/unverified New report that has yet to be verified t/bug 🐛 labels Nov 15, 2022
@jfversluis
Copy link
Member

What version of Xamarin.iOS are you using? Which version of Visual Studio?

@hro-it
Copy link
Author

hro-it commented Nov 15, 2022

Using VS 17.4.0 Community and Xamarin.iOS 16.0.0.92

@hro-it
Copy link
Author

hro-it commented Nov 15, 2022

Updated to VS 17.4.1 and that seemed to do the trick... lol.

@hro-it hro-it closed this as completed Nov 15, 2022
@hro-it hro-it reopened this Nov 19, 2022
@hro-it
Copy link
Author

hro-it commented Nov 19, 2022

This issue is creeping back up with VS 17.4.1.

Failed to create App archive 'Mjolnir'.
Archiving App Bundle 'Mjolnir'...
Build properties for C:\Users\Matt\HRO\Mjolnir\Mjolnir.iOS\Mjolnir.iOS.csproj: VisualStudioProcessId: 8596, SolutionPath: C:\Users\Matt\HRO\Mjolnir\Mjolnir.sln, SolutionName: Mjolnir, RunConfiguration: Default, ArchiveOnBuild: False, ArchivePath: , IsAppDistribution: False, DeviceSpecificBuild: false, TargetiOSDevice: , IsHotRestartBuild: False, MessagingVersion: 17.4.0.301, _DotNetRootRemoteDirectory: /Users/matt\Library\Caches\Xamarin\XMA\SDKs\dotnet/, ServerSshPort: 22, ServerTcpPort: 50174, ServerUser: matt, ContinueOnDisconnected: False, ServerAddress: 192.168.86.75
Cannot create an IOS archive 'Mjolnir.iOS'. Process cannot be executed on XMA server.
The registrar found an invalid type 'UIKit.IUIViewControllerAnimatedTransitioning' in signature for method 'UIKit.UITabBarController/_UITabBarControllerDelegate.GetInteractionControllerForAnimationController': The interface must have a Protocol attribute specifying its wrapper type.
The registrar found an invalid type 'UIKit.IUIViewControllerTransitionCoordinator' in signature for method 'Xamarin.Forms.Platform.iOS.TabletFlyoutPageRenderer.ViewWillTransitionToSize': The interface must have a Protocol attribute specifying its wrapper type.
The registrar found an invalid type 'UIKit.IUIDragSession' in signature for method 'Xamarin.Forms.Platform.iOS.DragAndDropDelegate.SessionWillEnd': The interface must have a Protocol attribute specifying its wrapper type.
The registrar found an invalid type 'UIKit.IUIDropSession' in signature for method 'Xamarin.Forms.Platform.iOS.DragAndDropDelegate.CanHandleSession': The interface must have a Protocol attribute specifying its wrapper type.
The registrar found an invalid type 'UIKit.IUIDropSession' in signature for method 'Xamarin.Forms.Platform.iOS.DragAndDropDelegate.SessionDidExit': The interface must have a Protocol attribute specifying its wrapper type.
The registrar found an invalid type 'UIKit.IUIDropSession' in signature for method 'Xamarin.Forms.Platform.iOS.DragAndDropDelegate.SessionDidUpdate': The interface must have a Protocol attribute specifying its wrapper type.
The registrar found an invalid type 'UIKit.IUIDropSession' in signature for method 'Xamarin.Forms.Platform.iOS.DragAndDropDelegate.PerformDrop': The interface must have a Protocol attribute specifying its wrapper type.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p/iOS 🍎 s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

4 participants
@jfversluis @jsuarezruiz @hro-it and others