[IPhone SDK] How to create dylib on iPhone

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.

I don't believe you can, at this time, use your own dylibs or frameworks. You'll need to use static libraries instead.
rob.

Similar Messages

  • IPhone SDK: How to create an image from raw data

    Creating a UIImage from some form of bitmap file format is easy, whether you let UIImage load the file itself or create it with an NSData. But what if you have raw bitmap data in memory and you want to create an image?
    In Cocoa NSBitmapImageRep can be created by passing it a pointer to a block of memory and the relevant heigh, width, bit depth etc. information. From that you can easily create an NSImage. There doesn't seem to be anything equivalent on the iPhone. CGImage can be created but it looks like you have to write a CGImageProvider. CGBitmapContextCreate takes a void * to a block of memory. Does it clear that block?
    Is there a good way to do this?

    ElNono wrote:
    You can't do RGB565 on a CGImageRef/CGContextRef. The only 5bpp modes supported are 1555 ARGB or 5551 RGBA. If you just need to display the image, use OpenGL. One of the supported texture formats is RGB565. If you need to save the image then you're going to have to pre-convert it to RGB888.
    hi ElNono , i have test the RGB888 data now , the image can show , but another problem is the image just like serveral picture over lap together , also is blurred , my code is here:
    const size_t width = 1024;
    const size_t height = 768;
    const size_t bitsPerComponent = 8;
    const size_t bitsPerPixel = 32;
    const size_t bytesPerRow = (bitsPerPixel * width)/8;
    CGBitmapInfo bitmapInfo = kCGImageAlphaPremultipliedLast;
    CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
    NSString *imagePath = [[NSBundle mainBundle] pathForResource: @"Test" ofType: @"rgb"];
    NSFileHandle* file = [NSFileHandle fileHandleForReadingAtPath:imagePath];
    NSData* imageData = [file readDataToEndOfFile];
    CGContextRef context = CGBitmapContextCreate((void*)[imageData bytes], width, height, bitsPerComponent, bytesPerRow, colorSpace, bitmapInfo);
    CGImageRef imageRef = CGBitmapContextCreateImage (context);
    UIImage*rawImage = [UIImage imageWithCGImage:imageRef];
    CGColorSpaceRelease(colorSpace);
    CGContextRelease(context);
    CGImageRelease(imageRef);

  • How can i restart my iphone?, how can i restart my iphone?

    how can i restart my iphone?, how can i restart my iphone?only the apple logo will appear but I cannot open the screen..

    Try a restore
    http://support.apple.com/kb/ht1414
    If that doesn't work, recovery mode
    http://support.apple.com/kb/ht1808

  • HT201269 Computer stolen.  Only backup is iphone.  How do I transwer from Iphone back to Itunes.  Bunch of music on iphone from CD's.

    Computer stolen.  Only backup is iphone.  How do I transwer from Iphone back to Itunes.  Bunch of music on iphone from CD's.

    Normally you would restore the backup of the computer, but you say you don't have a backup of the computer. That is a shame. See this user hint to try and rebuild your library. https://discussions.apple.com/docs/DOC-3141

  • HT1688 My daughter and I both have and iPhone.  How do I use my iPhone or the cloud to locate her?

    My daugher and I both have an iPhone.  How can I use my iPhone or the cloud to locate her in case of an emergency.  Is there a way to do that without paying for an upgrade or additional services through a separate vendor??
    Thanks!

    find my friend http://itunes.apple.com/us/app/find-my-friends/id466122094?mt=8

  • I lost my iphone..how can i barr the iphone to stop the 3rd party by using it

    i lost my iphone..how can i barr the iphone to stop the 3rd party by using it..pls help..tQ

    If you have MobileMe setup on your phone yuo can choose to lock it yourself or actually wipe it in addition to displaying a message on screen by logging onto your MobileMe account @ www.mobileme.com

  • How to create "Purchased on iPhone" smart playlist?

    I lost my old iPhone Larry but the "Purchased on Larry" playlist was still active. My new iPhone Ploobie's purchases were automatically added on it, but as soon as i synced my iPhone to my computer, the new songs got deleted from it. I ended up deleting that playlist in order to create a new one for my new iPhone. However i have found you can't create a "purchased on iphone" smart playlist from neither my iPhone or my computer. Could someone please give me some advice on how to do it?
    Thank you.

    I am having the same issue.  I tried merging two "Purchased on iPhone" playlists.  I created a new playlist and copied all tracks from both playlists into the new playlists.  I then deleted both "Purchased on iPhone" playlists.  I purchased a new track on my iphone hoping that when I plugged in my phone to sync a new "purchased on iPhone" playlist would appear so that I can then paste all the tracks in the playlist.  The new "purchased in iPhone" playlist was not created and now I have no idea how to add it back. 

  • Downloaded iPhone SDK, ran Xcode, no option for iPhone - Mac OS only!

    Hi everyone,
    I downloaded the free iPhone SDK and ran the installer. Whenever I launch Xcode however, there is no tab for iPhone applications - only Mac OS. I took a peak inside the packages folder in the download and spotted files named "iphone SDK", so I'm confused.
    Any idea on why Xcode runs but there is no option for iPhone?
    Thanks,
    Xeno

    Hello,
    On my PowerPC G5 I have a similar issue where I installed Mac OS X 10.5.6, but after installing the iphone SDK I do not see any refs to iphone when in Xcode.
    I even tried the suggestion here:
    http://3by9.com/85/dont-have-an-intel-machine-but-want-to-code-for-the-iphone-an yway-follow-these-steps/
    This however, resulted in the same issue.
    Any suggestion on how to resolve this would be most appreciated.

  • I just got a iphone 4 and it wont sync to my itunes. My itunes will sync with my ipod touch just fine but doesnt even reconize my iphone. How do i get my iphone to sync?

    I got an iphone 4 a week ago and i havent hooked it up to itunes yet until today. I plugged it into my computer and itunes doesnt reconize it. My itunes syncs just fine with my ipod touch but it wont sync with my iphone at all. How do i get my iphone 4 to sync to my itunes?

    Hey RavenDawn1002,
    If you have a Windows computer, you'll want to run through the steps in this article:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    If you have a Mac, then use this article instead:
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/TS1591
    Have a good one,
    Delgadoh

  • My contacts and whats app messages are shown on my sister's iphone! How can I secure my iphone and have a high level of security and privacy! Her Contacts are shown in my iphone as well!!

    I have and iphone 6 with iOS 8.1. My contacts and whats app messages are shown on my sister's iphone! She have iPhone 6 and and iOS as well. How can I secure my iphone and have a high level of security and privacy! Her Contacts are shown in my iphone as well! Setting in mac and iphone are a bit presice and sensitive. Is there any way to solve my issue and increase the safety, security and privacy in my iPhone and its data?

    Your problem is that she used your icloud ID to connect to icloud and thus had all your data synced to her device.  Contacts are not saved in a backup to icloud, since they are stored independently in the Contacts section of icloud.  If someone deletes them, they are gone.  If you had them on the PC would they be available in some backup you frequently make of the PC?

  • How to send mms from iphone 5 this my new mobile iphone 5, how to send mms from iphone 5 this my new mobile iphone 5

    i bought my new iphone 5 but i am unable to send mms from my iphone .so can u plz guide me how to send mms from iphone 5

    Try here...
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755

  • How to block my lost iphone 4s, how to block my lost iphone 4s

    I lost my iphone 4s. Can it be blocked through the serial number?
    My question is this: I know someone else has it. It was tracked through Find my Iphone. How to prevent it from being used ever again? Is there a service that would permanently blocked and unable to be used? Or anyone could just pop a new chip and ready to go? Since the device is registered under my Apple ID, no one else should have access to use my lost device, but me!

    any update ?!!!
    KateMelody wrote:
    I lost my iphone 4s. Can it be blocked through the serial number?
    My question is this: I know someone else has it. It was tracked through Find my Iphone. How to prevent it from being used ever again? Is there a service that would permanently blocked and unable to be used? Or anyone could just pop a new chip and ready to go? Since the device is registered under my Apple ID, no one else should have access to use my lost device, but me!

  • I no longer have the computer I originally used to update my iphone. How can I update my iphone on new computer?

    I no longer have the computer I originally used to update my iphone. How can I update it to my new computer?

    see this documentation by one of our fellow users syncing to new computer http://discussions.apple.com/docs/DOC-3141

  • How to create event on iPhone and have it sync with Google and Exchange?

    How can you synchronize your Exchange calendar with your Google calendar? I have an Exchange account and Google Sync set up on my iPhone 4. However, when I create an event on my iPhone, I have to pick which calendar it goes in, and it shows up only in that calendar, not in both. How do I get the calendars to actually sync with each other?

    mrbofus wrote:
    How can you synchronize your Exchange calendar with your Google calendar? I have an Exchange account and Google Sync set up on my iPhone 4. However, when I create an event on my iPhone, I have to pick which calendar it goes in, and it shows up only in that calendar, not in both. How do I get the calendars to actually sync with each other?
    Install the Google Sync plugin for Outlook on your computer, and sync the iPhone calendar to Google. Of course, this means that your computer must always be on.

  • How to create Birthday calendar iPhone 4S

    Hi
    Could somebody help me to create seperate "Birthdy Calendarr" for iPhone 4S
    Thaks

    And if they're not in your contacts, obviously you can just enter them as appointments with an annual repeat. (that's how mine are, I just learned about the birthday part thanks)

Maybe you are looking for