Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Forever Knight

macrumors newbie
Aug 18, 2008
12
0
Well, you obviously need to use the Terminal for this kind of stuff.

Yes indeed, and at last managed to compile withe the codesigning through that script! Of course, have to learn a lot of shell commands, including sudo, chmod and what not! Well it paid off in the end. Thanks.

As usual, every time I attempt to run the application (upload & run) that same old dialog keeps coming "Developer/Platforms/iPhoneOS.Platform/DiskImages missing!". So I manually created that folder and pupulated it with the my phone's dmg. Now Xcode trys to upload...

Well, with a message "Waiting for the device to be ready in 5 seconds..." but after 5 minutes it comes with an error 01 lol. at least 99% worked!

Thanks
 

Cromulent

macrumors 604
Oct 2, 2006
6,816
1,101
The Land of Hope and Glory
As usual, every time I attempt to run the application (upload & run) that same old dialog keeps coming "Developer/Platforms/iPhoneOS.Platform/DiskImages missing!". So I manually created that folder and pupulated it with the my phone's dmg. Now Xcode trys to upload...

They are already there for me and I've never downloaded the iPhone OS from Apples site or done any mucking around with ipfw files. Are you sure you installed the SDK correctly? Maybe it is just because you are running it on a PPC machine and it screwed it up.
 

Forever Knight

macrumors newbie
Aug 18, 2008
12
0
Well, you obviously need to use the Terminal for this kind of stuff.

Yes I did, and thanks for all the help at last it WORKED!!

Ok here is the key stuff:
(1) that DeveloperDiskImage.dmg file is a must indeed, since I installed the code in a G4 machine, the Xcode installer simply ignored that stuff!! I installed it manually.
(2) Those two lines "system("rm $appDir"."/CodeResources");
system("cp $appDir"."/_CodeSignature/CodeResources $appDir"."/CodeResources");" in the abovementioned script I re-posted is a must, although the author himself is not sure why he needs them!!
(3) Apple has to release a revised documentation else there will be lots of unhappy programmers 'bricking' their iPhones :)

Thanks again.

p.s. keep the OS X 10.5.x cd handy for a reinstall, for many shell commands are run with 501 grant using sudo!! lol
 

James Nachbar

macrumors newbie
Aug 26, 2008
2
0
Is this step even necessary?

I went through these steps, skipping the "download" step, first backing up my iPhone 3G to iTunes, then "restoring" to the most current version (which erased all the data on my 3G), then using iTunes to "restore" the data that had been on the 3G before the OS "Restore" (using the Backup I had just made).

No need to download any OS X, no problem following the rest of the steps to load my app onto my 3G, no problem getting my new app to run on the iPhone.

Having done that, I am not sure that this step was even necessary, as long as you have the most current version of the iPhone OS (2.0.2 at present, I believe) on your 3G.

Next time, I would try skipping this step altogether, just using iTunes to make sure my iPhone has the most current version of the OS.

The one thing I do know for certain is that Apple should update their documentation! There is simply no excuse for them to have instructions on their website to download a file from their website that does not exist on their website!


James Nachbar
http://www.plastic.org
 

trapper

macrumors newbie
Jun 3, 2008
6
0
Yes I did, and thanks for all the help at last it WORKED!!

Ok here is the key stuff:
(1) that DeveloperDiskImage.dmg file is a must indeed, since I installed the code in a G4 machine, the Xcode installer simply ignored that stuff!! I installed it manually.
(2) Those two lines "system("rm $appDir"."/CodeResources");
system("cp $appDir"."/_CodeSignature/CodeResources $appDir"."/CodeResources");" in the abovementioned script I re-posted is a must, although the author himself is not sure why he needs them!!
(3) Apple has to release a revised documentation else there will be lots of unhappy programmers 'bricking' their iPhones :)

Thanks again.

p.s. keep the OS X 10.5.x cd handy for a reinstall, for many shell commands are run with 501 grant using sudo!! lol
So you got it all working on PPC then? I'm fairly familiar with terminal and the various unix commands but aren't having much luck getting any of my code successfully signed. Also got the problem with the missing diskimages when plugging my phone in - have tried renaming and copying over each of dmg files from one of the ipsw's but this just changes the error to the one others were having above.

I can however compile my code unsigned and ssh it over to my phone and sign there with ldid, this is cool to try my apps out but no good for debugging - and apple obviously wont accept them into the store ;)

Any ideas where I should go from here?
 

Forever Knight

macrumors newbie
Aug 18, 2008
12
0
The DeveloeprDiskimage is a set of two files, it is packed under the name DeveloperDiskImage.pkg! Mount the iPhoneSDK on your desktop, examine the list of packages it has, it is there. Just install that package on the correct path and you are done!

I can however compile my code unsigned and ssh it over to my phone and sign there with ldid, this is cool to try my apps out

BTW, I am curious to try what you did; could you brief the steps clearly? Thanks.
 

trapper

macrumors newbie
Jun 3, 2008
6
0
Ahh so obvious!! 'DeveloperDiskImage.pkg' lol - I must have missed it when I originally installed due to the name not containing 'iphone' (like the rest of the packages skipped out when PPC is detected) So if it all works out when i try it tonight, then it will be only the codesign binary holding me back! :D

To copy over manually and test you need to do the following.

Jailbreak phone and install openssh + ldid using cydia. Then open terminal and…
scp -r ./MyApp.app root@192.168.1.2:/Applications (copy app to phone)
ssh root@192.168.1.2 (connect to phone)
chmod +x /Applications/MyApp.app/MyApp (make app executable)
ldid -S /Applications/MyApp.app/MyApp (create fake codesign for app)
killall SpringBoard (restarts springboard)

ps; root password is alpine
 

Visualizer

macrumors newbie
Sep 4, 2008
1
0
testing app not possible on my iPhone!!!

Hi shadowband,

..... XCode started fine, except threw me an error 0xE8000001 while attempting to upload the application I wrote to the phone!

Could you explain how you made it to work in your environment?

I got the same problem here. I have done all what was explained in the docs to get the certificate, and the provisioning profile and so on. (Expect restoring my new iPhone which has OS 2.02) And I registerred all needed in the "Code Singning" Part within Xcode Project Settings.. However by testing the "Hello World" Example on my iPhone by "Build&Go" it prompts the same Error "0xE8000001". This, and all other applications do not work on that iPhone!

And the fact is: I sendet several mails to ADC but never get any answer at all! WHAT A SUPPORT FOR PAYING DEVELOPERS....
:confused:
 

Forever Knight

macrumors newbie
Aug 18, 2008
12
0
Support sucks!

I WHAT A SUPPORT FOR PAYING DEVELOPERS....
:confused:

Tell me about it! useless support, they don't even reply to their own news group!!

I am sure it has something to do with the credentials because I exported my private key from the keychain (from the ‘all’ working mac) and imported it to another mac just as Apple suggested in their iPhone Dev manual, but get the error “0xE8000001” that you quoted!! exactly identical environment just the key was imported that’s all, but iPhone application install doesn’t work!!! Last resort, gonna reinstall OS X 10.5.x LOL.

Jailbreak phone and install...
Thanks trapper for Jailbreaking advice, LOL, I am not gonna do it!! I though you did it ‘without’ jailbreaking!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.