Skip to content

Failed to install the BarcodeScanner.Mobile.Maui package in a project (iOS) that is using .NET 9 with Visual Studio for Windows #273

@MiguelPiresP

Description

@MiguelPiresP

I'm creating a new project in .NET MAUI with .NET 9 and trying to use BarcodeScanner.Mobile.Maui in version 9.0.1, which already supports .NET 9. However, when I try to install the package, I'm getting the following error:

Could not find a part of the path 'C:\nuget\packages\adame.google.ios.googledatatransport\10.1.0\lib\net6.0-ios16.1\Google.GoogleDataTransport.resources\GoogleDataTransport.xcframework\ios-arm64_x86_64-simulator\GoogleDataTransport.framework\GoogleDataTransport_Privacy.bundle\PrivacyInfo.xcprivacy'.

I'm developing in Visual Studio for Windows, and to test my app on an iOS device, I need to pair my machine with a Mac Mini I own. Everything works fine, but when I try to install the package, I get this error.

This seems to me like a problem with a very long path to the folder that Windows won't accept, but I've tried everything and can't solve the problem. I'd like to know if anyone has experienced or is experiencing this issue. I've tried using other barcode reading packages, but this is by far the best reader I've tested, and I'd like to keep using it.

Image

• Visual Studio: 17.14.13
• .NET MAUI: .NET 9.0

Tested on iPhones with iOS 18.5 and 26.0 (Beta 5) and neither worked. I also tested it by creating a new project on another machine and had the same problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions