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

shweta13

macrumors member
Original poster
Aug 7, 2008
38
0
HI all,

I am developing an iPhone application. I need to put some of the code in a dylib and link it to my application project.
How do I create dylib using xcode and how do I link it to my application?

Thanks for ur help in advance :)
 

shweta13

macrumors member
Original poster
Aug 7, 2008
38
0
iPhone apps cannot link to any additional libraries or frameworks unless those are compiled into the main executable.


Ok...so basically I cannot make any third party dylib files and include in my iphone app...but I can use already existing dylibs in my appln..right?
Is it tht the app store doesn't approve the third party dylibs?
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
Ok...so basically I cannot make any third party dylib files and include in my iphone app...but I can use already existing dylibs in my appln..right?
Is it tht the app store doesn't approve the third party dylibs?

You can use anything in the public frameworks. You cannot use any private frameworks. I'm not 100% sure what the status is with non-framework library code in dylibs already on the system.

The relevant section of the SDK agreement is 3.3.2. I suggest you read and ensure you understand it. I can't post it here due to the NDA (and the fact that my stupid work PC won't let me copy the text out of the PDF). I would suggest that it indicates any app that tries to use install frameworks or library code will be rejected.
 

shweta13

macrumors member
Original poster
Aug 7, 2008
38
0
You can use anything in the public frameworks. You cannot use any private frameworks. I'm not 100% sure what the status is with non-framework library code in dylibs already on the system.

The relevant section of the SDK agreement is 3.3.2. I suggest you read and ensure you understand it. I can't post it here due to the NDA (and the fact that my stupid work PC won't let me copy the text out of the PDF). I would suggest that it indicates any app that tries to use install frameworks or library code will be rejected.

ok...got it...thanks a lot for ur help..:)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.