Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-07-2010, 04:31 PM   #1 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 4
Angry how to: test app with static library on device

Holla, guys!
Got coded application, based on three20 static library, and now it's time for testing it on a device.
So i got question: when i build it for device-release i've got two files: libThree20.a and sample.app. How can i transfer them to iphone? Usually i've done this with itunes, when i got only app file, so what to do with this static library?

btw i use jailbroken phone.
mixer555 is offline   Reply With Quote
Old 02-07-2010, 05:50 PM   #2 (permalink)
Registered Member
 
Join Date: Jan 2010
Location: Issaquah, WA
Age: 40
Posts: 165
Default

Your static library should be packaged into your .ipa file. Either hook it up and build/run on the device from Xcode, or make an Ad Hoc build and drop it into iTunes and sync.

Out of curiosity, how do you know you're done coding if you haven't tested it on a real device yet? I started testing both of my apps on my iPhone when they were at most 20% "done". On my released app, I started using it heavily on my iPhone (for real work, not just some test passes) when it was around 50% done. Once I got to that point, I quickly realized I had to rethink a lot of things. My buttons were too small and too close together (although on the Simulator, with its larger screen and with a tiny mouse pointer, they were totally usable). My table cells needed to be resized to become usable too. I had to change how I was using my photo thumbnails and UIImageViews, simply because they took too long to load into my detail view plus the OS would kill my app when I did certain things simply because memory on a real iPhone is extremely limited. All this stuff seemed totally fine on the Simulator... and almost always will, because even the wimpiest Mac is way faster than an iPhone, and will never hit any memory issues either. Plus a little testing on the Simulator just doesn't compare to walking around and using an app on your iPhone for real work (or real game play, or whatever)... once you start doing that, you will actually start to see your app through the eyes of a user, not just a developer/tester.

I would also recommend that you give friends ad hoc builds as well (as early on in the development process as you can convince them to try it out), and pass your iPhone around to people and let them try out the app as often as you can.
__________________
Recall It! Tag your notes. Tag your photos. Tag your thoughts. Tag your life.

http://www.dljeffery.com
dljeffery is offline   Reply With Quote
Old 02-07-2010, 07:17 PM   #3 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 76
Default

Quote:
Originally Posted by dljeffery View Post
Your static library should be packaged into your .ipa file. Either hook it up and build/run on the device from Xcode, or make an Ad Hoc build and drop it into iTunes and sync.

Out of curiosity, how do you know you're done coding if you haven't tested it on a real device yet? I started testing both of my apps on my iPhone when they were at most 20% "done". On my released app, I started using it heavily on my iPhone (for real work, not just some test passes) when it was around 50% done. Once I got to that point, I quickly realized I had to rethink a lot of things. My buttons were too small and too close together (although on the Simulator, with its larger screen and with a tiny mouse pointer, they were totally usable). My table cells needed to be resized to become usable too. I had to change how I was using my photo thumbnails and UIImageViews, simply because they took too long to load into my detail view plus the OS would kill my app when I did certain things simply because memory on a real iPhone is extremely limited. All this stuff seemed totally fine on the Simulator... and almost always will, because even the wimpiest Mac is way faster than an iPhone, and will never hit any memory issues either. Plus a little testing on the Simulator just doesn't compare to walking around and using an app on your iPhone for real work (or real game play, or whatever)... once you start doing that, you will actually start to see your app through the eyes of a user, not just a developer/tester.

I would also recommend that you give friends ad hoc builds as well (as early on in the development process as you can convince them to try it out), and pass your iPhone around to people and let them try out the app as often as you can.
It may or may not work, he did say he had a jailbroken device. He may not have a licence from Apple to encode the program and create an ad-hoc.
fbronner is offline   Reply With Quote
Old 02-08-2010, 06:06 AM   #4 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 4
Default

Quote:
Originally Posted by fbronner View Post
It may or may not work, he did say he had a jailbroken device. He may not have a licence from Apple to encode the program and create an ad-hoc.
yep, you're right, i don't have licence.
usually i just drag'n'dropped app file from my build directory to itunes and that worked with application without static libs.
can you clarify how to create Ad Hoc build without licence? or how to package lib and app to ipa?
mixer555 is offline   Reply With Quote
Old 02-08-2010, 05:41 PM   #5 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 76
Default

Quote:
Originally Posted by mixer555 View Post
yep, you're right, i don't have licence.
usually i just drag'n'dropped app file from my build directory to itunes and that worked with application without static libs.
can you clarify how to create Ad Hoc build without licence? or how to package lib and app to ipa?
I wouldn't know.

I have a licence.
fbronner is offline   Reply With Quote
Reply

Bookmarks

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

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


Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,292
Threads: 39,080
Posts: 171,361
Top Poster: smasher (2,575)
Welcome to our newest member, omerk
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:37 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0