Go Back   iPod touch, iPhone, and iPad forum - Multi-Touch Fans > iPhone OS / iOS Ecosystem > iPhone OS Development

What are you waiting for? Join the hundreds of thousands of other iPod touch and iPhone users in our community. Talk about the latest apps and accessories, or post your question on the forums! All visitors must register before they can post and answer questions and participate in our lively community, so register for free today!
Reply
 
Thread Tools Search this Thread
  #1  
Old 10-10-2008
Multi-Touch Amateur
Join Date: Jan 2008
 
Default xcode iphone sdk and toolchain 2.0

Ok, so i just got an iphone recently, and i started to code for it yesterday, i already know c++ so switching to obj-c shouldn't be that hard. I got the free iphone SDK from apple and installed it on my virtual mac os x 10.5.5 . So i just finished my first HelloWorld app, and i was trying to compile it. I found out that i can only compile it for simulator. As i'm not really eager to give an extra 99$ to apple, i was wondering how can i compile the code i made in xcode with toolchain 2.0 (i got the one from cydia on my iphone), or should i get the toolchain bynaries for cygwin? I tryed just sshing in my iphone and copying my project on it, and running make and make install from mobile terminal in the folder where the code is, but it seams that i'm missing makefile. Could some1 tell me how can i make one?

Thanks in advance
Miso
------------------double post merged------------------
well here is just a quick update, i managed to bypass the certificate check in xcode by using a flase certificate. So i tried compiling my app and i managed to install it on iphone trough build and go in xcode but have been getting an error that the debugger can't start the app remotely because of security policy error. After some googling i have found that i have to force provisioning off and that i have to change some key in info.plist in my app so that i wouldn't get discarded by the springboard (which didn't wanted to accept the fake cert (the app installed coz i had a patched installer)). Now after fixing the info.plist, the app didn't want to install anymore, coz xcode didn't detect my iphone anymore :P. Any help is appreciated. If anything i did earlier is wrong, please warn me so i can fix it.

Thanks in advance
Miso
__________________

Last edited by mzmiric5; 10-10-2008 at 09:43 AM.. Reason: Automerged Doublepost
  #2  
Old 10-10-2008
bones237's Avatar
Multi-Touch Fan
Join Date: Feb 2008
 
iPhone 3G (White) 8GB
3.0
Forget about that whole 'fake certificate' thing. The first thing you tried (sshing your project into iphone) is fine you just needed to sign ur code. You also don't need the iphone toolchain 2.0 in Cydia. I personally would undo all that stuff you did with certificate and uninstall toolchain from Cydia (don't need it if ur gonna use xcode to program). Then do this:

Set up ur Xcode like this in upper left corner : "Device | Release".
Build your project in Xcode like normal (Not 'Build and Go', just 'Build').
After build is successful, go to your 'Products" folder on left side of xcode screen. highlight the '.app' product ('YourAppName.app'). Control-click and select 'Reveal in Finder'.
Take that resulting directory in Finder (should be in YourProjectDirectory -> build -> Device-iphoneos folder) and ssh that into /Applications folder on iphone.

Now go into cydia and install the 'Link Identity Editor' (if you type 'ldid' into search field, it's the only package that pops up).
After that's installed and your app is ssh'd into ur phone, open up Terminal on ur mac. Run these:
Code:
$ ssh root@ip address 
(ip address is address of ur iphone. Password is alpine).
$ ldid -S /Applications/YourApp.app/YourApp
$ killall SpringBoard
Your app should run

Hope it works

Last edited by bones237; 10-10-2008 at 11:23 AM..
  #3  
Old 10-10-2008
gojohnnyboi's Avatar
Multi-Touch Zealot
Join Date: Jan 2008
 
None 16GB
3.0
Quote:
Originally Posted by bones237 View Post
Forget about that whole 'fake certificate' thing. The first thing you tried (sshing your project into iphone) is fine you just needed to sign ur code. You also don't need the iphone toolchain 2.0 in Cydia. I personally would undo all that stuff you did with certificate and uninstall toolchain from Cydia (don't need it if ur gonna use xcode to program). Then do this:

Set up ur Xcode like this in upper left corner : "Device | Release".
Build your project in Xcode like normal (Not 'Build and Go', just 'Build').
After build is successful, go to your 'Products" folder on left side of xcode screen. highlight the '.app' product ('YourAppName.app'). Control-click and select 'Reveal in Finder'.
Take that resulting directory in Finder (should be in YourProjectDirectory -> build -> Device-iphoneos folder) and ssh that into /Applications folder on iphone.

Now go into cydia and install the 'Link Identity Editor' (if you type 'ldid' into search field, it's the only package that pops up).
After that's installed and your app is ssh'd into ur phone, open up Terminal on ur mac. Run these:
Code:
$ ssh root@ip address 
(ip address is address of ur iphone. Password is alpine).
$ ldid -S /Applications/YourApp.app/YourApp
$ killall SpringBoard
Your app should run

Hope it works
wrong. for your app to show on springboard in 2.1 firmware and up, you need to rebuild the springboard cache. use my tool quickload to do so.
Sponsored Links
  #4  
Old 10-10-2008
bones237's Avatar
Multi-Touch Fan
Join Date: Feb 2008
 
iPhone 3G (White) 8GB
3.0
Quote:
Originally Posted by gojohnnyboi View Post
wrong. for your app to show on springboard in 2.1 firmware and up, you need to rebuild the springboard cache. use my tool quickload to do so.
where did he say he was building for 2.1. If he installed toolchain from cydia, it's pretty safe to say he's on 2.0 still, like myself, in which case i'm not wrong
  #5  
Old 10-10-2008
gojohnnyboi's Avatar
Multi-Touch Zealot
Join Date: Jan 2008
 
None 16GB
3.0
Quote:
Originally Posted by bones237 View Post
where did he say he was building for 2.1. If he installed toolchain from cydia, it's pretty safe to say he's on 2.0 still, like myself, in which case i'm not wrong
if he is making apps for ipod or iphone 2._ softwares AT ALL, he should be building them to work with the newest firmwares, as most people are using that anyways(and all the smart ones). the cydia toolchain takes a crapload of modding to handle sdk headers(in most cases), and SO SLOW. it takes -1 hour to build the toolchain, take the time and do it right
  #6  
Old 10-10-2008
Multi-Touch Amateur
Join Date: Jan 2008
 
yeah, sorry i forgot to mention that i'm using 2.1, i'll try your tool gojohnnyboi

edit: without the fake certificate and the provisioning patch, xcode doesn't want to build at all.

Last edited by mzmiric5; 10-11-2008 at 01:53 AM..
  #7  
Old 10-11-2008
gojohnnyboi's Avatar
Multi-Touch Zealot
Join Date: Jan 2008
 
None 16GB
3.0
Quote:
Originally Posted by mzmiric5 View Post
yeah, sorry i forgot to mention that i'm using 2.1, i'll try your tool gojohnnyboi

edit: without the fake certificate and the provisioning patch, xcode doesn't want to build at all.
do this: open your project, open up the info and settings of your proejct. where it says code signing identity, erase "iPhone Developer". now build
  #8  
Old 10-11-2008
Multi-Touch Amateur
Join Date: Jan 2008
 
Thanks, it worked, used ldid to sign and respringed with boos tools, everything is working now. of to make my first real iphone app.
  #9  
Old 06-09-2009
Multi-Touch Amateur
Join Date: Mar 2008
 
None
hi..

this does not work for me..

xCode 1.3.2
iPhone 2.2

can anyone help ?
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -7. The time now is 02:27 PM.

Recent blog posts: Recent threads:

Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 2007 - 2010 Vigorous Media LLC - All Rights Reserved.


no new posts
Page generated in 0.05490 seconds with 9 queries