Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7680] iOS: iTunes_sync.scpt - Error reported when iTunes sync script launched during build with iPod connected to iTunes

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-10-07T20:28:27.000+0000
Affected Version/sRelease 1.8.2
Fix Version/sRelease 3.2.0
ComponentsCLI, iOS, Tooling
Labelsqe-ios021312
ReporterEric Merriman
AssigneeIngo Muschenetz
Created2012-02-15T18:16:10.000+0000
Updated2013-10-07T20:28:27.000+0000

Description

Description: While building some test projects, Studio reported the following: [INFO] Performing clean build [INFO] Installing application in iTunes ... one moment [DEBUG] executing command: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication /Users/eric/Documents/fromGit/titanium_mobile_tests_internal/FeatureTest/OrientationModes/all/build/iphone/build/Debug-iphoneos/all.app /Users/eric/Library/Application Support/Titanium/mobilesdk/osx/1.8.2.v20120214163156/iphone/itunes_sync.scpt: execution error: Can't make name of 3 into type Unicode text. (-1700) [INFO] iTunes sync initiated The build seemed to complete, and the application was placed in iTunes as expected. A quick check of the iTunes_sync.scpt shows a suspect line: log "The device " & name of n & " was unable to sync (" & errorStr & ":" & errorNumber & ")" When changing the line to include "name of source n", the error went away. (Kudos to Blain for the suggestion) Also, without the iPod hooked up, the error was not presented. Steps to reproduce: 1) Create a sample project using Studio 1.0.9 2) Attach an iPod for use in testing 3) Build the project for device using SDK 1.8.2 Result: Error reported in Studio Expected: No errors reported Note: This appears on the Q&A page as occurring as early as 1.7.1, so not marking as regression. Link: http://developer.appcelerator.com/question/122993/error-while-moving-app-to-ios-device

Comments

  1. Christian Bjørnbak 2012-06-16

    I got this too with SDK and Titanium Studio 2.0.2.GA on Mac OS X 10.7.4. This thread discusses the problem and considers the Mac OS X version and iTunes' state as possible reasons.. iTunes complained the SIM card in the iPhone was unsupported. Removing the SIM card solved the problem.
  2. Christian Bjørnbak 2012-06-16

    Ups forgot the link to the thread: http://developer.appcelerator.com/question/122993/error-while-moving-app-to-ios-device
  3. Dustin Hyde 2012-10-01

    Bug persists. Titanium Studio: 3.0.0.201209302313 Titanium SDK: 3.0.0.v20120929141713 OS: Mountain Lion 10.8.2 Xcode: 4.5 Device: iPod 4.3.3 Console Log:
       [INFO] Installing application in iTunes ... one moment
       [DEBUG] executing command: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication /Users/dhyde/Desktop/TISTUD-NIGHTLY/titanium_studio_workspace/MyProject/build/iphone/build/Debug-iphoneos/MyProject.app
       /Users/dhyde/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.v20120929141713/iphone/itunes_sync.scpt: [INFO] iTunes sync initiated
       execution error: Can’t make name of 3 into type Unicode text. (-1700)
       
  4. Maxim Mikheev 2013-06-07

    Bug persists. Titanium Studio: 3.1.1.201306041657 Titanium SDK: 3.1.0.GA OS: Mountain Lion 10.8.3 Xcode: 4.6.2 Device: iPad 3, iOS 6.1.3 Console Log:
       [INFO] :   Initiating iTunes sync
       [ERROR] :  Failed to initiate iTunes sync
       [ERROR] :  /Users/developer/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.GA/iphone/itunes_sync.scpt: execution error: Can’t make name of 4 into type Unicode text. (-1700)
       [ERROR] :  
       [ERROR] :  Project failed to build after 32s 536ms
       
  5. Chris Barber 2013-06-07

    [~maxmikheev], can you please supply the full log output with the log level set to "TRACE"?
  6. Eric Merriman 2013-10-07

    Closing as a duplicate of the linked ticket. The other ticket (TIMOB-12740) is technically a duplicate, but all work and the fix is against that ticket. So closing this one.

JSON Source