[Resolved] PLEASE HELP: Cannot build on XCode 4.2 or 4.3

Hi I’ve got a much more basic issue. When I click build -> iOS the simulator freezes. I don’t get a “Build for iPhone” dialog. My CPU start going crazy and I need to restart. I’m on MacOS 10.7 with Corona build 2012-799.

I needed to deauthorize/reauthorize machines this morning (having returned to Corona after a while). Could this have anything to do with it? I’ve tried 704a, 797 and 799 with sample apps. Always the same result.

Any help is much appreciated. [import]uid: 10209 topic_id: 25673 reply_id: 104088[/import]

@snoronha-

The simulator stops when you start the build process… but you should get the Build for iPhone dialogue. So, at least the simulator is working fine, yes? Are you launching this from the Corona Termainal? What version of XCode do you have installed? 4.2.x? 4.3.2? Did you just upgrade recently?

Also, go into Xcode, organizer window, and refresh your developer provisioning profiles just to make sure they are up-to-date.

-DuneUnit [import]uid: 10818 topic_id: 25673 reply_id: 104090[/import]

@duneunit yes the simulator works fine. I am launching from the Corona Terminal. I’m using XCode 4.3.2. I upgraded recently.

I’ll make sure my Profile + certs are up to date.
I’m also looking into the Macports angle mentioned earlier.

Will report back with the current progress (or lack of it).

Cheers
[import]uid: 10209 topic_id: 25673 reply_id: 104092[/import]

@snoronha-

Well, if you’ve upgraded from XCode 4.2.x, then you probably know that you have to run the xcode-switch command. (Forgive me if I’m repeating what you already tried. I know it’s a pain, but I can’t assume anything cuz it could prevent finding the problem, right?)

"sude xcode-select -switch " followed by… Try these combos:
“/Applications/Xcode.app”,
“/Applications/Xcode.app/Developer,” and “/Applications/Xcode.app/Contents/Developer”

Check to see if it actually performs the switch using: “sudo xcode-select -print-path”

I don’t know why, but sometime it wouldn’t take the change.

If you have been or are running MacPorts… that could very well be the problem. If you have it installed, do a Google search for the correct way to uninstall it. Also, did you install the command line tools for XCode 4.3? Don’t. Wait and get your basic set up running. I didn’t (after fresh re-install of entire system) and I’m fine without it. I am suspicious of that install as well.

Good luck, and let me know what you run into!

[import]uid: 10818 topic_id: 25673 reply_id: 104112[/import]

@duneunit bottom line: works after MacOS Lion reinstall. Builds without issue.

Gory details: couldn’t get Macports to uninstall cleanly. Much sudo rm -rf later still saw the same problem. I don’t have different XCode versions. I blew away the previous one when I upgraded.

Conclusion: avoid Macports at ALL costs!

Thanks for all the help. Hopefully I can return the favor.
[import]uid: 10209 topic_id: 25673 reply_id: 104116[/import]

Wow! Glad to know that worked!

Seriously-- I was banging my head against this for the last 3+ days. Just knowing that I might have helped someone else to solve the same problem makes me happy!.. you just returned the favor!

:wink:

TO EVERYONE WHO USES CORONA: Do NOT install MacPorts! (Or do so at your own risk… ya know… if you’re a thrill seeker.) [import]uid: 10818 topic_id: 25673 reply_id: 104120[/import]

Hello,

I killed my MacPorts by removing everything in /opt/local after uninstalling

YMMV
Cheers

evs [import]uid: 8366 topic_id: 25673 reply_id: 104136[/import]

@evs I did the /opt/local thing. Mileage did vary. Probably because I fubar-ed Macports at some point earlier. Installed because I wanted git - then found git already installed and integrated with XCode. Duhhh …
@duneunit yeah all but extreme thrill-seekers should stay away from Macports.
[import]uid: 10209 topic_id: 25673 reply_id: 104142[/import]

@duneunit - so happy to wake up to see this is resolved! I felt your pain, Xcode stuff can drive a person mad. (I’ve always avoided MacPorts thankfully.)

Will mark this as resolved - and stay tuned, the docs will be updated before too long :wink: [import]uid: 52491 topic_id: 25673 reply_id: 104150[/import]

@evs: yeah… I tried that as well. Dumped /opt/local but to no avail.

@snoronha: Interesting… I installed Macports in order to do something clever with Subversion and automating my Mac builds process… so I guess that makes us both “thrill seekers.” :wink:

@peach: Thanks, you Corona-Maven, you! Yaaay, new docs! [import]uid: 10818 topic_id: 25673 reply_id: 104246[/import]