Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26216

iOS CLI: Incremental build does not remove unencrypted JS files when switching deploy type from "development" to "test"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 7.5.0
    • Component/s: iOS
    • Labels:
    • Story Points:
      0
    • Sprint:
      2016 Sprint 17 SDK

      Description

      Summary:
      There is an iOS incremental build issue where if you build for the iOS Simulator first, then an iOS device afterwards, the resulting iOS app bundle will contain both encrypted .js files an unencrypted plain text .js files. Builds for device (ie: deployment type "test" and "production") must encrypt all .js files.

      This is not an issue with production/release builds.
      This is only an issue with debug builds.

      Steps to reproduce:

      1. On Mac, open a "Finder" window.
      2. Go to an existing Titanium project directory.
      3. Delete its "build" directory if it has one.
      4. Open a "Terminal" window.
      5. In the terminal, cd to the same project directory.
      6. Run: appc run -p ios -D development --build-only
      7. Wait for the build to finish.
      8. Run: appc run -p ios -D test --build-only
      9. Wait for the build to finish.
      10. In "Finder", go to directory: ./build/iphone/build/Products/Debug-iphonesimulator
      11. Right click on the app bundle file and select "Show Package Contents" from the popup menu.

      Result:
      The app bundle for the "test" build contains plain text .js files such as "app.js" when it shouldn't. A "test" build must encrypt all .js files.

      Notes:

      • This is an incremental build issue. The app bundle includes both encrypted .js files and plain text .js files from the previous "development" build.
      • I'm not sure if the reverse is true. When doing a "test" build first and then doing a "development" build, the generated ApplicationRouting.m does not contain any assets.

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Chris Barber
              Tester:
              Samir Mohammed
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-6464
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code