Trouble compiling app to iPhone

TobyToby Member Posts: 478
Trying to deploy to the iPhone keep getting 6 Build errors like the following.

"___switchu8", referenced from:

"___switch16", referenced from:

"___switch32", referenced from:

"___restore_vfp_d8_d15_regs", referenced from:

Getting frustrated with this stuff.... what does this error mean?

T

Comments

  • TobyToby Member Posts: 478
    Wouldn't you know it, it's working now. Sometimes you just have to switch off everything and start from scratch.

    Nothing changed, just a glitch that was somehow fixed by doing a complete mac restart, iPhone restart.
  • KeyvisualsKeyvisuals Member Posts: 13
    Weird, I'm getting the exact same 6 build errors.
  • KeyvisualsKeyvisuals Member Posts: 13
    Unfortunately the reboot trick didn't work for me ;-( restarted phone & iMac. Also tried deleting the build directory and doing a clean all. This is not a good start.
  • KeyvisualsKeyvisuals Member Posts: 13
    Here is a link to my full build report if anyone from GS would like to take a look (please)

    http://keyvisuals.com/tmp/gamesalad_build_errors.txt
  • giacomopoppigiacomopoppi Member, PRO Posts: 914
    im having the same problem here
  • GS_Test01GS_Test01 Member Posts: 26
    I am getting the same problem, too.
  • rbarbour02rbarbour02 Member Posts: 4
    I am getting 7 build errors very similar to test... AW MAN!
  • eric_summerseric_summers Member Posts: 26
    Change it from debug to release then it will compile fine.
  • GS_Test01GS_Test01 Member Posts: 26
    That was it! Awesome! It really works.
  • KeyvisualsKeyvisuals Member Posts: 13
    I haven't had a chance to test your solution MattDavid but I don't understand why that should work. When you compile & run code on your device it's supposed to be in debug mode. The Release profile is what you use for Diatribution builds. I'd really like an official explaination of this. Do I need to file a bug report?
  • KeyvisualsKeyvisuals Member Posts: 13
    OK, I can verify that switching to the release profile did allow the project to compile successfully. I guess Ill have to compare the debug profile with the release profile to figure out what differences are but im happy that it works ;-)

    (btw, in my previous message Diatribution = Distribution)
  • scorelessmusicscorelessmusic Member Posts: 565
    As an Xcode developer first, this also caught me. We are used to using debug first to test on simulator and device and only touch 'release' when we have a final product to ship. Guess I'll have to change some habits. :)
Sign In or Register to comment.