Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xcframework project/code results with errors #13138

Closed
Atamanam opened this issue Oct 27, 2021 · 3 comments
Closed

xcframework project/code results with errors #13138

Atamanam opened this issue Oct 27, 2021 · 3 comments
Labels
need-info Waiting for more information before the bug can be investigated
Milestone

Comments

@Atamanam
Copy link

Atamanam commented Oct 27, 2021

Overview

I am integrating a .xcframework with Xamarin iOS project & did not find much of documentation, Upon opening a question in a Microsoft Q&A I was referred to #10046 where I found a sample xcframework with tests projects is also available https://github.com/spouliot/xcframework

Steps to Reproduce

  1. Downloaded this code : https://github.com/spouliot/xcframework
  2. Build for an iOS Simulator

Expected Behavior

Successfully build the App

Actual Behavior

Building the App results a error
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.Shared.targets(3,3): Error: ../../Universal.xcframework has an incorrect or unknown format and cannot be processed.

Screen Shot 2021-10-26 at 10 18 49 AM

Example Project (If Possible)

#10046

@Atamanam
Copy link
Author

=== Visual Studio Community 2019 for Mac ===

Version 8.10.11 (build 8)
Installation UUID: cfb3c92f-494e-4f19-8ceb-aaa4644a980c
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 6.18.0.23 (d16-6 / 088c736)

Package version: 612000140

=== Mono Framework MDK ===

Runtime:
Mono 6.12.0.140 (2020-02/51d876a041e) (64-bit)
Package version: 612000140

=== Roslyn (Language Service) ===

3.10.0-4.21269.26+029847714208ebe49668667c60ea5b0a294e0fcb

=== NuGet ===

Version: 5.9.0.7134

=== .NET Core SDK ===

SDK: /usr/local/share/dotnet/sdk/5.0.402/Sdks
SDK Versions:
5.0.402
5.0.401
5.0.301
5.0.203
5.0.103
5.0.101
3.1.414
3.1.413
3.1.410
3.1.409
3.1.406
3.1.404
3.1.102
3.1.101
3.0.101
2.1.701
2.1.700
2.1.505
2.1.503
2.1.302
2.1.4
2.0.3
2.0.0
MSBuild SDKs: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Sdks

=== .NET Core Runtime ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
5.0.11
5.0.10
5.0.7
5.0.6
5.0.3
5.0.1
3.1.20
3.1.19
3.1.16
3.1.15
3.1.12
3.1.10
3.1.2
3.1.1
3.0.1
2.1.23
2.1.15
2.1.14
2.1.12
2.1.11
2.1.9
2.1.7
2.1.2
2.0.5
2.0.3
2.0.0

=== .NET Core 3.1 SDK ===

SDK: 3.1.414

=== Xamarin.Profiler ===

Version: 1.6.15.68
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Updater ===

Version: 11

=== Xamarin.Android ===

Not Installed

=== Microsoft OpenJDK for Mobile ===

Java SDK: Not Found

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Android SDK Manager ===

Version: 16.10.0.13
Hash: 1b81df5
Branch: remotes/origin/d16-10
Build date: 2021-09-21 02:30:50 UTC

=== Android Device Manager ===

Version: 16.10.0.15
Hash: 89dcc0b
Branch: remotes/origin/d16-10
Build date: 2021-09-21 02:31:08 UTC

=== Apple Developer Tools ===

Xcode 13.0 (19234)
Build 13A233

=== Xamarin.Mac ===

Version: 7.14.0.27 (Visual Studio Community)
Hash: 2566861
Branch: d16-10
Build date: 2021-07-27 02:34:12-0400

=== Xamarin.iOS ===

Version: 15.0.0.6 (Visual Studio Community)
Hash: 2771277
Branch: xcode13-ios
Build date: 2021-09-23 10:36:08-0400

=== Xamarin Designer ===

Version: 16.10.0.119
Hash: 36a2d986f
Branch: remotes/origin/d16-10
Build date: 2021-06-02 19:41:34 UTC

=== Build Information ===

Release ID: 810110008
Git revision: 5467245e1f99a0c8ccdd2acea02d16c3fb65c220
Build date: 2021-10-07 10:49:46-04
Build branch: release-8.10

=== Operating System ===

Mac OS X 10.16.0
Darwin 20.6.0 Darwin Kernel Version 20.6.0
Mon Aug 30 06:12:21 PDT 2021
root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64

@chamons
Copy link
Contributor

chamons commented Oct 29, 2021

Thanks for the feedback.

Can you please attach a sample project. I was able to successfully build it with the following steps:

  • git clone git@github.com:spouliot/xcframework.git
  • cd xcframework
  • open Universal/Universal.xcodeproj
  • Changed bundle id and team to match my local certs
  • make
  • Create new binding project
  • Copy Universal.xcframework to the new binding project
  • Add to native references
  • Select in native references -> Properties
  • Set it as a Framework
    image
  • Build
Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:03.81

========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Build successful.

@chamons chamons added the need-info Waiting for more information before the bug can be investigated label Oct 29, 2021
@chamons chamons added this to the Future milestone Oct 29, 2021
@rachelkang
Copy link
Contributor

We will be closing this issue as it has been over 30 days since we have not received the requested information. If you are still experiencing this issue, please provide all the requested information and then click the Reopen Issue button. Thank you!

@ghost ghost locked as resolved and limited conversation to collaborators Apr 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
need-info Waiting for more information before the bug can be investigated
Projects
None yet
Development

No branches or pull requests

3 participants