Skip to content

Text not appearing in older versions on iOS (could not find font collection error) #16055

@MaikuB

Description

@MaikuB

Steps to Reproduce

Create a new flutter project and run it on an iOS 11.2 simulator. Everything renders and functions fine. Now switch to a simulator with an older version of iOS and can see that none of the text is rendering. Have only checked this on an iOS 8.2 simulator. Not sure which other versions are affected. See below for logs where's output saying that fonts cannot be found

screen shot 2018-03-29 at 3 49 14 pm

Logs

flutter run logs

_Launching lib/main.dart on iPhone 6 in debug mode...
Running Xcode clean...                                       0.8s
Starting Xcode build...
 ├─Assembling Flutter resources...                    1.4s
 └─Compiling, linking and signing...                  5.3s
Xcode build done                                             7.8s
            PackageType = Developer;
            SimulatorRootPath = "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.2.simruntime/Contents/Resources/RuntimeRoot";
            SimulatorUserPath = "/Users/michaelbui/Library/Developer/CoreSimulator/Devices/4083951E-369A-4B29-B842-1CD8F2349C11/data";
        }
        state->old_bundle: /Users/michaelbui/Library/Developer/CoreSimulator/Devices/4083951E-369A-4B29-B842-1CD8F2349C11/data/Containers/Bundle/Application/06AA212F-F7EF-4361-A31E-C5284FED74DF/Runner.app
        state->new_bundle: /Users/michaelbui/Projects/hello_world/build/ios/iphonesimulator/Runner.app
        state->dst_bundle: /Users/michaelbui/Library/Developer/CoreSimulator/Devices/4083951E-369A-4B29-B842-1CD8F2349C11/data/Library/Caches/com.apple.mobile.installd.staging/temp.vFMvJt/extracted/Payload//Runner.app, binaryDiff flag: FALSE
                dst_ipa: /Users/michaelbui/Library/Developer/CoreSimulator/Devices/4083951E-369A-4B29-B842-1CD8F2349C11/data/Library/Caches/com.apple.mobile.installd.staging/temp.vFMvJt/extracted
        Added: {(
        )}
        Removed: {(
        )}
        Modified: {(
            "com.example.helloWorld"
        )}
            CFBundleIdentifier = "com.example.helloWorld";
            PackageType = Developer;
            SimulatorRootPath = "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.2.simruntime/Contents/Resources/RuntimeRoot";
            SimulatorUserPath = "/Users/michaelbui/Library/Developer/CoreSimulator/Devices/4083951E-369A-4B29-B842-1CD8F2349C11/data";
        })
            arguments =     (
                "--enable-dart-profiling",
                "--flutter-assets-dir=/Users/michaelbui/Projects/hello_world/build/flutter_assets",
                "--dart-main=/Users/michaelbui/Projects/hello_world/lib/main.dart",
                "--packages=/Users/michaelbui/Projects/hello_world/.packages",
                "--enable-checked-mode",
                "--observatory-port=8100"
            );
            environment =     {
            };
        }
                retryTimeout: 120.000000 (default write com.apple.CoreSimulatorBridge LaunchRetryTimeout <value>)
                bootTimeout: 300.000000 (default write com.apple.CoreSimulatorBridge BootRetryTimeout <value>)
                bootLeeway: 120.000000 (default write com.apple.CoreSimulatorBridge BootLeeway <value>)
                Note: Use 'xcrun simctl spawn booted defaults write <domain> <key> <value>' to modify defaults in the booted Simulator device.
        Simulator booted at: 2018-03-29 04:44:14 +0000
        Current time: 2018-03-29 04:49:10 +0000
        Within boot leeway: NO
You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModesin your Info.plist.
Syncing files to device iPhone 6...
[VERBOSE0:paragraph.cc(250)] Could not find font collection for family ".SF UI Display".
[VERBOSE0:paragraph.cc(250)] Could not find font collection for family ".SF UI Text".
[VERBOSE0:paragraph.cc(250)] Could not find font collection for family ".SF UI Display".
[VERBOSE0:paragraph.cc(250)] Could not find font collection for family ""_

flutter analyze reports no issues

Flutter Doctor

[✓] Flutter (Channel beta, v0.2.3, on Mac OS X 10.13.3 17D102, locale en-AU)
    • Flutter version 0.2.3 at /Users/michaelbui/flutter
    • Framework revision 5a58b36e36 (2 weeks ago), 2018-03-13 13:20:13 -0700
    • Engine revision e61bb9ac3a
    • Dart version 2.0.0-dev.35.flutter-290c576264

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/michaelbui/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = /Users/michaelbui/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.2, Build version 9C40b
    • ios-deploy 1.9.2
    • CocoaPods version 1.4.0

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] IntelliJ IDEA Community Edition (version 2017.3.5)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 23.0.2
    • Dart plugin version 173.4700

[✓] VS Code (version 1.21.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Dart Code extension version 2.11.1

[✓] Connected devices (1 available)
    • iPhone 6 • 4083951E-369A-4B29-B842-1CD8F2349C11 • ios • iOS 8.2 (simulator)

• No issues found!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions