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

Unable to build iOS target #638

Open
GODston opened this issue Nov 21, 2023 · 1 comment
Open

Unable to build iOS target #638

GODston opened this issue Nov 21, 2023 · 1 comment

Comments

@GODston
Copy link

GODston commented Nov 21, 2023

Whenever i try to build my project with iOS target enabled i get the following errors:

1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4879,5): error MSB3030: Could not copy the file "C:\.ng\xamarin.firebase.ios.cloudfirestore\8.10.0.3\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpc.xcframework\ios-arm64\grpc.framework\PrivateHeaders\src\core\ext\upb-generated\envoy\config\filter\network\http_connection_manager\v2\http_connection_manager.upb.h" because it was not found.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4879,5): error MSB3030: Could not copy the file "C:\.ng\xamarin.firebase.ios.cloudfirestore\8.10.0.3\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpc.xcframework\ios-arm64_x86_64-simulator\grpc.framework\PrivateHeaders\src\core\ext\filters\client_channel\lb_policy\grpclb\client_load_reporting_filter.h" because it was not found.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4879,5): error MSB3030: Could not copy the file "C:\.ng\xamarin.firebase.ios.cloudfirestore\8.10.0.3\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpc.xcframework\ios-arm64_x86_64-simulator\grpc.framework\PrivateHeaders\src\core\tsi\alts\zero_copy_frame_protector\alts_grpc_privacy_integrity_record_protocol.h" because it was not found.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4879,5): error MSB3030: Could not copy the file "C:\.ng\xamarin.firebase.ios.cloudfirestore\8.10.0.3\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpc.xcframework\ios-arm64_x86_64-simulator\grpc.framework\PrivateHeaders\src\core\tsi\alts\zero_copy_frame_protector\alts_grpc_integrity_only_record_protocol.h" because it was not found.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4879,5): error MSB3030: Could not copy the file "C:\.ng\xamarin.firebase.ios.cloudfirestore\8.10.0.3\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpcpp.xcframework\ios-arm64\grpcpp.framework\PrivateHeaders\src\core\ext\upb-generated\envoy\config\filter\network\http_connection_manager\v2\http_connection_manager.upb.h" because it was not found.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4879,5): error MSB3030: Could not copy the file "C:\.ng\xamarin.firebase.ios.cloudfirestore\8.10.0.3\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpcpp.xcframework\ios-arm64_x86_64-simulator\grpcpp.framework\PrivateHeaders\src\core\ext\filters\client_channel\lb_policy\grpclb\client_load_reporting_filter.h" because it was not found.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4879,5): error MSB3030: Could not copy the file "C:\.ng\xamarin.firebase.ios.cloudfirestore\8.10.0.3\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpcpp.xcframework\ios-arm64_x86_64-simulator\grpcpp.framework\PrivateHeaders\src\core\ext\filters\client_channel\resolver\dns\c_ares\grpc_ares_ev_driver.h" because it was not found.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4879,5): error MSB3030: Could not copy the file "C:\.ng\xamarin.firebase.ios.cloudfirestore\8.10.0.3\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpcpp.xcframework\ios-arm64_x86_64-simulator\grpcpp.framework\PrivateHeaders\src\core\ext\upb-generated\src\proto\grpc\gcp\transport_security_common.upb.h" because it was not found.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4879,5): error MSB3030: Could not copy the file "C:\.ng\xamarin.firebase.ios.cloudfirestore\8.10.0.3\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpcpp.xcframework\ios-arm64_x86_64-simulator\grpcpp.framework\PrivateHeaders\src\core\lib\security\credentials\google_default\google_default_credentials.h" because it was not found.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4879,5): error MSB3030: Could not copy the file "C:\.ng\xamarin.firebase.ios.cloudfirestore\8.10.0.3\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpcpp.xcframework\ios-arm64_x86_64-simulator\grpcpp.framework\PrivateHeaders\src\core\tsi\alts\zero_copy_frame_protector\alts_grpc_integrity_only_record_protocol.h" because it was not found.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4879,5): error MSB3030: Could not copy the file "C:\.ng\xamarin.firebase.ios.cloudfirestore\8.10.0.3\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpcpp.xcframework\ios-arm64_x86_64-simulator\grpcpp.framework\PrivateHeaders\src\core\tsi\alts\zero_copy_frame_protector\alts_grpc_privacy_integrity_record_protocol.h" because it was not found.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4879,5): error MSB3030: Could not copy the file "C:\.ng\xamarin.firebase.ios.cloudfirestore\8.10.0.3\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpcpp.xcframework\ios-arm64_x86_64-simulator\grpcpp.framework\PrivateHeaders\src\core\tsi\alts\zero_copy_frame_protector\alts_grpc_record_protocol_common.h" because it was not found.

I actually had many more, but i changed my project directory to a smaller one (from C:\Repos\MAUIProjects\ProjectName\Version to just C:\Repos\ProjectName) and moving the .nuget forlder location as indicated in the paths above, since it seemed to be a MAX_PATH error.

The issue is i can't shorten the .ng path any more, and some of the paths in the errors above are even > 270 without even the C:\ directory.

These paths, being this long, and windows 11 not supporting long paths (with no fix on the way apparently) are not allowing me to build my project for iOS targets on .Net 7 MAUI project.

@IeuanWalker
Copy link

#639

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants