Nativescript-cli: [Xcode11] Launch images are deprecated in iOS 13.0

Created on 9 Aug 2019  路  1Comment  路  Source: NativeScript/nativescript-cli

Environment

  • CLI: 6.0.3
  • Cross-platform modules: 6.0.1
  • iOS Runtime: 6.0.1

Describe the bug
Building a HelloWorld JS app using Xcode 11 beta 5 is showing the following warning:
jsHelloWorld/platforms/ios/jsHelloWorld/Resources/Assets.xcassets:./LaunchImage.launchimage: warning: Launch images are deprecated in iOS 13.0. Use a launch storyboard or XIB instead.

To Reproduce
1) npm i nativescript@latest
2) sudo xcode-select -s <path-to-your-xcode11-beta5>
3) tns create jsHelloWorld --js && cd jsHelloWorld
4) tns build ios --emulator

Expected behavior
The app should be built without any warnings.

Acceptance criteria

  • [ ] The warning should be present with live templates and missing with rc templates

Related to: https://github.com/NativeScript/nativescript-cli/issues/4909

bug ios build

Most helpful comment

The solution to remove the warnings is:

  1. In ../App_Resources/iOS/build.xcconfig the configuration ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; should be removed.
  2. ../App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage should be deleted

>All comments

The solution to remove the warnings is:

  1. In ../App_Resources/iOS/build.xcconfig the configuration ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; should be removed.
  2. ../App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage should be deleted
Was this page helpful?
0 / 5 - 0 ratings