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

iOS: Build fails to place JavaScript files into the iOS sim app

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Invalid
    • Affects Version/s: Release 3.2.2
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      iOS 7.1
      OSX 10.9.2
      NPM 1.4.3
      NODE v0.10.26

      Description

      Issue description

      After upgrading to Mavericks and Xcode 5.1 a build gets an empty .app file.

      Using the 3.2.0 SDK/CLI there is now no error, since they've copied ios-sim as work around https://jira.appcelerator.org/browse/TIMOB-16613.

      Using 3.2.1 CLI, this error occurs:

      [TRACE] :      /bin/sh -c \"/Users/tedalderson/Documents/Titanium\ Studio\Workspace/Portfolio2/build/iphone/build/GPS\ Test.build/Debug-iphonesimulator/GPS\Test-iPad.build/Script-24D8E4AD119B9D8A00F8CAA6.sh\"
      [TRACE] :  Xcode Post-Compile Phase: Touching important files
      [TRACE] :  ** BUILD SUCCEEDED **
      [ERROR] :  Project failed to build after 34s 441ms
      

      And running the project in Xcode produces the empty app file shown in the attached image.

      We also tested it out by creating a brand new project, this was the result:

      [DEBUG] Loading: /Users/tedalderson/Library/Application Support/iPhone Simulator/7.1/Applications/BD1EA86B-C5AE-43CB-A598-1BC88A9CAD15/TestSdkBuild.app/app.js, Resource: app_js
       
      [ERROR] Error loading path: file:///Users/tedalderson/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/BD1EA86B-C5AE-43CB-A598-1BC88A9CAD15/TestSdkBuild.app/app.js, Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260.)" UserInfo=0xd33cec0 {NSFilePath=/Users/tedalderson/Library/Application Support/iPhone Simulator/7.1/Applications/BD1EA86B-C5AE-43CB-A598-1BC88A9CAD15/TestSdkBuild.app/app.js, NSUnderlyingError=0xd33ce80 "The operation couldn’t be completed. No such file or directory"}
       
      [ERROR] Script Error Could not find the file app.js
       
      [DEBUG] Application booted in 1626.146972 ms
       
      -- End simulator log ---------------------------------------------------------
       
      [INFO]  Application has exited from iOS Simulator
       
      [INFO]  Project built successfully in 1m 26s 837ms
      

      Enabled Studio Debug/shell

      Debugging with Studio (enabling debug shell).
      http://docs.appcelerator.com/titanium/3.0/#!/guide/Debugging_Studio

      Tech-Supports-MacBook-Pro-4:tib2 tedalderson$ "/usr/local/bin/titanium" "--no-colors" "--no-progress-bars" "--no-prompt" "--no-banner" "info" "-o" "json" "-t" "ios" "--sdk" "3.2.2.GA"
      {
      	"os": {
      		"name": "Mac OS X",
      		"version": "10.9.2",
      		"architecture": "64bit",
      		"numcpus": 8,
      		"memory": 4294967296
      	},
      	"node": {
      		"version": "0.10.26"
      	},
      	"npm": {
      		"version": "1.4.3"
      	},
      	"ios": {
      		"provisioningProfiles": {
      			"development": [
      				{
      					"uuid": "1F00111F-59DD-4A4A-B420-EC8C3C868E4D",
      					"name": "GPS dev appA",
      					"appPrefix": "94ZZ3ZM4FD",
      					"creationDate": "2014-03-14T17:41:11.000Z",
      					"expirationDate": "2015-03-14T17:41:11.000Z",
      					"expired": false,
      					"appId": "com.ga.natixis.ipad.apps-np2dev",
      					"getTaskAllow": true,
      					"apsEnvironment": "development"
      				},
      				{
      					"uuid": "DA5E3A19-B02B-488A-833C-F8D74BA1C03C",
      					"name": "TATestAppProfile",
      					"appPrefix": "94ZZ3ZM4FD",
      					"creationDate": "2014-03-14T17:42:47.000Z",
      					"expirationDate": "2015-03-14T17:42:47.000Z",
      					"expired": false,
      					"appId": "com.ta.testapp",
      					"getTaskAllow": true,
      					"apsEnvironment": ""
      				},
      				{
      					"uuid": "E0FF0CEB-A32F-4A1B-A694-73938A0FF734",
      					"name": "iOS Team Provisioning Profile: *",
      					"appPrefix": "GJDH2H488L",
      					"creationDate": "2014-03-14T17:41:56.000Z",
      					"expirationDate": "2015-03-14T17:41:56.000Z",
      					"expired": false,
      					"appId": "*",
      					"getTaskAllow": true,
      					"apsEnvironment": ""
      				},
      				{
      					"uuid": "ECFABED8-4749-4325-8FCC-0418B9DDF908",
      					"name": "TATestAppProfile",
      					"appPrefix": "94ZZ3ZM4FD",
      					"creationDate": "2013-11-25T15:33:15.000Z",
      					"expirationDate": "2014-11-25T15:33:15.000Z",
      					"expired": false,
      					"appId": "com.ta.testapp",
      					"getTaskAllow": true,
      					"apsEnvironment": ""
      				}
      			],
      			"adhoc": [],
      			"distribution": [
      				{
      					"uuid": "30943159-C8EB-4FA3-89B1-6CF9D4421E4D",
      					"name": "GPSProduction",
      					"appPrefix": "7CMP7A7DA8",
      					"creationDate": "2013-07-10T20:35:50.000Z",
      					"expirationDate": "2014-07-10T20:35:50.000Z",
      					"expired": false,
      					"appId": "com.ga.natixis.ipad.apps",
      					"getTaskAllow": "",
      					"apsEnvironment": "production"
      				},
      				{
      					"uuid": "CDF26C02-356A-42C5-91D0-8D922C0C5455",
      					"name": "GPSTest",
      					"appPrefix": "94ZZ3ZM4FD",
      					"creationDate": "2013-07-10T20:21:50.000Z",
      					"expirationDate": "2014-07-10T20:21:50.000Z",
      					"expired": false,
      					"appId": "com.ga.natixis.ipad.apps-np2dev",
      					"getTaskAllow": "",
      					"apsEnvironment": "production"
      				},
      				{
      					"uuid": "D95F617D-1180-4723-9B97-CC56D2BAB33B",
      					"name": "GPS Production A",
      					"appPrefix": "7CMP7A7DA8",
      					"creationDate": "2013-11-25T15:32:05.000Z",
      					"expirationDate": "2014-11-25T15:32:05.000Z",
      					"expired": false,
      					"appId": "com.ga.natixis.ipad.apps",
      					"getTaskAllow": "",
      					"apsEnvironment": "production"
      				},
      				{
      					"uuid": "E3C5EAEC-CF2E-4D0A-A59B-935E60073421",
      					"name": "GPS Test A",
      					"appPrefix": "94ZZ3ZM4FD",
      					"creationDate": "2013-11-25T15:30:20.000Z",
      					"expirationDate": "2014-11-25T15:30:20.000Z",
      					"expired": false,
      					"appId": "com.ga.natixis.ipad.apps-np2dev",
      					"getTaskAllow": "",
      					"apsEnvironment": "production"
      				}
      			]
      		},
      		"xcode": {
      			"5.1:5B130a": {
      				"path": "/Applications/Xcode.app/Contents/Developer",
      				"xcodeapp": "/Applications/Xcode.app",
      				"xcodebuild": "/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild",
      				"selected": true,
      				"version": "5.1",
      				"build": "5B130a",
      				"supported": true,
      				"sdks": [
      					"7.1"
      				],
      				"sims": [
      					"6.0",
      					"6.1",
      					"7.1"
      				]
      			},
      			"4.6:4H95e": {
      				"path": "/Applications/Xcode46-DP2.app/Contents/Developer",
      				"xcodeapp": "/Applications/Xcode46-DP2.app",
      				"xcodebuild": "/Applications/Xcode46-DP2.app/Contents/Developer/usr/bin/xcodebuild",
      				"selected": false,
      				"version": "4.6",
      				"build": "4H95e",
      				"supported": false,
      				"sdks": [
      					"6.1"
      				],
      				"sims": [
      					"6.1"
      				]
      			},
      			"4.6:4H112f": {
      				"path": "/Applications/Xcode46-DP4.app/Contents/Developer",
      				"xcodeapp": "/Applications/Xcode46-DP4.app",
      				"xcodebuild": "/Applications/Xcode46-DP4.app/Contents/Developer/usr/bin/xcodebuild",
      				"selected": false,
      				"version": "4.6",
      				"build": "4H112f",
      				"supported": false,
      				"sdks": [
      					"6.1"
      				],
      				"sims": [
      					"6.1"
      				]
      			},
      			"5.0:5A11386k": {
      				"path": "/Applications/Xcode5-DP6.app/Contents/Developer",
      				"xcodeapp": "/Applications/Xcode5-DP6.app",
      				"xcodebuild": "/Applications/Xcode5-DP6.app/Contents/Developer/usr/bin/xcodebuild",
      				"selected": false,
      				"version": "5.0",
      				"build": "5A11386k",
      				"supported": true,
      				"sdks": [
      					"7.0"
      				],
      				"sims": [
      					"6.0",
      					"6.1",
      					"7.0"
      				]
      			}
      		},
      		"certs": {
      			"keychains": {
      				"/Users/tedalderson/Library/Keychains/login.keychain": {
      					"distribution": [
      						{
      							"name": "Ixis Asset Management Advisors",
      							"before": "2013-03-21T18:04:00.000Z",
      							"after": "2016-03-20T18:04:00.000Z",
      							"expired": false,
      							"invalid": false
      						}
      					],
      					"developer": [
      						{
      							"name": "Alex Zelenchuk (7FQ7WZ286W)",
      							"before": "2012-04-25T18:21:50.000Z",
      							"after": "2013-04-25T18:21:50.000Z",
      							"expired": true,
      							"invalid": true
      						},
      						{
      							"name": "Manav Sehgal (42KUZ5DY92)",
      							"before": "2012-05-04T18:57:40.000Z",
      							"after": "2013-05-04T18:57:40.000Z",
      							"expired": true,
      							"invalid": true
      						},
      						{
      							"name": "Manav Sehgal (42KUZ5DY92)",
      							"before": "2012-05-25T12:46:30.000Z",
      							"after": "2013-05-25T12:46:30.000Z",
      							"expired": true,
      							"invalid": true
      						},
      						{
      							"name": "Aditya Datar (JSB22446WS)",
      							"before": "2012-09-17T17:14:30.000Z",
      							"after": "2013-09-17T17:14:30.000Z",
      							"expired": true,
      							"invalid": true
      						},
      						{
      							"name": "Ping Zhang (BKDL28M9U4)",
      							"before": "2013-03-11T18:57:30.000Z",
      							"after": "2014-03-11T18:57:30.000Z",
      							"expired": true,
      							"invalid": true
      						},
      						{
      							"name": "Edward Alderson (GBYKS523CF)",
      							"before": "2013-04-29T14:23:10.000Z",
      							"after": "2014-04-29T14:23:10.000Z",
      							"expired": false,
      							"invalid": false
      						},
      						{
      							"name": "Manav Sehgal (42KUZ5DY92)",
      							"before": "2013-06-20T15:36:20.000Z",
      							"after": "2014-06-20T15:36:20.000Z",
      							"expired": false,
      							"invalid": false
      						}
      					]
      				},
      				"/Users/tedalderson/Library/Keychains/Microsoft_Intermediate_Certificates": {},
      				"/Library/Keychains/System.keychain": {}
      			},
      			"wwdr": true
      		},
      		"xcodeSelect": "/usr/bin/xcode-select",
      		"security": "/usr/bin/security",
      		"detectVersion": "2.0",
      		"issues": [
      			{
      				"id": "IOS_NO_VALID_ADHOC_PROVISIONING_PROFILES",
      				"type": "warning",
      				"message": "Unable to find any valid iOS adhoc provisioning profiles.\nThis will prevent you from packaging apps for adhoc distribution.\nYou will need to login into __http://appcelerator.com/ios-dist-certs__ with your Apple Download account, then create, download, and install a profile."
      			},
      			{
      				"id": "IOS_XCODE_TOO_OLD",
      				"type": "warning",
      				"message": "Xcode __4.6__ is too old and is no longer supported by Titanium SDK 3.2.2.\nThe minimumm supported Xcode version by Titanium SDK 3.2.2 is Xcode 5.0."
      			},
      			{
      				"id": "IOS_XCODE_TOO_OLD",
      				"type": "warning",
      				"message": "Xcode __4.6__ is too old and is no longer supported by Titanium SDK 3.2.2.\nThe minimumm supported Xcode version by Titanium SDK 3.2.2 is Xcode 5.0."
      			}
      		],
      		"tisdk": "3.2.2.GA",
      		"devices": [
      			{
      				"udid": "itunes",
      				"name": "iTunes Sync",
      				"id": "itunes"
      			}
      		],
      		"simulators": [
      			{
      				"id": "iPhone",
      				"name": "iPhone",
      				"type": "iphone",
      				"64bit": false,
      				"retina": false,
      				"tall": false,
      				"versions": [
      					"6.0",
      					"6.1"
      				]
      			},
      			{
      				"id": "iPhone Retina (3.5 inch)",
      				"name": "iPhone Retina (3.5 inch)",
      				"type": "iphone",
      				"64bit": false,
      				"retina": true,
      				"tall": false,
      				"versions": [
      					"6.0",
      					"6.1",
      					"7.0",
      					"7.1"
      				]
      			},
      			{
      				"id": "iPhone Retina (4 inch)",
      				"name": "iPhone Retina (4 inch)",
      				"type": "iphone",
      				"64bit": false,
      				"retina": true,
      				"tall": true,
      				"versions": [
      					"6.0",
      					"6.1",
      					"7.0",
      					"7.1"
      				]
      			},
      			{
      				"id": "iPhone Retina (4 inch 64-bit)",
      				"name": "iPhone Retina (4 inch 64-bit)",
      				"type": "iphone",
      				"64bit": true,
      				"retina": true,
      				"tall": true,
      				"versions": [
      					"7.0",
      					"7.1"
      				]
      			},
      			{
      				"id": "iPad",
      				"name": "iPad",
      				"type": "ipad",
      				"64bit": false,
      				"retina": false,
      				"tall": false,
      				"versions": [
      					"6.0",
      					"6.1",
      					"7.0",
      					"7.1"
      				]
      			},
      			{
      				"id": "iPad Retina",
      				"name": "iPad Retina",
      				"type": "ipad",
      				"64bit": false,
      				"retina": true,
      				"tall": false,
      				"versions": [
      					"6.0",
      					"6.1",
      					"7.0",
      					"7.1"
      				]
      			},
      			{
      				"id": "iPad Retina (64-bit)",
      				"name": "iPad Retina (64-bit)",
      				"type": "ipad",
      				"64bit": true,
      				"retina": true,
      				"tall": false,
      				"versions": [
      					"7.0",
      					"7.1"
      				]
      			}
      		]
      	}
      }
      

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              egomez Eduardo Gomez (Inactive)
            • Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code