These are contents from different blogs,sites and forums combined together for a successful installation of iPhone SDK on PowerPC G4 which I've used to install iPhone SDK.
I managed to install the SDK completely (in the right place) without using Pacifist, fully working on a Mac Mini PowerPC G4 32 Bit. My root partition is still spammed with 5 gb of redundant crap for following this "Tip", but thats why i decided to let others know there's another better way of getting it to work:
Pre Installation Steps( Create Installation Package for PowerPC G4)
1. Make the iPhone SDK.dmg read/write-able with Disk Utility using convert -> to read/write.
2. Mount the R/W dmg.
3. You need to delete some unneccessary file so that you can modify the installer config file, because the image is completely full. I choose the PDF in the root of the dmg.
4. Modify iPhone SDK/iPhone SDK.mpkg/Contents/iPhoneSDK.dist :(Right Click on "iPhone SDK.mpkg" from the Mounted disk ans Selelct "Show Package Contents"
Once we Select this menu, We will get a list of files . From this list ,Select iPhoneSDK.dist and edit with any text editor and you have to edit three functions from this file as follows..
- Goto Line number 70 and
function agreedToSLA()
{
var res = system.run("tempfileexists", "insttmp_37253734");
if( res == 0 ){ return true; }
my.choice.tooltip = system.localizedStringWithFormat('TT_NOIPHONESDK');
return true; // By default it is false
}
function SDKPresent()
{
var res = system.run("tempfileexists", "insttmp_37253735");
if( res == 0 ){ return true; }
system.log("To install the iPhone SDK you need to agree to the iPhone SDK License agreement through the GUI interface.");
return true; // By default it is false
}
function isIntel()
{
var res = (system.sysctl('hw.byteorder') == '4321');
// by default is 1234 change this to 4321
if( !res ){ my.choice.tooltip = system.localizedStringWithFormat('TT_NOINTEL'); }
return res;
}
/// End of File
Note :
- Line 71 ( in function agreedToSLA() ) - modify "return false;" to "return true;"
- Line 81 ( in function SDKPresent() ) - modify "return false;" to "return true;"
-Line 103 (in function isIntel() change var res = (system.sysctl('hw.byteorder') == '1234'); to var res = (system.sysctl('hw.byteorder') == '4321');
Save this File, Now we are ready for installation
Once we completed this step, we can directly install IPhone SDK into Power PC . From the Installation Screen do not select Mac OS X 10.3.9 Support and Web Objects (Web Objects is Optional if you want you can select)
Post Installation Steps
1. Once we completed the installation we have to replace a configuration file, which is used to identify the Architecture ( Make sure backup of original) as follows
Once you've moved the iPhone platform directories to their appropriate location under /Developer/Platforms, drill into: /Developer/Platforms/iPhoneSimulator.platform/Developer/
Library/Xcode/Specifications/
In this directory, you will find a file called "iPhone Simulator Architectures.xcspec" Make a backup of it and open the original in your favorite editor
Replace the file contents of "iPhone Simulator Architectures.xcspec" with the following line
(
// 32-Bit
{ Type = Architecture;
Identifier = Standard;
Name = "Standard (iPhone Simulator: i386)";
Description = "32-bit iPhone Simulator architectures";
ListInEnum = YES;
SortNumber = 1;
RealArchitectures = ( i386, ppc7400 );
ArchitectureSetting = "ARCHS_STANDARD_32_BIT";
},
// Old-style Debug
{ Type = Architecture;
Identifier = Native;
Name = "Native Architecture of Build Machine";
Description = "32-bit for build machine";
ListInEnum = YES;
SortNumber = 101;
ArchitectureSetting = "NATIVE_ARCH";
},
// G3
{ Type = Architecture;
Identifier = ppc;
Name = "Minimal (32-bit PowerPC only)";
Description = "32-bit PowerPC ";
PerArchBuildSettingName = "PowerPC";
ByteOrder = big;
ListInEnum = No;
SortNumber = 201;
},
// G4
{ Type = Architecture;
Identifier = ppc7400;
Name = "PowerPC G4";
Description = "32-bit PowerPC for G4 processor";
ByteOrder = big;
ListInEnum = NO;
SortNumber = 202;
},
// G5 32-bit
{ Type = Architecture;
Identifier = ppc970;
Name = "PowerPC G5 32-bit";
Description = "32-bit PowerPC for G5 processor";
ByteOrder = big;
ListInEnum = NO;
SortNumber = 203;
},
// Intel
{ Type = Architecture;
Identifier = i386;
Name = "Intel";
Description = "32-bit Intel";
PerArchBuildSettingName = "Intel";
ByteOrder = little;
ListInEnum = NO;
SortNumber = 105;
}
)
Location of Configuration File iPhone Simulator Architectures.xcspec
Xcode Location after iPhone SDK installation
18 comments:
Hi from Spain! Thank you for the tip, I'll try it tomorrow (downloading...) and I'll let you know if it works for me.
Regards.
This worked like a charm (after Pacifist didn't). Many thanks!
This is the one and truly complete guide to installing the iPhoneSDK on your Mac with a PowerPC architecture. You have truly done a remarkable job of listing out the process step by step and in complete detail.
Thank you for saving me time and money (because I didn't have to buy an intel based machine after all).
You, my sir, are one genius person !! Thank a bunch !!!
It seems to work, I have a power pc based mac mini, I did not have even a single problem installing iphone sdk by following this guide.
Installation completed successfully but i don't have time to test the sdk itself, yet..
Thanks for this great tutorial.
Thank you so much! I was just about to give up, and thought I just couldn't try out the iPhone SDK until I got a new computer, which won't be for a while, but your guide lists how to install it on a PowerPC step by step, and it's really simple and easy to understand. I'm going to try it as soon as I've finished downloading. Thanks again!
Hi,
This post has been published at http://www.iphonekicks.com
http://www.iphonekicks.com is a new community based news site purely related to iPhone SDK development.
It would be cool if you could consider adding our KICK IT widget on this blog post so it becomes easier for your readers to submit and promote your posts on iPhoneKicks.com
Thanks,
Raj
I used Disk Utility to convert the dmg to Read/Write, mounted it, and selected the PDF in the root. I tried to delete with command+delete and dragging and dropping into the trash. It won't delete the PDF! I am stuck! I am running a Powerbook G4 I just upgraded to OS 10.5.6. What could I be doing wrong? When I drag the PDF over the trash and let go it warns me that it will deleted right away. I say yet but it gives me this error: Sorry the operation could not be completed because an unexpected error has occurred. Error code -61. Please help!
I figured it out! Disk Util made a copy of the dmg file. I was trying to delete PDF from the wrong one. It worked in the new copy. Now I'm going to give the Hello World project a try!
It works great! I was able to compile and test the QuartzDemo project from Apple and run it on the simulator on my Powerbook G4 867MHz, 640MB RAM!
Now I just need to figure out how to get the app to my iPhone.
I am stuck after Step 3 (I was able to delete that PDF file from the r/w dmg created by disk utility). There is no right click on my PowerPC G4 so that I cannot see iphoneSDK.dist file. Please help!
Excellent post! Thanks it worked w/o any issues
When i delete the pdf in the root it doesn't create any extra space on the drive.
Whats going on here?
hi, please help me as soon as possible i am using powerbook g4 , and i am getting error in interface builder, it is not showing my nib files, it is giving an error of different arcitecture, let me know why am i getting this error
hi , is there anyone who can help me ....! , i have powerbook g4 , and i downloaded iphone sdk 3.0 from apple web site and i installed it also i changed "start_selected="true"" and i replaced the code after installation as mentioned above , but when i compile my project i got the error of ibtool with code1 , also if i try to open .xib file then interface builder shows error that it can't open these types of files.
I am grateful to you for this great content.aöf thanks radyo dinle cool hikaye very nice sskonlycinsellik very nice ehliyet turhoq home free kadın last go korku jomax med olsaoy hikaye lesto go mp3 indir free only film izle love aşk
Xcode works to me well, but the interface to builder does not open .xib and iphone simulator does not work….some solution?
Xcode works to me well, but the interface to builder does not open .xib and iphone simulator does not work….some solution?
Post a Comment