CommunityToolkit / CommunityToolkit/Maui.NativeLibraryInterop

Unable to build projects with CocoaPods - iOS Native bindings

Đang mở
#88 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C#
Star
249
Fork
48
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I have an application that uses Cocoapods.
The project builds fine when we build the xcodeproject as a standalone project.
But once we connect it with the MAUI Binding project, and tries to build the Binding project, it fails with following error:

```
NewBinding.MaciOS.Binding failed with 1 error(s) (5.5s)
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net9.0_18.2/18.2.9180/targets/Microsoft.MaciOS.Sdk.Xcode.targets(80,5): error :
xcodebuild exited with code 65:
** ARCHIVE FAILED **


The following build commands failed:
ScanDependencies /Users/pubuduwijeyaratne/Documents/Work/Maui.NativeLibraryInterop-main/template/macios/NewBinding.MaciOS.Binding/ob
j/Debug/net9.0-ios/xcode/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/NewBinding/IntermediateBuildFilesPath/NewBindin
g.build/Release-iphoneos/NewBinding.build/Objects-normal/arm64/NewBinding_vers.o /Users/pubuduwijeyaratne/Documents/Work/Maui.NativeL
ibraryInterop-main/template/macios/NewBinding.MaciOS.Binding/obj/Debug/net9.0-ios/xcode/DerivedData/Build/Intermediates.noindex/Archi
veIntermediates/NewBinding/IntermediateBuildFilesPath/NewBinding.build/Release-iphoneos/NewBinding.build/DerivedSources/NewBinding_ve
rs.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'NewBinding' from project 'NewBinding')
Archiving project NewBinding with scheme NewBinding
(2 failures)

Build failed with 1 error(s) in 5.9s
pubuduwijeyaratne@Pubudus-MacBook-Pro NewBinding.MaciOS.Binding %
```

Appreciate any help on this.

Could this be because we are using the NewBinding.xcworkspace when building the native project manually(i.e from xcodebuild command). and Community toolkit might be using the NewBinding.xcodeproj file to build the binding.??

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi trong NewBinding.MaciOS.Binding và so sánh các đường dẫn build của NewBinding.xcworkspace và NewBinding.xcodeproj. Kiểm tra lệnh gọi xcodebuild và Microsoft.MaciOS.Sdk.Xcode.targets tại dòng 80, sau đó xác định build Binding sử dụng dạng project nào. Hoàn tất khi xác định được sự không khớp trong việc tích hợp CocoaPods hoặc ghi lại cấu hình còn thiếu cần thiết để build Binding thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
csharp, ios
Lĩnh vực
build-system, mobile-dev
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
20/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.