xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.44k stars 510 forks source link

[Meta] Xcode 13.0 Support #12778

Closed dalexsoto closed 2 years ago

dalexsoto commented 3 years ago

🚨 Update ⚠️

Hello All!

We have what we believe is the final build for Xcode 13 Support

Thank you for your patience!

The macios team!


~Apple released Xcode 13.0 on September 20, 2021 we are working to get our Xcode 13 support release out in the meantime if you use Xamarin we recommend you to not upgrade to Xcode 13 just yet and keep using Xcode 12.5.~

~If you updated to Xcode 13, you have 3 options:~

  1. ~You can download Xcode 12.5 from the downloads page in the Apple Developer Portal and continue to use it.~
  2. ~If you need to keep Xcode 13 but want to use our current stable d16-10 bits you will need to install the following in you macOS machine~
  3. ~Use a build from our [xcode13-ios]() branch, this is where our next stable release is coming out and it includes all the iOS 15 SDKs APIs, that said we are still ironing it out.~

~We will keep this issue updated as we go to have the final builds declared.~

~Thank you for your patience!~

~The macios team!~

Hackmodford commented 3 years ago

Is there a rough ETA for this? Is it a matter of day(s), week(s)?

dalexsoto commented 3 years ago

Days :) we are working around the clock for this. You can in te meantime follow the work on our xcode13-ios branch and install the latest build that is close to be our release candidate xamarin.ios-15.0.0.0.pkg

npagare commented 3 years ago

Hi @dalexsoto, thank you for the update and the guidance.

Will the xamarin.ios-15.0.0.0.pkg work with both VS 2019.11.x and VS 2022 preview 4+ ?

dalexsoto commented 3 years ago

@IoTFier In theory yes, this is Xamarin.iOS pre .NET 6 so it should be continued to be supported until the .NET 6 SDKs are GA.

nabilakhlaque commented 3 years ago

Days :) we are working around the clock for this. You can in te meantime follow the work on our xcode13-ios branch and install the latest build that is close to be our release candidate xamarin.ios-15.0.0.0.pkg

Doesnt work for me with Visual Studio Enterprise 19.11.3, I keep getting this message:

The Xamarin.iOS SDK version '15.0.0.0' that is installed on the Mac is not compatible with this version of Visual Studio. Would you like us to install Xamarin.iOS '14.20.0.25' for you? This will overwrite any other existing Xamarin.iOS installation on your Mac.

praeclarum commented 3 years ago

I have tried xamarin.ios-15.0.0.0.pkg but cannot deploy to devices. It says "Deploying" but nothing appears in the pad.

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

Version 8.10.9 (build 3)
Installation UUID: 99635f05-cd0f-4705-b99b-2d921ff95a68
    GTK+ 2.24.23 (Raleigh theme)
    Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)

    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

=== Apple Developer Tools ===

Xcode 13.0 (19234)
Build 13A233

=== Xamarin.Mac ===

Version: 7.14.0.24 (Visual Studio Community)
Hash: c4b89cddb
Branch: d16-10
Build date: 2021-06-15 22:03:00-0400

=== Xamarin.iOS ===

Version: 15.0.0.0 (Visual Studio Community)
Hash: ea8c82574
Branch: xcode13-ios
Build date: 2021-09-21 00:43:25-0400

=== Build Information ===

Release ID: 810090003
Git revision: 156eb53c9c668cb7ff4311ae3d1dab894549848b
Build date: 2021-09-08 07:26:54-04
Build branch: release-8.10

=== Operating System ===

Mac OS X 10.16.0
Darwin 21.0.0 Darwin Kernel Version 21.0.0
    Mon Aug  2 00:18:13 PDT 2021
    root:xnu-8019.30.9~9/RELEASE_ARM64_T8101 x86_64
KraigM commented 3 years ago

I have tried xamarin.ios-15.0.0.0.pkg but cannot deploy to devices. It says "Deploying" but nothing appears in the pad.

I also tried this build of Xamarin.iOS. I can't even get it to find/deploy to simulators. It builds for "Generic Simulator" fine but says I don't have any simulators installed.

Visual Studio Professional 2019 for Mac
Version 8.10.9 (build 3)
Installation UUID: 47f6d95a-0f4e-491e-9290-8de3d010e6f7
    GTK+ 2.24.23 (Raleigh theme)
    Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)

    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.401/Sdks
SDK Versions:
    5.0.401
    5.0.400
    5.0.302
    5.0.301
    5.0.203
    5.0.202
    5.0.201
    5.0.103
    5.0.102
    5.0.101
    5.0.100
    5.0.100-rc.2.20479.15
    3.1.413
    3.1.412
    3.1.411
    3.1.410
    3.1.409
    3.1.408
    3.1.407
    3.1.406
    3.1.405
    3.1.404
    3.1.403
    3.1.402
    3.1.401
    3.1.302
    3.1.301
    3.1.300
    3.1.201
    3.1.200
    3.1.101
    3.0.100
    2.2.402
    2.1.811
    2.1.810
    2.1.809
    2.1.701
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.10
    5.0.9
    5.0.8
    5.0.7
    5.0.6
    5.0.5
    5.0.4
    5.0.3
    5.0.2
    5.0.1
    5.0.0
    5.0.0-rc.2.20475.5
    3.1.19
    3.1.18
    3.1.17
    3.1.16
    3.1.15
    3.1.14
    3.1.13
    3.1.12
    3.1.11
    3.1.10
    3.1.9
    3.1.8
    3.1.7
    3.1.6
    3.1.5
    3.1.4
    3.1.3
    3.1.2
    3.1.1
    3.0.0
    2.2.7
    2.1.23
    2.1.22
    2.1.21
    2.1.20
    2.1.19
    2.1.18
    2.1.17
    2.1.15
    2.1.13
    2.1.12

.NET Core 3.1 SDK
SDK: 3.1.413

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

Updater
Version: 11

Xamarin.Android
Version: 11.3.0.4 (Visual Studio Professional)
Commit: xamarin-android/d16-10/ae14caf
Android SDK: /Users/kraigm/Library/Developer/Xamarin/android-sdk-macosx
    Supported Android versions:
        4.4 (API level 19)
        6.0 (API level 23)
        7.1 (API level 25)
        8.1 (API level 27)

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 31.0.3
SDK Build Tools Version: 30.0.2

Build Information: 
Mono: b4a3858
Java.Interop: xamarin/java.interop/d16-10@f39db25
ProGuard: Guardsquare/proguard/v7.0.1@912d149
SQLite: xamarin/sqlite/3.35.4@85460d3
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-10@c5732a0

Microsoft OpenJDK for Mobile
Java SDK: /Users/kraigm/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
1.8.0-25
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-08-12 20:43:52 UTC

Android Device Manager
Version: 16.10.0.15
Hash: 89dcc0b
Branch: remotes/origin/d16-10
Build date: 2021-08-12 20:44:10 UTC

Apple Developer Tools
Xcode 13.0 (19234)
Build 13A233

Xamarin.Mac
Version: 7.14.0.24 (Visual Studio Professional)
Hash: c4b89cddb
Branch: d16-10
Build date: 2021-06-15 22:03:00-0400

Xamarin.iOS
Version: 15.0.0.0 (Visual Studio Professional)
Hash: ea8c82574
Branch: xcode13-ios
Build date: 2021-09-21 00:43:25-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: 810090003
Git revision: 156eb53c9c668cb7ff4311ae3d1dab894549848b
Build date: 2021-09-08 07:26:54-04
Build branch: release-8.10

Operating System
Mac OS X 10.16.0
Darwin 20.6.0 Darwin Kernel Version 20.6.0
    Wed Jun 23 00:26:31 PDT 2021
    root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64

Enabled user installed extensions
NuGet Package Management Extensions 0.27
NuGet Package Explorer 0.6
IchKannDenken commented 3 years ago

I also have tried xamarin.ios-15.0.0.0.pkg. But I cannot deploy to my iphone with the error message: "An error occurred while executing MTouch"

Microsoft Visual Studio Enterprise 2019
Version 16.11.3
VisualStudio.16.Release/16.11.3+31702.278
Microsoft .NET Framework
Version 4.8.04161
rolfbjarne commented 3 years ago

Thanks for the testing! We've identified an issue and a fix is in progress (https://github.com/xamarin/xamarin-macios/pull/12801).

We'll update this issue when an updated package is available.

CleverSoftwarePoland commented 3 years ago

I also have tried xamarin.ios-15.0.0.0.pkg. But I cannot deploy to my iphone with the error message: "An error occurred while executing MTouch"

Microsoft Visual Studio Enterprise 2019
Version 16.11.3
VisualStudio.16.Release/16.11.3+31702.278
Microsoft .NET Framework
Version 4.8.04161

Same problem, "An error occurred while executing MTouch"

TrevorBond2020 commented 3 years ago

Option 2 worked for me. Visual Studio 2019 Mac Community 8.10.9 (build 3) xamarin.mac-7.14.0.27.pkg xamarin.ios-14.20.0.27.pkg

All simulators back and at iOS 15. Running on device on iOS 15.0

Many thanks for all your hard work

fschneider1509 commented 3 years ago

Option 2 worked for me. Visual Studio 2019 Mac Community 8.10.9 (build 3) xamarin.mac-7.14.0.27.pkg xamarin.ios-14.20.0.27.pkg

All simulators back and at iOS 15. Running on device on iOS 15.0

Many thanks for all your hard work

@TrevorBond2020 Where did you get the xamarin.ios-14.20.0.27.pkg? I can only see the version 14.20.0.24.

TrevorBond2020 commented 3 years ago

Option 2 worked for me. Visual Studio 2019 Mac Community 8.10.9 (build 3) xamarin.mac-7.14.0.27.pkg xamarin.ios-14.20.0.27.pkg All simulators back and at iOS 15. Running on device on iOS 15.0 Many thanks for all your hard work

@TrevorBond2020 Where did you get the xamarin.ios-14.20.0.27.pkg? I can only see the version 14.20.0.24.

At top of this page ...

Apple released Xcode 13.0 on September 20, 2021 we are working to get our Xcode 13 support release out in the meantime if you use Xamarin we recommend you to not upgrade to Xcode 13 just yet and keep using Xcode 12.5.

If you updated to Xcode 13, you have 3 options:

You can download Xcode 12.5 from the downloads page in the Apple Developer Portal and continue to use it. If you need to keep Xcode 13 but want to use our current stable d16-10 bits you will need to install the following in you macOS machine xamarin.ios-14.20.0.27.pkg xamarin.mac-7.14.0.27.pkg Use a build from our xcode13-ios branch, this is where our next stable release is coming out and it includes all the iOS 15 SDKs APIs, that said we are still ironing it out. xamarin.ios-15.0.0.0.pkg

lukiller commented 3 years ago

The second solution worked for me on VS 8.10.9, Xcode 13 and iOS 15. I only installed xamarin.ios-14.20.0.27.pkg package. Thank you guys! I was in the middle of a code fix when Xcode decided to upgrade by itself without asking.

MarcelWolterbeek commented 3 years ago

The second solution worked for me on VS 16.11.3 (Windows), Xcode 13 and iOS 15. I only installed xamarin.ios-14.20.0.27.pkg (iOS dev only).

When connection I get the message "The Xamarin.iOS SDK version '14.20.0.27' that is installed on the Mac is not compatible with this version of Visual Studio. Would you like us to install Xamarin.iOS '14.20.0.25' for you? This will overwrite any other existing Xamarin.iOS installation on your Mac."

When I click Cancel, connecting continues and the simulators are back in the list.

nschoenberg commented 3 years ago

Can confirm downgrade to xcode 12.5.1 worked for me on two machines.

johnybaryah commented 3 years ago

Can confirm downgrade to xcode 12.5.1 worked for me on two machines.

Are you able to deploy the build from xcode 12.5 to an iOS 15 device?

dalexsoto commented 3 years ago

Hello all, we have a new release candidate build for Xcode 13 Support

Please give this a try and let us know how it goes!

With ❤️ to you all,

osniel commented 3 years ago

I tried xamarin.ios-15.0.0.3.pkg and it worked well with the simulator and an iPhone 😄 Using VS 8.10.9 (build 3), Xcode 13 and iOS 15.

kozw commented 3 years ago

iOS 15 simulators seem to work well, device not so much. Got the following error while launching my app:

error: Unregistered icall 'System.RuntimeTypeHandle:GetAssembly (System.RuntimeType)'

=================================================================
    Native stacktrace:
=================================================================
    0x1099085ac - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : mono_dump_native_crash_info
    0x1098fe724 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : mono_handle_native_crash
    0x109907af4 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : sigabrt_signal_handler
    0x1dc9bfd50 - /usr/lib/system/libsystem_platform.dylib : <redacted>
    0x1dc9d68d8 - /usr/lib/system/libsystem_pthread.dylib : pthread_kill
    0x18d48d0c0 - /usr/lib/system/libsystem_c.dylib : abort
    0x1087a2fe0 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Test : xamarin_find_protocol_wrapper_type
    0x1098d55ec - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : monoeg_g_logv_nofree
    0x1098d563c - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : monoeg_g_log
    0x10990a3e0 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : mono_resolve_patch_target
    0x1098e3ce0 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : mono_aot_plt_resolve
    0x109912c68 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : mono_aot_plt_trampoline
    0x103a8968c - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Test : sqlite3_sleep
    0x1032fc490 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Test : sqlite3_sleep
    0x1032c3804 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Test : sqlite3_sleep
    0x1032c37e4 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Test : sqlite3_sleep
    0x105df8824 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Test : sqlite3_sleep
    0x103a18e90 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Test : sqlite3_sleep
    0x10990fe74 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : mono_jit_runtime_invoke
    0x1099cbe70 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : mono_runtime_try_invoke
    0x1099cab70 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : mono_runtime_class_init_full
    0x10990a920 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : mono_resolve_patch_target
    0x1098e2418 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : init_method
    0x1098e3464 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : load_method
    0x1098e2c98 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : mono_aot_get_method
    0x10990b164 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : mono_jit_compile_method_with_opt
    0x10990fb90 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : mono_jit_runtime_invoke
    0x1099cbe70 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : mono_runtime_try_invoke
    0x1099cdd98 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Frameworks/Mono.framework/Mono : mono_runtime_invoke
    0x1087ae438 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Test : xamarin_localized_string_format_9
    0x1087a30f8 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Test : xamarin_find_protocol_wrapper_type
    0x1087b377c - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Test : xamarin_localized_string_format_9
    0x102fdc814 - /private/var/containers/Bundle/Application/00000000-0000-0000-0000-000000000000/Test.app/Test : sqlite3_sleep
    0x109480190 - Unknown

=================================================================
    Managed Stacktrace:
=================================================================
      at <unknown> <0xffffffff>
      at System.RuntimeTypeHandle:GetAssembly <0x0005f>
      at System.RuntimeType:GetRuntimeAssembly <0x00013>
      at System.RuntimeType:get_Assembly <0x00013>
      at Foundation.NSObject:.cctor <0x00023>
      at System.Object:runtime_invoke_dynamic <0x0010f>
=================================================================
dalexsoto commented 3 years ago

@kozw thanks for the report, can I ask you to make a new bug report and if possible attach a test case for this? Thank you!

tamifist commented 3 years ago

That works! Thanks @dalexsoto!

kozw commented 3 years ago

Issue created. Looks like there is an issue with application extensions

npagare commented 3 years ago

Success !!!!!!!!!!!!!!!!!!!!!!!!!! Big thanks and kudos to @dalexsoto and Xamarin iOS team -

With 14.20.0.27.pkg loaded on my MacMini along with XCode 13, I am able to deploy my App on iPhone - iOS 15 simulators.

Whewwwww hewww.!

Now waiting for 15.0.0.x to be available on stable channel so that I could test my App via VS 2019 as well as VS 2022 previews

beeradmoore commented 3 years ago

I got a native crash in my app when we generate a waveform.

=================================================================
    Native Crash Reporting
=================================================================
Got a segv while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

=================================================================
    Native stacktrace:
=================================================================
    0x10c4edb58 - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : mono_dump_native_crash_info
    0x10c4e3cd0 - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : mono_handle_native_crash
    0x10c4f1fd8 - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : mono_sigsegv_signal_handler_debug
    0x1175f6f98 - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/Frameworks/Mixpanel.framework/Mixpanel : MPSignalHandler
    0x1f0759c18 - /usr/lib/system/libsystem_platform.dylib : <redacted>
    0x1087ef768 - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : wrapper_managed_to_native_CoreFoundation_CFObject_CFRetain_intptr
    0x1087ef768 - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : wrapper_managed_to_native_CoreFoundation_CFObject_CFRetain_intptr
    0x1081468f4 - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : CoreMedia_CMBlockBuffer__ctor_intptr_bool
    0x10814c0e8 - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : CoreMedia_CMSampleBuffer_GetDataBuffer
    0x1052859a8 - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : MyProject_iOS_WaveformGenerator_WaveformGeneratorInternal_ProcessVideo
    0x1054ae58c - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : System_Threading_ThreadHelper_ThreadStart_Context_object
    0x1054ab5ec - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : System_Threading_ExecutionContext_RunInternal_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool
    0x1054ab3ec - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool
    0x1054ab370 - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object
    0x105c05980 - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : wrapper_other_object_gsharedvt_out_sig_object__object__object__intptr
    0x10c6c88a8 - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : jit_call_cb
    0x10c6c75a8 - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : do_jit_call
    0x10c6be704 - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : interp_exec_method_full
    0x10c6bc24c - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : interp_runtime_invoke
    0x10c4f5334 - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : mono_jit_runtime_invoke
    0x10c5afb2c - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : mono_runtime_invoke_checked
    0x10c5b5474 - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : mono_runtime_delegate_try_invoke
    0x10c5fd728 - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : start_wrapper_internal
    0x10c5fd4b4 - /private/var/containers/Bundle/Application/FE022EF3-1324-4B59-8D09-270CE8F32F79/MyProjectiOS.app/MyProjectiOS : start_wrapper
    0x1f0761a60 - /usr/lib/system/libsystem_pthread.dylib : _pthread_start
    0x1f0760f5c - /usr/lib/system/libsystem_pthread.dylib : thread_start

=================================================================
    Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x180baf200):0x180baf1f0  60 00 f8 b6 fd 7b c1 a8 ff 0f 5f d6 08 20 00 91  `....{...._.. ..
0x180baf200  09 fd df c8 0a 00 40 f9 6b 67 2c b0 6b d5 40 f9  ......@.kg,.k.@.
0x180baf210  48 01 2b 8a 50 01 0b ea 40 01 00 54 f1 03 00 aa  H.+.P...@..T....
0x180baf220  31 5c ed f2 30 1a c1 da f1 03 10 aa f1 47 c1 da  1\..0........G..

=================================================================
    Managed Stacktrace:
=================================================================
      at <unknown> <0xffffffff>
      at CoreFoundation.CFObject:CFRetain <0x00007>
      at CoreMedia.CMBlockBuffer:.ctor <0x00023>
      at CoreMedia.CMSampleBuffer:GetDataBuffer <0x00067>
      at WaveformGeneratorInternal:ProcessVideo <0x01257>
      at System.Threading.ThreadHelper:ThreadStart_Context <0x000bb>
      at System.Threading.ExecutionContext:RunInternal <0x001ab>
      at System.Threading.ExecutionContext:Run <0x0002b>
      at System.Threading.ExecutionContext:Run <0x0004f>
      at System.Object:gsharedvt_out_sig <0x0003f>
      at <unknown> <0xffffffff>
      at System.Threading.ThreadHelper:ThreadStart <0x00020>
      at <Module>:invoke_void <0x00078>
      at System.Object:runtime_invoke_direct_void__this__ <0x00094>
=================================================================

I'll try make a small repro project today.

dalexsoto commented 3 years ago

I'll try make a small repro project today.

@beeradmoore thank you for your report! Please, if you are able to make that repro test case please make a new bug with all the details so it does not get lost. Thank you!

kasenhoo commented 3 years ago

with option2, I have finished deployed to ios 15...but ,, deploy to ios 14,,,it crash on started...any help....

kasenhoo commented 3 years ago

with option2, I have finished deployed to ios 15...but ,, deploy to ios 14,,,it crash on started...any help....

deploy to ios 15 successfully with vs2019 for mac, and running ok ..

but running failed in ios 14...

try to deploy in vs 2019 in windows,,,it told me to sync xamarin.ios 14.xx.24,,.. as following:

image

npagare commented 3 years ago

Hi @kasenhoo, please install 14.20.0.27 from the link mentioned by @dalexsoto in the beginning of this issue. Install it directly on Mac by downloading it and clicking the .pkg file to install it.

Once install is completed, validate your install by running a small program within XCode 13 first followed by testing a Xamarin Forms app within VS Mac to make sure iOS 15 simulators are working fine.

Then, open regedit on your PC. Locate the key - Computer\HKEY_CURRENT_USER\SOFTWARE\Xamarin\VisualStudio\MacAgent And, then set DisableXamariniOSValidation to True. If that key doesn't exists, then create one. Remember to reset it to False once the GA version of this package is out.

npagare commented 3 years ago

with option2, I have finished deployed to ios 15...but ,, deploy to iOS 14,,,it crash on started...any help....

I validated against iOS 15 and iOS 13. Found no issue. Didn't get to check on iOS 14.

mrwcjoughin commented 3 years ago

Hello all, we have a new release candidate build for Xcode 13 Support

Please give this a try and let us know how it goes!

With ❤️ to you all,

  • The macios team!

thanks - downloading it now :)

nschoenberg commented 3 years ago

Can confirm downgrade to xcode 12.5.1 worked for me on two machines.

Are you able to deploy the build from xcode 12.5 to an iOS 15 device?

I don't have an iOS 15 device but I think it will not work. I also don't have iOS 15 simulators available. Its fine for me to do it like this for some days

Anujai1 commented 3 years ago

Hi @dalexsoto Do we need to create new build and publish again for the Xamarin apps which are not working in latest iOS 15?

dalexsoto commented 3 years ago

@Anujai1 That is very particular of every iOS App, it is not required that you rebuild and update a perfectly working App in the new iOS (is that is the case) but if your app is misbehaving you need to accommodate any new changes in your code that the new iOS introduced and submit that new version to the AppStore and usually in order for that to happen you need to use the latest Xcode available.

dalexsoto commented 3 years ago

A new release candidate is out!

We are just waiting on one more fix and we should have our final build declared, I'll post back once we have it. Thank you all a lot for your patience, testing and feedback of our release candidate builds! 🙏 We really appreciate it! ❤️

The macios team!

kasenhoo commented 3 years ago

Hi @kasenhoo, please install 14.20.0.27 from the link mentioned by @dalexsoto in the beginning of this issue. Install it directly on Mac by downloading it and clicking the .pkg file to install it.

Once install is completed, validate your install by running a small program within XCode 13 first followed by testing a Xamarin Forms app within VS Mac to make sure iOS 15 simulators are working fine.

Then, open regedit on your PC. Locate the key - Computer\HKEY_CURRENT_USER\SOFTWARE\Xamarin\VisualStudio\MacAgent And, then set DisableXamariniOSValidation to True. If that key doesn't exists, then create one. Remember to reset it to False once the GA version of this package is out.

Thank you very much ... it works fine!!!

swatiburnwal-stormgeo commented 3 years ago

2nd option worked for me, Just installed xamarin.ios-14.20.0.27.pkg and restarted VS, all simulator visible like a magic...

Thanks a lot

bbenetskyy commented 3 years ago

Hi @dalexsoto just install and try to use with Xcode v13.0 beta 5 from VS for Mac v17.0 Preview and it works without any problems.

Thanks a lot 🤩 🥳

innomotionmedia commented 3 years ago

xamarin.ios 15.0.0.4 works when the deployment target is set to min 9.0. linker failed when lower (event tho linking was set to none)

Thank you for fast updates!

UPDATE:

unfortuantely, hot reload dont work no more on this package.

dalexsoto commented 2 years ago

@innomotionmedia I would suggest filling a bug via the windows help menu, this way your feedback will reach the right group. That said I will also pass the information along. Thank you for your feedback!

dalexsoto commented 2 years ago

Hello All!

We have what we believe is the final build for Xcode 13 Support

What to expect now? Our release process has started and in the coming days you should see the package available via VSMac updater first and not so long after also available via a VS for Windows update. While this happens you can use this package with the current stable channel of VSMac and as described here (thanks to @IoTFier for this) on windows too!

Thank you for your patience, testing and feedback during all this process! Let us know how it goes!

With ❤️ The macios team!

npagare commented 2 years ago

Hello All!

We have what we believe is the final build for Xcode 13 Support

What to expect now? Our release process has started and in the coming days you should see the package available via VSMac updater first and not so long after also available via a VS for Windows update. While this happens you can use this package with the current stable channel of VSMac and as described here (thanks to @IoTFier for this) on windows too!

Thank you for your patience, testing and feedback during all this process! Let us know how it goes!

With ❤️ The macios team!

@dalexsoto, thank you and everyone from Xamarin.iOS team.

For windows trick the credit goes to @mauroa . He is an awesome person having expertise with humble attitude. Always ready to dig for the root cause. Mauro, thank you for your help.

exendahal commented 2 years ago

xamarin.ios-15.0.0.6.pkg worked for me.

kozw commented 2 years ago

Works for me! The issue with an extension on device seems to be resolved (https://github.com/xamarin/xamarin-macios/issues/12810)

Great stuff

SaravananWipro commented 2 years ago

I am getting below error after installing xamarin.ios-15.0.0.6.pkg

Main.cs(20,13): error CS0618: 'UIApplication.Main(string[]?, string?, string?)' is obsolete: 'Use the overload with 'Type' instead of 'String' parameters for type safety.'

rolfbjarne commented 2 years ago

@SaravananWipro that's a new warning, and it's probably an error because you're building with /warnaserror.

In any case, the fix is to do this:

UIApplication.Main (args, null, typeof (AppDelegate));

instead of this:

UIApplication.Main (args, null, "AppDelegate");

(adjust the code accordingly if your call to UIApplication.Main is different).

flimtix commented 2 years ago

(adjust the code accordingly if your call to UIApplication.Main is different)

Will this happen automatically once Xamarin with Xcode 13 is released offically?

dalexsoto commented 2 years ago

(adjust the code accordingly if your call to UIApplication.Main is different)

Will this happen automatically once Xamarin with Xcode 13 is released offically?

No, well at least not for existing projects but yes for new projects since they will use the updated template that includes such change

rippo commented 2 years ago

Can confirm for now the package xamarin.ios-15.0.0.6.pkg seems to do trick as long as you remember to set this in the regsitry

2021-09-24_15-43-41

I suspect you will need to remove it when a VS update happens!

HudsonRomeu commented 2 years ago

🚨 Update ⚠️

Hello All!

We have what we believe is the final build for Xcode 13 Support

Thank you for your patience!

The macios team!

~Apple released Xcode 13.0 on September 20, 2021 we are working to get our Xcode 13 support release out in the meantime if you use Xamarin we recommend you to not upgrade to Xcode 13 just yet and keep using Xcode 12.5.~

~If you updated to Xcode 13, you have 3 options:~

  1. ~You can download Xcode 12.5 from the downloads page in the Apple Developer Portal and continue to use it.~
  2. ~If you need to keep Xcode 13 but want to use our current stable d16-10 bits you will need to install the following in you macOS machine~

  3. ~Use a build from our xcode13-ios branch, this is where our next stable release is coming out and it includes all the iOS 15 SDKs APIs, that said we are still ironing it out.~

~We will keep this issue updated as we go to have the final builds declared.~

~Thank you for your patience!~

~The macios team!~

Works nicelly on vs 2019 (16.11.3), xCode 13 and iPhone 7 running on iOS 15. Thanks Macios team!