flutter_blue icon indicating copy to clipboard operation
flutter_blue copied to clipboard

ITMS-90863: Apple silicon Macs support issue

Open AlexBacich opened this issue 1 year ago • 3 comments

I've got this email when I am publishing app to AppStore (or TestFlight).

How may I solve it?

Dear Developer,

We identified one or more issues with a recent delivery for your app, *****. Your delivery was successful, but you may wish to correct the following issues in your next delivery:

ITMS-90863: Apple silicon Macs support issue - The app uses symbols that are not present on Mac:

@rpath/flutter_blue_plus.framework/flutter_blue_plus OBJC_CLASS$_FlutterError After you’ve corrected the issues, you can upload a new binary to App Store Connect.

Best regards,

The App Store Team

AlexBacich avatar Sep 20 '23 14:09 AlexBacich

Yes, I am getting also the same error while developing and running in device...

(lldb) dyld[1764]: Symbol not found: (_OBJC_CLASS_$_FlutterError)
  Referenced from: '/private/var/containers/Bundle/Application/40C4C70F-AB52-4CCE-A35E-4A576270B81D/Runner.app/Runner'
  Expected in: '/private/var/containers/Bundle/Application/40C4C70F-AB52-4CCE-A35E-4A576270B81D/Runner.app/Frameworks/flutter_blue.framework/flutter_blue'
* thread #1, stop reason = signal SIGABRT
    frame #0: 0x0000000105e0b2cc dyld`__abort_with_payload + 8
dyld`:
->  0x105e0b2cc <+8>:  b.lo   0x105e0b2e8               ; <+36>
    0x105e0b2d0 <+12>: stp    x29, x30, [sp, #-0x10]!
    0x105e0b2d4 <+16>: mov    x29, sp
    0x105e0b2d8 <+20>: bl     0x105dd164c               ; cerror_nocancel
Target 0: (Runner) stopped.
Error launching application on Salman’s phone .

EXEIdeas avatar Sep 23 '23 09:09 EXEIdeas

Found a hint here https://developer.apple.com/forums/thread/735610, the main cause is that the iOS code still catches and throws FlutterErrors. After we got rid of that in our fork everything worked again. Here is the commit: https://github.com/wearnotch/flutter_blue/commit/4a0cad8ac8417a4460b4230a9429f58276696422 (sorry there are a lot of indentation changes as well)

vinicz avatar Oct 03 '23 09:10 vinicz

update to latest flutter_blue_plus and it will resolve this issue as well

chipweinberger avatar Oct 05 '23 10:10 chipweinberger