Skip to content

Issues when using macos 10.15 & ios 13 #33909

@kangwang1988

Description

@kangwang1988

I've upgraded my Mac to 10.15 and iPhone to iOS13.
Here're several problems I've met:

gen_snapshot(i386) reports bad cpu type(i386 is not supported to run in macos 10.15)

flutter doctor -v --verbose

[!] Flutter (Channel alf_stable_v1.5.4, v1.5.4-hotfix.3-pre.28, on Mac OS X 10.15 19A471t, locale en)
    • Flutter version 1.5.4-hotfix.3-pre.28 at /Users/kylewong/Codes/Flutter/official/flutter
    • Framework revision acb8e3e9ea (23 hours ago), 2019-06-04 18:42:28 +0800Engine revision 52c7a1e849
    • Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)
    ✗ Downloaded executables cannot execute on host.
      See https://github.com/flutter/flutter/issues/6207 for more information

See:
#33896
and
#22598

ios-deploy will fail when called to launch ios app

flutter run --verbose

[        ] [ 49%] Copying /Users/kylewong/Codes/Flutter/intl/fx_intfish/build/ios/iphoneos/Runner.app/AppIcon76x76~ipad.png to device
[ +273 ms] [ 52%] CreatingStagingDirectory
[        ] [ 57%] ExtractingPackage
[        ] [ 60%] InspectingPackage
[  +27 ms] [ 60%] TakingInstallLock
[ +391 ms] [ 65%] PreflightingApplication
[  +39 ms] [ 65%] InstallingEmbeddedProfile
[   +8 ms] [ 70%] VerifyingApplication
[ +291 ms] [ 75%] CreatingContainer
[   +4 ms] [ 80%] InstallingApplication
[   +4 ms] [ 85%] PostflightingApplication
[   +2 ms] [ 90%] SandboxingApplication
[  +14 ms] [ 95%] GeneratingApplicationMap
[ +200 ms] [100%] Installed package build/ios/iphoneos/Runner.app
[ +556 ms] ------ Debug phase ------
[        ] Starting debug of 1c8e085cf2ff6fa27643ab4afec4bf4a077688af (D10AP, iPhone 7, iphoneos, arm64) a.k.a. 'KyleWong's iPhone'
connected through USB...
[ +220 ms] [  0%] Looking up developer disk image
[  +20 ms] [ 95%] Developer disk image mounted successfully
[  +83 ms] 2019-06-05 17:54:58.369 ios-deploy[50514:429547] [ !! ] Error 0xe800007f: Device doesn't support wireless sync.
AMDeviceStartService(device, CFSTR("com.apple.debugserver"), &gdbfd, NULL)
[   +2 ms] Failed to launch the application on device.
[   +1 ms] Installing and launching... (completed in 6.9s)
[        ] Could not install build/ios/iphoneos/Runner.app on 1c8e085cf2ff6fa27643ab4afec4bf4a077688af.
[        ] Try launching Xcode and selecting "Product > Run" to fix the problem:
[        ]   open ios/Runner.xcworkspace
[        ] Error launching application on KyleWong's iPhone.

See
ios-control/ios-deploy#370
Which is fixed in ios-control/ios-deploy#385

A quick fix for b is to:

cd ~/Desktop
wget https://raw.githubusercontent.com/kangwang1988/kangwang1988.github.io/master/others/ios-deploy
chmod +x ios-deploy
mv ios-deploy /usr/local/Cellar/ios-deploy/1.9.4/bin

This quickfix is based on https://github.com/Ukalnins/ios-deploy/tree/my_master and will be removed once the release build for ios-deploy fix this issue.

Unexpected defaults command result

flutter run --verbose

The domain/default pair of (/Users/kylewong/Desktop/hello_flutter/ios/Runner/Info, CFBundleIdentifier) does not
exist

In flutter, defaults comand instread of plutil is used to parse plist files. However, defaults command in MacOS 10.15 seems working unexpectedly.

kylewong@KyleWongdeMacBook-Pro Downloads % md5 /Applications/Android\ Studio.app/Contents/Info.plist 
MD5 (/Applications/Android Studio.app/Contents/Info.plist) = 35022a129a5bc23c51b2c05c9029ebe9
kylewong@KyleWongdeMacBook-Pro Downloads % md5 /Users/kylewong/Downloads/Info.plist 
MD5 (/Users/kylewong/Downloads/Info.plist) = 35022a129a5bc23c51b2c05c9029ebe9

Those two plist has the same md5, however, defaults works differently.

% defaults read /Users/kylewong/Downloads/Info
2019-06-06 10:26:27.505 defaults[26063:176464] 
Domain /Users/kylewong/Downloads/Info does not exist
kylewong@KyleWongdeMacBook-Pro Downloads % defaults read /Applications/Android\ Studio.app/Contents/Info
{
    CFBundleDevelopmentRegion = English;
    CFBundleDocumentTypes =     (
                {
            CFBundleTypeExtensions =             (
                ipr
            );
            CFBundleTypeIconFile = "studio.icns";
            CFBundleTypeName = "Android Studio Project File";
            CFBundleTypeRole = Editor;
        },

It seems plutil works fine now while the defaults command fails.

plutil -p /Users/kylewong/Downloads/Info.plist
{
  "CFBundleDevelopmentRegion" => "English"
  "CFBundleDocumentTypes" => [
    0 => {
      "CFBundleTypeExtensions" => [
        0 => "ipr"
      ]
      "CFBundleTypeIconFile" => "studio.icns"
      "CFBundleTypeName" => "Android Studio Project File"
      "CFBundleTypeRole" => "Editor"
    }
    1 => {
      "CFBundleTypeExtensions" => [
        0 => "*"
      ]
      "CFBundleTypeName" => "All documents"
      "CFBundleTypeOSTypes" => [
        0 => "****"
      ]
      "CFBundleTypeRole" => "Editor"
      "LSTypeIsPackage" => 0
    }

cc @vanelizarov

As it is not a blocker now and macos 10.15 is still in beta, I don't think it's a good practice to change the plist parsing logic in flutter.

Updated at 2019-06-06 10:34:59

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform-iosiOS applications specificallyplatform-macBuilding on or for macOS specificallyt: xcode"xcodebuild" on iOS and general Xcode project management‎‍platform-catalinaIssues related to macOS Catalina

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions