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.48k stars 514 forks source link

[Meta] Xcode 13.0 Support #12778

Closed dalexsoto closed 3 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!~

GreatBarrier86 commented 3 years ago

The negligence level reigning in that software provider team is now beyond comprehensible. Obviously some sort of internal sabotage going on. Are MS executives/shareholders aware of this situation and investigating into this recurrent issue?

Lighten up, Francis.

PredatH0r commented 3 years ago

I finally have a working solution (for the Navigation/Title and Tab bars):

In AppDelegate.cs of the iOS project:

    public override bool FinishedLaunching(UIApplication app, NSDictionary options)
    {
      global::Xamarin.Forms.Forms.Init();
      LoadApplication(new App());

      if (UIDevice.CurrentDevice.CheckSystemVersion(15, 0))
      {
        var textColor = UIColor.White;
        var backColor = UIColor.FromRGB(33, 150, 234);

        var stringAttributes = new UIStringAttributes { ForegroundColor = textColor };
        UINavigationBar.Appearance.ScrollEdgeAppearance = new UINavigationBarAppearance
        {
          BackgroundColor = backColor, 
          TitleTextAttributes = stringAttributes, 
          LargeTitleTextAttributes = stringAttributes
        };

        UITabBar.Appearance.ScrollEdgeAppearance = new UITabBarAppearance { BackgroundColor = backColor };
      }

      return base.FinishedLaunching(app, options);
    }

Please note that the BarTintColor property seems to have no effect at all with iOS 15, regardless of Translucent=false/true. In my app I am using GMImagePicker.Xamarin and its "NavigationBarBarTintColor" property is ignored just like my app's NavigationBar.TintColor. But with the code snippet above in place, both my app's MainPage and the GMImagePicker now use the blue-ish BackgroundColor and the white text color I set in the code.

GTCLive commented 3 years ago

Lighten up, Francis.

haha, thanks Jack. Yeah that hot rebroke huh. Was broken, got fixed, and butchered once more too often. Just about when one indeed lightens up and go shop somewhere else! Wonder what happen to equities when one finds out something is going awfully wrong within the Fortune 500's internal validation process.... step up asap @MS devs.

drasticactions commented 3 years ago

Lighten up, Francis.

haha, thanks Jack. Yeah that hot rebroke huh. Was broken, got fixed, and butchered once more too often. Just about when one indeed lightens up and go shop somewhere else! Wonder what happen to equities when one finds out something is going awfully wrong within the Fortune 500's internal validation process.... step up asap @ms devs.

https://developercommunity.visualstudio.com/t/XAML-Hot-Reload-does-not-load-with-Xamar/1543082

A fix for this is coming soon. It broke with XCode 13 GA and worked with the previous betas and was missed just before everything shipped.

It should still work with iOS Devices, and with MAUI apps with the sim or devices.

RTchakmakian commented 3 years ago

Hy guys, I still can't run my app on IOS 15:

================================================================= 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:

0x1046990f5 - /Users/jaxtech/Library/Developer/CoreSimulator/Devices/D4C181C6-BA5C-4704-B06C-063DF718AC0B/data/Containers/Bundle/Application/60178B5D-BA6B-43E8-9F50-00806729FA09/PlainnessiOSPhone.app/PlainnessiOSPhone : mono_dump_native_crash_info
0x10468d53e - /Users/jaxtech/Library/Developer/CoreSimulator/Devices/D4C181C6-BA5C-4704-B06C-063DF718AC0B/data/Containers/Bundle/Application/60178B5D-BA6B-43E8-9F50-00806729FA09/PlainnessiOSPhone.app/PlainnessiOSPhone : mono_handle_native_crash
0x1046a0449 - /Users/jaxtech/Library/Developer/CoreSimulator/Devices/D4C181C6-BA5C-4704-B06C-063DF718AC0B/data/Containers/Bundle/Application/60178B5D-BA6B-43E8-9F50-00806729FA09/PlainnessiOSPhone.app/PlainnessiOSPhone : mono_sigsegv_signal_handler_debug
0x7fff6bfe0d7d - /usr/lib/system/libsystem_platform.dylib : _sigtramp
0x1049d8af0 - /Users/jaxtech/Library/Developer/CoreSimulator/Devices/D4C181C6-BA5C-4704-B06C-063DF718AC0B/data/Containers/Bundle/Application/60178B5D-BA6B-43E8-9F50-00806729FA09/PlainnessiOSPhone.app/PlainnessiOSPhone : ss_trampoline
0x1048aee44 - /Users/jaxtech/Library/Developer/CoreSimulator/Devices/D4C181C6-BA5C-4704-B06C-063DF718AC0B/data/Containers/Bundle/Application/60178B5D-BA6B-43E8-9F50-00806729FA09/PlainnessiOSPhone.app/PlainnessiOSPhone : xamarin_invoke_objc_method_implementation
0x1048aefc8 - /Users/jaxtech/Library/Developer/CoreSimulator/Devices/D4C181C6-BA5C-4704-B06C-063DF718AC0B/data/Containers/Bundle/Application/60178B5D-BA6B-43E8-9F50-00806729FA09/PlainnessiOSPhone.app/PlainnessiOSPhone : xamarin_release_trampoline
0x1048ac35d - /Users/jaxtech/Library/Developer/CoreSimulator/Devices/D4C181C6-BA5C-4704-B06C-063DF718AC0B/data/Containers/Bundle/Application/60178B5D-BA6B-43E8-9F50-00806729FA09/PlainnessiOSPhone.app/PlainnessiOSPhone : xamarin_release_managed_ref
0x108f4819c - Unknown

================================================================= Basic Fault Address Reporting

Memory around native instruction pointer (0x7fff201803cb):0x7fff201803bb 0f 1f 44 00 00 48 85 ff 7e 63 4c 8b 17 49 89 f3 ..D..H..~cL..I.. 0x7fff201803cb 45 23 5a 18 49 c1 e3 04 4d 03 5a 10 49 3b 33 75 E#Z.I...M.Z.I;3u 0x7fff201803db 0a 4d 8b 5b 08 4d 31 d3 41 ff e3 49 83 3b 01 76 .M.[.M1.A..I.;.v 0x7fff201803eb 13 49 83 c3 10 49 3b 33 75 f1 4d 8b 5b 08 4d 31 .I...I;3u.M.[.M1

================================================================= Managed Stacktrace:

  at <unknown> <0xffffffff>
  at Foundation.NSObject:xamarin_release_managed_ref <0x000fb>
  at Foundation.NSObject:ReleaseManagedRef <0x0019a>
  at NSObject_Disposer:Drain <0x00392>
  at <Module>:runtime_invoke_void_object <0x001a8>
  at <unknown> <0xffffffff>
  at UIKit.UIApplication:UIApplicationMain <0x00254>
  at UIKit.UIApplication:Main <0x00172>
  at Plainness.iOS.Phone.Application:Main <0x00092>
  at <Module>:runtime_invoke_void_object <0x001a8>

=================================================================

dalexsoto commented 3 years ago

Hello, now that Xcode 13 support is out in both VS for Windows and VS for Mac I would encourage everyone that if you find issues with anything please report them in the respective support channel so they are not lost.

I will lock this thread for a little so issues can flow to the right places. Please do not forget to fill in as much information as possible requested by the new issues templates.

Thank you all!