HomeStoreForumsWikiiPhone Native AppsiPhone AppsiPhone Apps modmyifone Downloadsmodmyifone Links






Go Back   ModMyiFone.com | iPhone forums, iPhone hacks, iPhone unlock > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Register FAQ Members List READ THIS Today's Posts Mark Forums Read

iPhone / iPod Touch SDK | Development Discussion SDK questions. A place for iPhone developers to post code snippets, discuss creating iPhone apps, and any other iPhone developing.


iPhone Optimized MMi | Browser Optimized MMi

Get more out of ModMyiFone by joining our free community. By registering you get privileges to download files from our downloads section and you may also post your questions in our forums! It's fast, free, and easy!

Opportunities at MMi | 1.1.4 Unlock|Jailbreak OS X / Win
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-23-2007, 07:42 AM
ReVan's Avatar
iPhoneaholic
 
Join Date: Oct 2007
Location: BOOTLOADER
Posts: 454
Thanks: 6
Thanked 509 Times in 106 Posts
The Unofficial iPhone SDK: Guide to writing native iPhone applications

The field of unofficial third-party native iPhone application development is maturing rapidly. Thanks largely to the spectacular Installer.app/AppTapp from Nullriver Software (see our guide on using it to install applications on your iPhone) and the efforts of a handful of diligent third-party developers, there are now well-working native instant messaging clients, a GPS application, and several other useful apps.

Bringing more developers into the fray, however, is a process that has been mitigated by a three significant factors: 1. Developers have yet to establish a method for monetizing native iPhone applications; 2. The fact that Apple could introduce an iPhone software/firmware update that disables most/all third-party applications, or could introduce its own scheme for third-party applications that obviates the current method; 3. The lack of a cohesive SDK (software development kit) for creating applications.

The first issue will likely see some progress shortly: Nullriver Software tells they’ll soon be implementing a method to charge for applications. The second issue is more precarious, hinging on Apple’s whim from update-to-update until (if) some formal policy is enacted. The third problem is in the early stages of resolution, thanks to the efforts of Lucas Newman, an avid iPhone developer who worked on the first native iPhone game, Lights Off and helped develop our initial 5-step native application install guide.

Lucas’ unofficial SDK consists of the following components:
  1. An 18-page PDF instructional guide with steps for downloading and installing the development toolchain.
  2. An Xcode template
  3. A set of sample iPhone applications

and provides all the foundation necessary for intermediate to advanced developers to begin creating native iPhone apps.

As discussed in the guide, most of the familiar Cocoa frameworks exist on the iPhone, including: Core Foundation, Foundation, Core Graphics, Core Audio, and CFNetwork. There is also a UIKit, which is roughly equivalent to the Desktop Mac OS X’s AppKit

Unfortunately, there is no interface builder for the iPhone: all interfaces are done in code.

Lucas’ guide includes sample code for creating a window, handling input (swipes, etc.), transforming views in 3D and more.



Sample applications, along with built versions and all components (source, images, etc.) include: FlipACoin, Motion and NetServices. You can move these applications to your iPhone by putting Installer.app on your iPhone, then install OpenSSH (under ‘System’ in the Installer.app interface) immediately.
__________________
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following 5 Users Say Thank You to ReVan For This Useful Post:
b4it (12-27-2007), brokensword (10-23-2007), kaosouy (03-27-2008), masp (12-01-2007), method77 (12-06-2007)
  #2 (permalink)  
Old 10-23-2007, 10:32 AM
iPhone? More like MyPhone
 
Join Date: Jul 2007
Posts: 250
Thanks: 6
Thanked 14 Times in 14 Posts

Sweet, this is what I was looking for. Thanks man.
__________________
Additional Installer Sources-
Themes, Ringtones and More
Right Click and Save
Place the above .plist in var/root/Library/Installer
Submit your themes in a zip to HighTymes@gmail.com if you want the theme added.
(Source is now down until I get a Mac)
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3 (permalink)  
Old 11-01-2007, 05:30 PM
kryptedak's Avatar
Green Apple
 
Join Date: Sep 2007
Posts: 79
Thanks: 3
Thanked 4 Times in 3 Posts

wow really cool !!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4 (permalink)  
Old 11-14-2007, 08:14 AM
What's Jailbreak?
 
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks man.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5 (permalink)  
Old 11-14-2007, 01:52 PM
What's Jailbreak?
 
Join Date: Aug 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts

only mac users can develop for the iphone?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6 (permalink)  
Old 11-14-2007, 09:48 PM
What's Jailbreak?
 
Join Date: Nov 2007
Device + Firmware: iPhone 1.1.4 jailbroken
Operating System: Leopard+Vista Ultimate on DELL
Posts: 17
Thanks: 2
Thanked 3 Times in 3 Posts

ok I'm not a devloper
but still wondering what's preventing devloper from doing a native chat app that contains yahoo too
I use yahoo in everything
how they could add yahoo in beejive and can't add it to Apollo or mobile chat apps

I appreciate the answer that not critisize my low knoledge in 3rd party apps devloping
thanx
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #7 (permalink)  
Old 11-18-2007, 07:42 PM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 1.1.3
Operating System: Windows XP
Location: Virginia
Posts: 974
Thanks: 26
Thanked 161 Times in 134 Posts

Quote:
Originally Posted by samx View Post
only mac users can develop for the iphone?
The toolchain can be installed on Linux or under Cygwin on Windows as well.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #8 (permalink)  
Old 11-22-2007, 05:45 PM
Drakenza's Avatar
Developer
 
Join Date: Oct 2007
Device + Firmware: iPhone 2.0 (5a274d) Unmodified
Operating System: Mac OS X Leopard / Windows XP
Posts: 191
Thanks: 1
Thanked 103 Times in 52 Posts

Thank goodness... I've been looking for one of these. I'm going to run off and mess around on my iMac now.
[giggle]
__________________

iDemocracy 3: Limitless Possibilities!
Click my signature image to Donate!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #9 (permalink)  
Old 11-23-2007, 03:03 AM
forsyt's Avatar
Green Apple
 
Join Date: Oct 2007
Posts: 84
Thanks: 5
Thanked 107 Times in 11 Posts

i tried installing the toolchain in windows vista with cygwin. its really hard for a noob like me and i was not successful. can anybody provide detail instruction for noobs like us.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #10 (permalink)  
Old 11-23-2007, 11:49 PM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 1.1.3
Operating System: Windows XP
Location: Virginia
Posts: 974
Thanks: 26
Thanked 161 Times in 134 Posts

Have you tried this guide?

http://iphone.fiveforty.net/wiki/ind...tion_-_Windows
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #11 (permalink)  
Old 11-24-2007, 12:12 PM
Drakenza's Avatar
Developer
 
Join Date: Oct 2007
Device + Firmware: iPhone 2.0 (5a274d) Unmodified
Operating System: Mac OS X Leopard / Windows XP
Posts: 191
Thanks: 1
Thanked 103 Times in 52 Posts

Quote:
Originally Posted by NetMage View Post
I have tried this guide and I'm very very close...
The toolchain installed well enough--only one error happened when I was running "make" on odcctools, I believe, but when I ran make again it worked just fine.

So now I have all the necessary stuff installed in cygwin, and I can run "arm-apple-darwin-gcc", etc, without any problems. However, I've downloaded the source for the Hello World app and saved it all in a folder called "HelloApp" in C:\cygwin. In cygwin, I cd into "/HelloApp" and run make.

This is where it gets ugly... I get three errors from /usr/local/bin/arm-apple-darwin-ld. One is "/usr/local/share/iphone-filesystem/usr/lib/libobjc.dylib" "bad magic number (not a Mach-O file)"
The other two are the same Mach-O error for "libz.1.dylib" and "libstdc++.6.dylib" both in the iphone-filesystem directory.

So I'm assuming I didn't get the filesystem copied properly. I used the vfdecrypt method for the 1.0.2 firmware image on a Mac running OS X 10.4.9, by the way.

I'm going to try SCPing the lib directory off my iPhone now... If that doesn't work I'll copy the whole filesystem. If anyone else has some ideas send me a PM or something.

I'll update this post if I make any progress and maybe write a guide later for Windows users...

By the way, I'm doing this on Windows XP (I don't trust Vista with this kind of stuff ).

Update: Copying the "/usr/lib" folder off my iPhone with WinSCP and replacing the "C:\cygwin\usr\local\iphone-filesystem\usr\lib" folder with that one made it compile at last! For any of you having similar problems, make sure you get the right files off the iPhone. Apparently decrypting the dmg can get a little corrupted.
__________________

iDemocracy 3: Limitless Possibilities!
Click my signature image to Donate!

Last edited by Drakenza : 11-24-2007 at 12:19 PM. Reason: Got it.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #12 (permalink)  
Old 11-24-2007, 05:37 PM
forsyt's Avatar
Green Apple
 
Join Date: Oct 2007
Posts: 84
Thanks: 5
Thanked 107 Times in 11 Posts

i get confused on step 4. i dont have a /home directory and i svn dont work for me. it say no such command.

made home directory and updated my cygwin to install web and dev applications. svn is working for me now. im currently downloading trunks, wish me luck. i have no idea what im doing. hehehehe

Last edited by forsyt : 11-24-2007 at 05:37 PM. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #13 (permalink)  
Old 11-26-2007, 01:29 AM
Green Apple
 
Join Date: Oct 2007
Posts: 93
Thanks: 11
Thanked 32 Times in 21 Posts

I'm certain the reason why most people are having problems compiling the toolchain stems from not properly getting the iphone filesystem. usually they use some method that will break the symbolic links, thereby breaking the filesystem.

what i did to get the filesystem flawlessly and easily was:
1. Make sure you have OpenSSH installed on your phone

2. WINDOWS: use putty to SSH to your phone, LINUX/OSX: in a terminal enter: ssh root@192.168.x.x (where 192.168.x.x is your iphone's IP Address)

3. enter: cd /var/root/Library

4. enter: tar -cv ./filesystem.tar /

5. SCP the /var/root/Libarary/filesystem.tar file to your computer and untar. The symlinks should now stay intact.
__________________
My Installer Source for themes, wallpapers, and keyboards: http://www.apogeeltd.com
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to chemicalcomfort For This Useful Post:
quocanh001 (12-07-2007)
  #14 (permalink)  
Old 12-04-2007, 01:09 PM
Green Apple
 
Join Date: Oct 2007
Posts: 57
Thanks: 8
Thanked 25 Times in 11 Posts

By asking this question, I should probably not even be dreaming of trying something like this, but what language is this? Java?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #15 (permalink)  
Old 12-04-2007, 08:30 PM
CyberGreg's Avatar
Moderator
 
Join Date: Jul 2007
Device + Firmware: iPhone/Touch 1.1.4/1.1.3
Operating System: OS 10.5.2
Posts: 983
Thanks: 47
Thanked 141 Times in 112 Posts

Quote:
Originally Posted by pcguysam View Post
By asking this question, I should probably not even be dreaming of trying something like this, but what language is this? Java?
Objective C
__________________
1.1.4 and SDK installed, waiting for iPhone 2.0

---------------iPhone Links, check 'em out-------------------
| iSwitcherAE User Guide | iSwitcher FAQ | Add Installer Source |
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to CyberGreg For This Useful Post:
pcguysam (12-05-2007)
Reply

  ModMyiFone.com | iPhone forums, iPhone hacks, iPhone unlock > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

ModMyMoto.com - ModMyGPhone.com - ModMyiFone.com - Managed Dedicated Servers by SingleHop - iPhone Wallpapers - Contact Us - Link to us - Archive - Privacy Statement - - Top
All times are GMT -6. The time now is 06:29 AM. Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5 Copyright © 2007-08, ModMyiFone.com Forum skin by poetic_folly
ModMyiFone.com is an independent publication and has not been authorized, sponsored, or otherwise approved by Apple, Inc or Cisco Systems, Inc. The information contained on this site is for educational purposes only.