Tuesday, June 23, 2009

Xcode 3.1.3

With the new OS installed on the iPhone, Xcode complains it needs an update. So it updated to 3.1.3.
Again, I applied the modifications to skip provisioning profile.
In terminal, type open /Developer/Platforms/iPhoneOS.platform/Info.plist (opens with Property List Editor)
Under defaultProperties add/edit rows:
PROVISIONING_PROFILE_ALLOWED = NO;
PROVISIONING_PROFILE_REQUIRED = NO;
This works however only with Xcode for iPhone OS 2.x.
But you can replace the iPhoneRemoteDevice executable with one one from the older Xcode.
After that, Xcode initially crashed and disconnected the cable and removed an invalid entry in the Organizer. I get some internal errors but it can be skipped by holding the return key.
I also had a problem with my project. product-pkg-utility reported that CFBundleIdentifier cannot have illegal characters (e.g. underscore).
Anyways, I can debug again.

Update: Copying the whole iPhoneRemoteDevice.xcodeplugin directory seems to work now too.
Update2: Still seems to crash, although after "Reset and relaunch" it does not crash. Weird...
Whoa... starting "/Developer/Applications/Xcode.app/Contents/MacOS/Xcode &" from Terminal seems to work in any case.

Other links: here, here here and here

9 comments:

Anonymous said...

Thank you !!

Anonymous said...

Your way doesn't work for me. Xcode crashes on start. I even uninstalled all Xcode & iPhone SDKs and started from scratch. But as soon as I replace the plugin (or the binary you described before) and fire up Xcode, it just crashes. I even made sure there were no devices listed in 3.1.3's organizer before I replaced the plugin.

Juan Basso said...

The some of Anonymous said... Crash on start.

Unknown said...
This comment has been removed by the author.
Unknown said...

Try starting /Developer/Applications/Xcode.app/Contents/MacOS/Xcode from Terminal.

Josso said...

Wether or not I start it from Terminal, I get the following error when I build the app:

Internal error occurred while creating dependency graph: *** +[XCiPhoneOSCodeSignContext certificateIdentityForCodeSignIdentity:errorMessage:]: unrecognized selector sent to class 0x11772aa60

Is there a way to solve it?

Cheers,
And thanks for trying :)

Anonymous said...

Nice find - I'm trying to use iAtkos v7 on a AMD PC to run, and unfortunately it causes a kernel panic both through terminal and from the icon.

Any chance you're can find a way to tell it to "Reset and relaunch" automatically? I've tried dredging for info on Google,etc. but can't find any way to trigger this automatically.

Either that or find a way to somehow link/merge the new bits in of the old and new file in a way that causes it not to crash?

I guess its probably signed or encrypted which would hamper those efforts, but you're a bit of a genius as far as the work I've seen of yours on other platforms - so I thought I'd suggest it in case you needed some encouragement.

Zekapeta said...

This receipt works with my XCODE 3.1.3 FLAWLESSLY like a charm!
DarkFader: THANK YOU VERY MUCH!!!

IsaacPevy said...

Sorry, im a bit new to this. Do i have to be jailbroken? i apologize if this is obvious, but im not too sure...