Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25029] iOS 11: Build warnings for legacy launch images using Xcode 9

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionNot Our Bug
Resolution Date2017-10-11T13:28:14.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterHans Knöchel
AssigneeChris Barber
Created2017-07-26T20:20:47.000+0000
Updated2018-08-06T17:52:03.000+0000

Description

Using Xcode 9 Beta 4 and the latest iOS 11 Beta 4, I noticed a couple of warnings when running the iOS build on the packaged SDK:
[TRACE]     /Applications/Xcode9.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Intermediates/test_tmp.build/Debug-iphonesimulator/test_tmp.build/assetcatalog_dependencies --output-partial-info-plist /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Intermediates/test_tmp.build/Debug-iphonesimulator/test_tmp.build/assetcatalog_generated_info.plist --app-icon AppIcon --launch-image LaunchImage --compress-pngs --enable-on-demand-resources YES --filter-for-device-model iPhone9,2 --filter-for-device-os-version 11.0 --sticker-pack-identifier-prefix com.appcelerator.titanium.sticker-pack. --target-device iphone --target-device ipad --minimum-deployment-target 8.0 --platform iphonesimulator --product-type com.apple.product-type.application --compile /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/Assets.xcassets
[TRACE] 2017-07-26 22:15:27.815 ibtoold[4601:72299] CoreSimulatorService connection interrupted.  Resubscribing to notifications.
[TRACE] 2017-07-26 22:15:27.815 ibtoold[4601:72113] CoreSimulatorService connection interrupted.  Resubscribing to notifications.
[TRACE] 2017-07-26 22:15:27.815 ibtoold[4601:72297] CoreSimulatorService connection interrupted.  Resubscribing to notifications.
[TRACE] 2017-07-26 22:15:27.820 ibtoold[4601:72298] CoreSimulatorService connection interrupted.  Resubscribing to notifications.
[TRACE] 2017-07-26 22:15:27.820 ibtoold[4601:72113] CoreSimulatorService connection interrupted.  Resubscribing to notifications.
[TRACE] 2017-07-26 22:15:27.820 ibtoold[4601:72090] CoreSimulatorService connection became invalid.  Simulator services will no longer be available.
[TRACE] 2017-07-26 22:15:28.071 ibtoold[4601:72298] CoreSimulator detected Xcode.app relocation or CoreSimulatorService version change.  Framework path (/Library/Developer/PrivateFrameworks/CoreSimulator.framework) and version (494.4) does not match existing job path (/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc) and version (375.21).  Attempting to remove the stale service in order to add the expected version.
[TRACE] 2017-07-26 22:15:28.324 ibtoold[4601:72299] CoreSimulatorService connection became invalid.  Simulator services will no longer be available.
[TRACE] 2017-07-26 22:15:28.325 ibtoold[4601:72299] CoreSimulatorService connection became invalid.  Simulator services will no longer be available.
[TRACE] CoreUI(DEBUG): Current version = 483.0, Linked UIKit version = 65535, Compatibility mode = 9999
[TRACE] 2017-07-26 22:15:34.714 IBCocoaTouchImageCatalogTool[4607:72433] RPC shutdown with error: Error Domain=IBMessageChannelErrorDomain Code=4 "Failed to communicate with Interface Builder" UserInfo={NSLocalizedDescription=Failed to communicate with Interface Builder, NSLocalizedFailureReason=The agent crashed}
[TRACE] /* com.apple.actool.document.notices */
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/Assets.xcassets:./LaunchImage.launchimage/[iphone][736h][3x][portrait][full-screen][8.0]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/Assets.xcassets:./LaunchImage.launchimage/[iphone][736h][3x][landscape][full-screen][8.0]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/Assets.xcassets:./LaunchImage.launchimage/[iphone][667h][2x][portrait][full-screen][8.0]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
[TRACE] /* com.apple.actool.compilation-results */
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/AppIcon29x29@2x.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/AppIcon29x29@3x.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/AppIcon40x40@2x.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/AppIcon40x40@3x.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/AppIcon60x60@2x.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/AppIcon60x60@3x.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/AppIcon29x29~ipad.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/AppIcon29x29@2x~ipad.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/AppIcon40x40~ipad.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/AppIcon40x40@2x~ipad.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/AppIcon76x76~ipad.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/AppIcon76x76@2x~ipad.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/AppIcon83.5x83.5@2x~ipad.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/LaunchImage-800-Portrait-736h@3x.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/LaunchImage-800-Landscape-736h@3x.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/LaunchImage-800-667h@2x.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/LaunchImage-700@2x.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/LaunchImage-700-568h@2x.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/LaunchImage-700-Portrait~ipad.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/LaunchImage-700-Landscape~ipad.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/LaunchImage-700-Portrait@2x~ipad.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/LaunchImage-700-Landscape@2x~ipad.png
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Products/Debug-iphonesimulator/test_tmp.app/Assets.car
[TRACE] /Users/hknoechel/Documents/Apps/test_tmp/build/iphone/build/Intermediates/test_tmp.build/Debug-iphonesimulator/test_tmp.build/assetcatalog_generated_info.plist
Some of the warnings are pretty self-describing and seem to be easy to fix: {quote} This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later. {quote} Another one might be related to an issue I discovered earlier, where the Simulator could not save the sim-state and force-quite-relaunches the Sim on every build, causing huge build delays (15+ seconds more): {quote} CoreSimulatorService connection became invalid. Simulator services will no longer be available. {quote} We should investigate the warnings, fix the icon-generation for legacy sizes and ensure the generated project works correctly.

Comments

  1. Chris Barber 2017-08-14

    The CoreSimulatorService message is unrelated to this ticket. It should be harmelss. ioslib will detect the CoreSimulatorService swap and rerun the command.
  2. Chris Barber 2017-08-14

    Ti SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/9314 Ti SDK 6_2_X PR: https://github.com/appcelerator/titanium_mobile/pull/9315
  3. Hans Knöchel 2017-08-26

    I cannot approve the master PR at this time, because it has to be something else. The warning talks about iOS 6 related launch-screens, the PR removes launch-screens introduced in iOS 8 / 9, which are the most recent ones required for the latest iPhone models (iPhone 6/7). If we remove those screens, these devices won't have a proper launch-screen anymore, which must be incorrect. I'll research a bit more on that after 6.2.0 releases. For the CoreSimulatorService, I still think it is Titanium-related, because the build time has extremely slown down for iOS builds - because of the reasons mentioned above. Titanium kills the iOS Simulator on every build (on purpose or not). And a fresh iOS sim boot take around 15 seconds, which is blocking the user. What others do and what we also do on Android already is that we should launch the Sim as soon as we now the model (which should be at a quite early point, at least before xcodebuild steps in) and just install the app once compiling finished. This could even speed-up general iOS builds, as other non iOS 11 sims would also benefit from it. This is written down in TIMOB-24888 as well.
  4. Hans Knöchel 2017-10-11

    Resolving as Not our Bug as it has to be an Xcode 9 bug to detect false-positives here. The launch-images are required and look the same in the asset-catalog of a native project, so we cannot remove them. I'll try to open a radar at Apple for this to track it further and reopen this ticket if necessary.
  5. Eric Merriman 2018-08-06

    Closing as "not our bug". If you disagree, please reopen.

JSON Source