Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

iOS 4.2 SDK

If you haven't installed iOS 4.2 SDK, don't. It doesn't play nice with Titanium at this time. There are tickets filed and it will be addressed but avoid it if you can.

However if you have installed 4.2, I have an experimental build that works in the simulator and on the device. It is a blend of some bug fixes/enhancements that I am implementing and a library that was updated by Appcelerator. If anyone needs it, please let me know and I'll find a place to upload and post a link here.

— asked November 2nd 2010 by John McKnight
  • crash
  • ios4.2
  • iphone
  • sdk
  • simulator
0 Comments

10 Answers

  • Accepted Answer

    1.4.2 Titanium mobile just released. Solves the 4.2 compatibility problem. 1.5 still in progress, so this is interim to get this issue resolved.

    — answered November 11th 2010 by Scott Schwarzhoff
    permalink
    0 Comments
  • GET IT HERE

    Remember this is beta code on top of beta code. It should be reasonably stable but I can't guarantee anything. Also… Do not use this if you aren't using iOS SDK 4.2 because it probably won't help much.

    If you tried this version, let me know in this thread. If you had issues or think you spotted a bug, let me know here as well.

    — answered November 2nd 2010 by John McKnight
    permalink
    5 Comments
    • how'd you get a library that was updated by appcelerator?

      — commented November 3rd 2010 by danno watts
    • Found it on lighthouse and looked at the changes on github.

      — commented November 3rd 2010 by John McKnight
    • ah, didn't know if you were a pro subscriber and were bringing us info that hadn't been made public by the appcelerator team.

      — commented November 3rd 2010 by danno watts
    • Nope. Just working on a fork and fixing some bugs that are stopping me my development.

      — commented November 3rd 2010 by John McKnight
    • This at least fixes HelloWorld and KitchenSink for me with iOS4.2 simulator. Do you have the ticket number so I can track this issue? Thanks!

      — commented November 8th 2010 by Tim Threlkeld
  • This one is a little more stable. It does have a couple crashes that I am resolving but this one seems to be working better than the last. Please give it a try and disregard the other version.

    GET IT HERE

    I have updated this one to resolve an issue with XHR and binary files. Should be more stable.

    — answered November 10th 2010 by John McKnight
    permalink
    4 Comments
    • I get this when I try to run a full build from Ti.

      ERROR] Error: Traceback (most recent call last):
      File "/Library/Application Support/Titanium/mobilesdk/osx/1.5.0/iphone/builder.py", line 683, in main
      shutil.copy(os.path.join(template_dir,'libtiverify.a'),os.path.join(iphone_dir,'lib','libtiverify.a'))
      File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/shutil.py", line 88, in copy
      copyfile(src, dst)
      File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/shutil.py", line 52, in copyfile
      fsrc = open(src, 'rb')
      IOError: [Errno 2] No such file or directory: '/Library/Application Support/Titanium/mobilesdk/osx/1.5.0/iphone/libtiverify.a'
      

      — commented November 10th 2010 by Critter
    • I copied 'libtiverify.a' from your previous version into this one… and it's building the project now…

      — commented November 10th 2010 by Critter
    • Thanks, I will update my file.

      — commented November 10th 2010 by John McKnight
    • I can't duplicate that problem. I checked my zip and it is present, I have emptied my Titanium folder and put the contents in and it compiles without that error. I am seeing an error in XHR of binary data. It is not unexpected since I have replaced the entire library and need to do some testing. Let me know what you see and it if is more stable.

      — commented November 10th 2010 by John McKnight
  • Hi,
    yes I could need it right now! :-)

    Cause I need to post an update to the appstore…

    Regards
    Marc

    — answered November 2nd 2010 by Marc Bender
    permalink
    0 Comments
  • subscribing.

    — answered November 3rd 2010 by Critter
    permalink
    0 Comments
  • Thanks John.

    /your/ build works. Odd thing for me.. My app works in the simulator.. but when I run it (from TI) on my device.. it crashes immediately.

    If I debug it from XCode.. the damn thing works..

    scratches head

    — answered November 3rd 2010 by Critter
    permalink
    6 Comments
    • Double check the Base SDK and the iOS Deployment Target settings in the XCode project. How soon after launch does it crash? Are you doing anything in particular at launch that I can use to track the error? Calling to remote servers? Audio?

      — commented November 3rd 2010 by John McKnight
    • I'll check the base and targets in just a few.. as far as any calls.. no.. the app is all local w/ db..

      — commented November 3rd 2010 by Critter
    • Your app works in the simulator but not on the device? That is odd. I've had decent luck with my patches. If it continues to crash on the device, can you try to comment out code and see at what point it stops crashing? It may help me figure out where the problem lies.

      — commented November 3rd 2010 by John McKnight
    • Aye.. it's the weirdest thing. Debugs fine on the device via xcode, but launched on it's own.. it immediately crashes after the splash screen shows.. or during.. I'll start commenting things out.. see where I get.. thanks

      — commented November 4th 2010 by Critter
    • Can you get the crash log out of XCode Organizer? Maybe it will give me a clue about what is happening.

      — commented November 4th 2010 by John McKnight
    • Hey John.. just saw this comment..

      crash log.
      http://pastebin.com/H3FymiQ4

      — commented November 6th 2010 by Critter
  • I'm prepping another build today that fixes a couple bugs. If I can get some feedback on the last version I can try to address it before the next one is done.

    — answered November 5th 2010 by John McKnight
    permalink
    1 Comment
    • I haven't had a chance to dive further into the issues I was having…

      — commented November 5th 2010 by Critter
  • hey John.. just curious if you had an update to /your/ 1.5 branch..?

    I did dig out the crash report from mine:
    http://pastebin.com/H3FymiQ4

    Cheers,

    Crit

    — answered November 7th 2010 by Critter
    permalink
    6 Comments
    • What's the least amount of code in app.js to get a crash? I see that thread 4 with Kroll and Ti.evaluate seems to be the hot spot but I don't have any crashes like that happening.

      I should be pushing a new version shortly.

      — commented November 7th 2010 by John McKnight
    • I'll strip it away tomorrow when I get to work.. I'll keep you posted.

      — commented November 8th 2010 by Critter
    • I am tracking down a crash right now that may be what you are seeing but if you come up with a basic version that crashes it may help.

      — commented November 8th 2010 by John McKnight
    • I have an idea what is wrong, have to get a clean compile of some libraries and get some testing done.

      — commented November 8th 2010 by John McKnight
    • yeah.. I've stripped just about /everything/ out of my app.js. just a tab group.. it debugs on the device.. but crashes just after launch w/o debug..

      — commented November 9th 2010 by Critter
    • Yeah.. I've tried just about everything.. commenting out the db calling different files.. it all works the same. launches in debug mode. then crashes almost as soon as the splash screen shows…

      crash log: http://b-cr.it/cYvJKW

      — commented November 9th 2010 by Critter
  • Hi,

    Thanks for your build, I see it works for other guys, but when I trying to compile the project using your build I am getting this error in Titanium:

    [INFO] One moment, building ...
    [INFO] Titanium SDK version: stable-1.5.0
    [INFO] iPhone Device family: ipad
    [INFO] iPhone SDK version: 4.2
    [ERROR] Error: Traceback (most recent call last):
    File "/Users/%USER%/Library/Application Support/Titanium/mobilesdk/osx/stable-1.5.0/iphone/builder.py", line 866, in main
    execute_xcode("iphonesimulator%s" % iphone_version,["GCC_PREPROCESSOR_DEFINITIONS=__LOG__ID__=%s DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=1 TI_VERSION=%s" % (log_id,sdk_version)],False)
    File "/Users/%USER%/Library/Application Support/Titanium/mobilesdk/osx/stable-1.5.0/iphone/builder.py", line 789, in execute_xcode
    output = run.run(args,False,False,o)
    File "/Users/%USER%/Library/Application Support/Titanium/mobilesdk/osx/stable-1.5.0/iphone/run.py", line 31, in run
    sys.exit(rc)
    SystemExit: 1
    

    For the other hand, when I am trying to compile the same project from XCode (using Simulator/Debug/iPad config) I am getting some other error:

      "_OBJC_CLASS_$_SBJSON", referenced from:
          objc-class-ref-to-SBJSON in libtiverify.a(TiVerify.o)
    ld: symbol(s) not found
    

    Any ideas of what this could mean and how it could be fixed?

    — answered November 8th 2010 by Aquila HgS
    permalink
    4 Comments
    • You have to delete the contents of your build/iphone folder and then build your application again because it is picking up some of the old files.

      — commented November 8th 2010 by John McKnight
    • Thanks, but that didn't help: I am still getting the same error..

      — commented November 8th 2010 by Aquila HgS
    • After you emptied the build folder and tried again did you get a message saying that it was doing a full build? Is there any chance you had XCode open and it saved the project file when you did the delete?

      — commented November 8th 2010 by John McKnight
    • I got this error as well when I had the word 'Titanium' in my project name. Weird error, I know.

      — commented November 8th 2010 by Tim Threlkeld
  • This deserves a bump..

    John… it works now.. in debug and on device.

    tips hat

    — answered November 10th 2010 by Critter
    permalink
    2 Comments
    • Some thanks goes to Appcelerator too. They updated a library last night that made my life easier :)

      — commented November 10th 2010 by John McKnight
    • How is it working for you?

      — commented November 10th 2010 by John McKnight
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.