Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-591

Build to an iOS device and then an iOS simulator fails


    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 4.0.0
    • Fix Version/s: Release 4.0.0
    • Component/s: Titanium
    • Labels:
    • Environment:

      Appc CLI (NPM): 0.3.49
      Appc CLI (Registry): 0.2.269

    • Severity:
    • Story Points:
    • Sprint:
      2015 Sprint 08 Tooling



      When building an iOS app, if you build the app for device and then build the device for simulator the build for simulator will fail with the following error

      error 1

      [DEBUG] [ioslib] [ios-sim] [DEBUG] Session could not be started: Error Domain=NSPOSIXErrorDomain Code=22 "Installation Failed" UserInfo=0x7f916347ea40 {NSLocalizedDescription=Installation Failed, NSLocalizedRecoverySuggestion=An error occurred while preparing the app for installation (no bundle identifier was found at the expected path)}
      [DEBUG] [ioslib] [ios-sim] Exited with code: 1
      [ERROR] Project failed to build after 7s 726ms
      [ERROR] An error occurred running the iOS Simulator (ios-sim exit code 1)

      If I attempt to then clean the project and run again it fails with the following

      error 2

      [DEBUG] Setting Info.plist CFBundleVersion to 1.0
      [DEBUG] Setting Info.plist CFBundleShortVersionString to 1.0
      TRACE  | titanium exited with exit code 0

      From what I see, if I wait the full time required for the rebuild (1 hour) then it seems to work fine.

      Setting this line to be true makes the build work everytime!

      The fix for CLI-588 does not fix this issue

      Steps To Reproduce

      1. Create a new application using appc new
      2. Run the app on simulator using appc run -p ios -T simulator
      3. Run the app on device using appc run -p ios -T device
      4. Run the app on simulator using appc run -p ios -T simulator
      5. Clean the app appc ti clean
      6. Run the app on simulator using appc run -p ios -T simulator

      Actual Result

      2. App will be built successfully
      3. App will be built successfully
      4. App will not be built successfully (see error 1)
      6. App will not be built successfully (see error 2)

      Expected Result

      App should be successfully every time


          Issue Links



              • Assignee:
                cng Chee Kiat Ng (Inactive)
                eharris Ewan Harris
              • Watchers:
                2 Start watching this issue


                • Created:

                  Git Integration