[TIMOB-7680] iOS: iTunes_sync.scpt - Error reported when iTunes sync script launched during build with iPod connected to iTunes
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-10-07T20:28:27.000+0000 |
Affected Version/s | Release 1.8.2 |
Fix Version/s | Release 3.2.0 |
Components | CLI, iOS, Tooling |
Labels | qe-ios021312 |
Reporter | Eric Merriman |
Assignee | Ingo Muschenetz |
Created | 2012-02-15T18:16:10.000+0000 |
Updated | 2013-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
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.
Ups forgot the link to the thread: http://developer.appcelerator.com/question/122993/error-while-moving-app-to-ios-device
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:
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:
[~maxmikheev], can you please supply the full log output with the log level set to "TRACE"?
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.