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

iOS: "appc run" wrongly edits a Titanium SDK installed file causing studio to beachball and rebuild its workspace

    Details

    • Sprint:
      2019 Sprint 11, 2019 Sprint 12

      Description

      Summary:
      Every time you click "Run" in Appcelator Studio to the iOS simulator, the IDE will beachball while rebuilding the workspace once the built app is launched in the simulator. The IDE can block for 5-60 seconds depending on the machine. While beachballing, the IDE cannot be used. Nor can you view anything being logged by the app.
      (Studio always beachballs for 1 minute for me.)

      Cause:
      The CLI is changing the following Titanium SDK file whenever you do an appc run to the iOS Simulator.

      ./node_modules/ioslib/lib/sim_focus.scpt
      

      Appcelerator Studio monitors for any Titanium SDK changes under the below directory. If at least 1 file is added/changed/deleted under this directory, then the IDE will "Rebuild the Workspace". The above file change is triggering this behavior for iOS simulator builds.

      ~/Library/Application Support/Titanium/mobilesdk
      

      Note:
      You can monitor file tree changes with the below node.js script. You'll need to change the below path to your equivalent SDK version folder that you plan on building with (don't forget to change <UserName in path) and then run it in the terminal via the node command line tool.

      var fs = require("fs");
      var folderPath = "/Users/<UserName>/Library/Application Support/Titanium/mobilesdk/osx/8.1.0";
      fs.watch(folderPath, { recursive: true }, function(eventType, fileName) {
      	console.log("- [" + eventType + "] " + fileName);
      });
      

        Attachments

          Activity

            People

            • Assignee:
              eharris Ewan Harris
              Reporter:
              jquick Joshua Quick
              Tester:
              Satyam Sekhri
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code