Closed KummerMario closed 6 years ago
Please fix this issue!!!
I am on same version of Visual Studio and Xamarin iOS and identified that 3rd party libraries will cause this error 'Unexpected error - Please file a bug report at http://bugzilla.xamarin.com' when the library is used within the code. As soon as you comment out all lines that are using the libraries, then it will build successfully, but that leaves me with a useless app :(
I have tried this with the following libraries: Xamarin.Firebase.iOS.Analytics" version="4.0.5.1" Xamarin.Firebase.iOS.CloudMessaging" version="2.0.8.1" Xamarin.Firebase.iOS.Core" version="4.0.13.1" Xamarin.Firebase.iOS.InstanceID" version="2.0.8" Xamarin.Google.iOS.MobileAds" version="7.27.0.3"
Microsoft Visual Studio Community 2017 Version 15.7.0 VisualStudio.15.Release/15.7.0+27703.1 Microsoft .NET Framework Version 4.7.02558
Installed Version: Community
Application Insights Tools for Visual Studio Package 8.12.10405.1 Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2017 15.0.40501.0 ASP.NET and Web Tools 2017
ASP.NET Core Razor Language Services 15.7.31476 Provides languages services for ASP.NET Core Razor.
ASP.NET Web Frameworks and Tools 2017 5.2.60419.0 For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 15.0.40424.0 Azure App Service Tools v3.0.0
Azure Functions and Web Jobs Tools 15.0.40424.0 Azure Functions and Web Jobs Tools
C# Tools 2.8.0-beta6-62830-08. Commit Hash: e595ee276d14e14bfb3eb323fb57f2aa668bddea C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Common Azure Tools 1.10 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
JavaScript Language Service 2.0 JavaScript Language Service
Merq 1.1.17-rc (cba4571) Command Bus, Event Stream and Async Manager for Visual Studio extensions.
Microsoft Azure Tools 2.9 Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.10420.2
Microsoft Continuous Delivery Tools for Visual Studio 0.3 Simplifying the configuration of continuous build integration and continuous build delivery from within the Visual Studio IDE.
Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual Studio Tools for Containers 1.1 Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.
Mono Debugging for Visual Studio 4.10.5-pre (ab58725) Support for debugging Mono processes with Visual Studio.
NuGet Package Manager 4.6.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
ProjectServicesPackage Extension 1.0 ProjectServicesPackage Visual Studio Extension Detailed Info
ResourcePackage Extension 1.0 ResourcePackage Visual Studio Extension Detailed Info
SQL Server Data Tools 15.1.61804.210 Microsoft SQL Server Data Tools
TypeScript Tools 15.7.20419.2003 TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 2.8.0-beta6-62830-08. Commit Hash: e595ee276d14e14bfb3eb323fb57f2aa668bddea Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual F# Tools 10.1 for F# 4.1 15.7.0.0. Commit Hash: 16ecf5a30ad868d183c58e4a71a71c23d4ed3ba9. Microsoft Visual F# Tools 10.1 for F# 4.1
Visual Studio Code Debug Adapter Host Package 1.0 Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
VisualStudio.Mac 1.0 Mac Extension for Visual Studio
Xamarin 4.10.0.442 (396b18cef) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 4.12.264 (fc37cd02e) Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin.Android SDK 8.3.0.19 (HEAD/342b2ce96) Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 11.10.1.177 (7e782c1) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
You're probably running into #4073.
Can you check your project for any [BlockProxy (typeof (SomeType))]
attributes, delete them, and see if that fixes the problem?
@boothb81 please post the build log, it's possible you're running into a different issue that just happens to show the same error.
@rolfbjarne Thanks a lot for the fast response. I removed the BlockProxy. It was only one. And then I was able to build again.
The class UNUserNotificationCenterDelegate has got this method:
public virtual void DidReceiveNotificationResponse(UNUserNotificationCenter center, UNNotificationResponse response, [BlockProxy(typeof(NIDAction))] Action completionHandler);
My override is:
public override void DidReceiveNotificationResponse(UNUserNotificationCenter center, UNNotificationResponse response, [BlockProxy(typeof(AdAction))] Action completionHandler) { //..};
The type is :
namespace iAd { // // Summary: // A delegate that is used for the iAd.ADBannerView.ActionShouldBegin property. // // Parameters: // banner: // To be added. // // willLeaveApplication: // To be added. // // Returns: // To be added. // // Remarks: // To be added. public delegate bool AdAction(ADBannerView banner, bool willLeaveApplication); }
Hi @rolfbjarne
You are correct. Looks like my issue is different. Attached is the build log. Thanks! BuildLog.txt
@boothb81 yes, your issue is different, it seems your mac has an old version of mono installed. Try running Visual Studio for Mac, and update everything. If that doesn't work, please open a new issue and we'll help you there (since your problem has nothing to do with this issue).
@KummerMario great, I'll close this as a duplicate of #4072 then.
After the upgrade to Visual Studio 2017 15.7.1 and Xamarin.iOS 11.10.1.177 I can not create an ipa file anymore. It worked with 15.6.x.
The project builds and runs in debug mode on simulator
It says: "Unexpected error - Please file a bug report at http://bugzilla.xamarin.com" (see build log for more details)
It tested it with Visual Studio for Mac as well, same behaviour
Steps to Reproduce
Expected Behavior
Project is build and .ipa file created
Actual Behavior
Unexpected error - Please file a bug report
Environment
Build Logs
Example Project (If Possible)