Adding a framework to an iPhone application

Hi guys,
In my Application I'm using a framework that doesn't seen to come as standard to the iPhone, yet is a mac standard one as I was able to locate it on my iMac and add it to my project. When I run my application through the iPhone Simulator it picks up the framework that I have copied into my application's directory. No problems
Now, I have signed up to the developer program and I'm trying to get it to run on the device but it now gives me 70 new errors all to do with the framework that my application uses.
Errors such as...
error: ldap.h: No such file or directory
Surely if the Simulator lets me use the framework then I can actually use it? How can I get this framework to work properly with my app?
I have read in other places that I will have to add the openLDAP files to my project, but I haven't the foggiest idea how I would start to do that. If that is the case, could anyone give me some pointers of how I might achieve this?
Many thanks,
Ade

You can look up the available frameworks under /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks (or similar sdk version). If it does not exist, you may have to build OpenLDAP along with your project (or build it as a static framework and include in your application).

Similar Messages

  • Is Apple allow core plot framework to draw Pie chart in iPhone application?

    Is Apple allow core plot framework to draw Pie chart in iPhone application?
    http://code.google.com/p/core-plot/wiki/AppsUsingCorePlot

    Wrong forum. Ask in the developer's forum.

  • Massive help with an iPhone Application...PLEASE!   :(

    Hello.
    Since yesterday I have been trying to hunt down a bug in a simple iPhone application I made while following an exercise from the iPhone SDK Development book. Its a simple application with a navigation controller and a table view.
    You can download my project at
    public.me.com/felipelaso
    In the main view when the application is opened, you see a list of items and an option to edit them or add an item. When you click on add, a new view controller is popped, you get a textfield and a keyboard, and when you are done you go back to the table view and the name you just entered is added to the list.
    The problem is that as soon as you hit done on the keyboard, or click back on the navigation bar I get the following messages in the console:
    This GDB was configured as "i386-apple-darwin".warning: Unable to read symbols for "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics" (file not found).
    warning: Unable to read symbols from "CoreGraphics" (not yet mapped into memory).
    warning: Unable to read symbols for "/System/Library/Frameworks/UIKit.framework/UIKit" (file not found).
    warning: Unable to read symbols from "UIKit" (not yet mapped into memory).
    I have reinstalled my developer tools, created a new project from scratch, added the frameworks again and nothing seems to work.
    I though it might me something with my frameworks. But then I downloaded a bunch of the samples with table views and navigation controllers, and they all work fine. All my other applications work fine too, except this one.
    I have spent all morning, and all afternoon yesterday trying to find out whats wrong, but im not an Xcode or Cocoa expert and I was hoping I could find some help.
    The project can be downloaded for anyone to test with.
    Please! any help I get would be gladly appreciated.
    Thanks in Advance,
    Felipe.

    Ok I downloaded it, ran it on the simulator and everything was fine. Put it on my device and i got an EXCBADACCESS when I clicked the done button as you described.
    EXCBADACCESS means something is getting released before you're trying to access it again. I opened the debug console to see this. Then I opened the debugger to find out exactly what the issue is. In my stack the last custom method that was called is [RootViewController addTeamNamed:] This makes me believe the array is being released.
    Now I take your addTeamNamed method and pepper it with log statements:
    - (void)addTeamNamed:(NSString *)teamName
    NSLog( @"A" );
    [teams addObject:teamName];
    NSLog( @"B" );
    NSIndexPath *indexPath;
    indexPath = [NSIndexPath indexPathForRow:[teams indexOfObject:teamName] inSection:0];
    NSLog( @"C" );
    [[self tableView] insertRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath] withRowAnimation:NO];
    NSLog( @"D" );
    The console output of which is: "A B C". Ok, no D, so that means the error is the in the insertRows... method.

  • Open Sourcing an iPhone Application acceptable under the License Agreement?

    I've read through the licensing agreement, but I'm still not convinced either way. I want to make my iPhone application's source code available on the internet and set up a project page and SVN repository on a site such as Google Code. I wouldn't be distributing my signing keys and would be the single source for submitting the app to iTunes. Is this allowed under the License Agreement?

    (Disclaimer: IANAL, I'm just a smart guy who's worked on GPL projects.)
    That isn't the relevant part of the iPhone license agreement. The GPLv2 (which is probably the most important open source license for this question, as it's both very popular and has restrictions on mixing with proprietary code) does not encompass headers and libraries that are part of the operating system. That's how people can write open source Windows and Mac applications--believe me, Microsoft would not be pleased if someone contacted them and said that since Gaim was open source, they had to release the source code to the Win32 API. So the GPLv2 would not attempt to "annex" anything provided by Apple, and thus it wouldn't violate that section.
    What may be relevant is the iPhone license section concerning confidentiality. If the class, method, function and constant names are considered "Apple Confidential Information", you would be in violation of the contract if you distributed code that revealed them. I rather suspect that nothing in the Foundation or Core Foundation frameworks could be considered confidential, as information about them is freely available to anyone who has the Mac OS X Core Library, which is distributed with every copy of Leopard. UIKit, Core Location, etc. are another story; I personally think that the fact that the APIs are included in the free SDK ought to preclude considering them confidential, but Apple might think differently.
    In other words: you're definitely safe using LGPLv2 libraries. If the code would also compile with the Mac OS X SDK, you're almost certainly safe releasing it under the GPLv2*. If the code uses UIKit or other frameworks documented in the free SDK, you may be safe releasing it under the GPLv2. If you release any code that uses APIs that only licensed developers have access to under the GPLv2, you're probably totally screwed.
    The GPLv3 is much stricter, and so the story there might be different; for example, I think it may have key-releasing requirements that would conflict with the contract. I don't really know much about it, though.
    \* Remember, the original copyright holder can create alternate licensing arrangements for specific people. So he can say "anyone can use this code under the GPL, and as a special exception, it can be linked against FooCorp's non-GPL software". But to use anyone else's GPL code, you'd have to get all of the authors of that code to agree to the same exception. Alternately, you can just release your own code under the LGPL instead and then it's all good.
    Message was edited by: Brent Royal-Gordon

  • Problems installing Xcode for building iPhone applications

    Just got a mac mini today for building iphone applications. I'm new to macs.
    Downloaded the iPhone SDK. Installed it. But I saw there are a lot of
    packages. Do I need to install them all? I've installed the iPhone ones.
    When I launch Xcode I get the 'Welcome to Xcode 3.1', which just looks like
    a lot of tutorials. How do I run the Xcode application to build iPhone apps?
    Cheers,
    John.

    you just install XCode and it will install ALL packages, the packages that you see are to be installed one by one for expert users or users that want to have a the newest packages.
    Remember: Install the iPhone SDK 2.2
    you just go to menu and click File > New Project > iPhone and choose the type of project for the iPhone that you want to use, WebApp, UIApp, etc ...
    because you are new to the MAC world and probably never used Objective-C in your live, it is good to start somewhere first, buy a good book of the subject, start with the language (Objective-C) them learn about the framework (Cocoa Touch) and then read all about XCode.
    In the meanwhile you can check several websites to start knowing what you going to be able to do one day, here are some examples:
    - Writing your first iPhone application (payed movies, first for free)
    - iPhone Developer Central
    - Apps Amuck
    - iPhone SDK Articles
    remember that you will need to apply to the iPhone Developer Program in order to submit your SDK Apps to the Apple AppStore.
    Updated: You can find several movies on YouTube on how to start building apps to the iPhone, but the most seams to do a bad job cause they are screen casting the entire desktop rather the area that we need, so text will be unreadable on such dimensions.

  • IPhone Application Rules

    Hello,
    My apologies for posting this question on this forum, but I still can't find the answer to my query even after reading through the application developer docs and contacting Apple support. Here it is:
    Would Apple permit us to create an iPhone Application that did the following:
    -It was free for users to download from the iPhone application store.
    -Once downloaded, users could submit their details (including country, mobile/cell phone number, mobile/cell phone network).
    -The customer then receives a free SMS asking for their action to subscribe to a Premium SMS service (EG: Hello. To subscribe to Ace Ringtones, reply OK to this number. Cost: 4.99/month. Helpline: 1800 985 452)
    -The customer replies OK and is subsequently subscribed to our Premium SMS service.
    *Just to clarify, Premium SMS is the technology that allows your mobile/cell phone to be reverse billed, so the fee is added to your pre-paid or post-paid account with your telco (e.g. Sprint, Virgin Mobile, etc)
    The reason I ask is because while our Apple iPhone application would be free, we would still be making money without Apple using premium SMS.
    Could you please confirm if this business model would be allowed by Apple for their iPhone applications?
    Thanks in advance for any information / feedback.

    Might get better response here:
    http://www.iphonedevsdk.com/forum/

  • IPhone Application with Addons or Extra Packages

    I'm looking to start development on an iPhone application, but I have a question on how extending the app would work.
    The base application needs to rely on packages for content, which themselves will be individually purchased through the iTunes store. These packages add additional content to the base application, and should not replace the app or existing content previously purchased.
    Is a model like this possible?

    Proceed carefully. As things are now the downloads are separate but can be linked together using device ID and external server. You'll have to make sure your model, package, icons are intuitive and clear on how it works. You'll be using Apple's system as a token delivery system and get the content to the mail app otherwise.
    This is one way I would do this:
    Lets say my main app is a "Speak them All!" language program that comes with four popular languages and the other apps are for different languages. I would make them as:
    Main app, "Speak them All!", runs:
    1 - Register device ID with external server.
    2 - Get list of languages (and content) for device ID from external server. If updates to language files or new language files, get the updates.
    "Flemish" expansion app Runs:
    1 - See if device ID is registered with external server.
    2A - If Yes in step 1, ask user if they would like to add Flemish to "Speak them All!" and after they give the expected Yes answer, register language "Flemish" with the server and tell user "Done! Flemish has now been added to "Speak them All!". You can now delete this expansion."
    2B - If No in step 1, let them know that the expansion should be run after "Speak them All!" has been loaded and ran.
    Hope it helps.

  • IPhone Application Frozen after waking up from Device Sleep

    The iPhone application that I am currently working on is having a hard time running properly after the device is put to sleep. I've built other applications that work fine, but something seems to be wrong with this one.
    After the device is woken up, it shows my user interface correctly, and I can see that other threads are running because I added log messages in a communication thread, but the UI is not responsive to any touches.
    Anyone have any pointers on what to look into for why this is happening?
    I've overridden the applicationWillResignActive and applicationDidBecomeActive methods in the application delegate to see what is getting called, but am not sure what to do once the application has become active again.
    Thanks.

    No one's ever faced that?
    I mean the iMac is brand new, upgraded from SL to Lion and this happened.
    It's the iMac mid-2011, 21,5
    2.5 Ghz Intel Core i5 - AMD Radeon HD 6750M 512 MB
    Would you guys say it's a hardware issue, or rather a Lion issue?

  • What is the optimize way to integrate payment in iPhone Application ?

    Hi Concern,
    I am creating an application of a resturent which suppots online purchase of the food items, I am searching for an optimise way to integrate payment via VISA/Credit Card in my application .
    I thought to get an API call from Secure Trading (securetrading.com) and then call the API using AFNetwork Open Source Frame Work . Will this type of process is permitted and will pass the testing process of the applicaiton on Apple store .
    What will be the best way to integrate payment in the iPhone application (as i can't use IN APP Purchase) .
    Looking forward your repsonse .
    Thanks:
    Vinay Chopra

    If I understand what you're saying correctly, you should be able to sync your iPhone using iTunes, then on the Apps tab you should be able to uncheck the iPad app you mistakenly added to your iPhone and check the correct iPhone app.  Resync after making this change and it should remove the iPad app and add th iPhone app.
    Hope this helps!

  • I added a contact to my iphone 4s and when I did a sync manually it is not showing up on my MAC in address book - please help....I checked off sync all contacts in iTunes  - does it only work one way from computer to phone?

    I added a contact to my iphone 4s and when I did a sync manually it is not showing up on my MAC in address book - please help....I checked off sync all contacts in iTunes  - does it only work one way from computer to phone?

    Is it because the new itunes looks different.
    View > Show Sidebar
    Then it should work just the same as on your old computer.

  • My iphone application running continuously in background to access some information by "beginBackgroundTaskWithExpirationHandler" then can i submit in appstore .

    My iphone application running continuously in background to access some information by "beginBackgroundTaskWithExpirationHandler" then can i submit in appstore ?

    This is a question that should probably be posed in the Developer forum.

  • Can you sync 2 apple ID's for Find Iphone Application?

    My Husband & I both have IPhone/IPad/IPod & MacBooks and we have seperate Apple ID's. We would both like to be able to access all the devices under the Find IPhone application, but I can only see my devices and he can only see his. Is there a way to sync the two apple ID's? Thank you!

    Yes if she has her own user account on the MacBook.  One user account can't sync to two separate iCloud accounts.
    OT

  • I have an iPhone application already developed and it works great ,now i need to make that same application for my iPad .can someone please tell me step by step instructions on how to make it .

    i have an iPhone application already developed and it works great ,now i need to make that same application for my iPad .can someone please tell me step by step instructions on how to make it .

    Try the developer's forum:
    https://discussions.apple.com/community/developer_forums

  • I am using Iphone 3gs. Last week I updated my itunes to latest version, although I couldnt not update my iphone OS since the download fails saying error 9006. For last 2 days all my Iphone applications fail to open except the default ones. Any solutions?

    I am using Iphone 3gs. Last week I updated my itunes to latest version, although I couldnt not update my iphone OS since the download fails saying error 9006. For last 2 days all my Iphone applications fail to open except the default ones. Any solutions?

    Download a free app and try again, you can delete the free app afterward.

  • Flex iPad Application : Run code before application enters background  Application Type: Flex Mobile Application Target Platform: iPad AIR Version: 4.0 Development Environment: Flash builder 4.6  I want to run some code just before iphone application goes

    Application Type: Flex Mobile Application
    Target Platform: iPad
    AIR Version: 4.0
    Development Environment: Flash builder 4.6
    I want to run some code just before iphone application goes into background. I need function similar to didEnterBackground
    of native xcode app
    (https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplicationDelegat e_Protocol/Reference/Reference.h
    tml#//apple_ref/occ/intfm/UIApplicationDelegate/applicationDidEnterBackground:)
    I tried using devactivated function of flash.display.STAGE.
    I used following addEventListener:
    STAGE = this.parent.stage;
    STAGE.addEventListener(Event.DEACTIVATE, onAppDeactivated);
    It worked for me but only when device is connected to development environment in debug mode. When I create my release build
    it is not working.
    So how can I make sure that my code runs before application goes into background.

    Even I am facing almost same issue
    Problem installing Adhoc version to iPhone and iPad - Development Environment Is - Adobe Flash CS6

Maybe you are looking for

  • Accounts on Apple's Wiki

    Hello, is it possilbe to have accounts on the Wiki without having them on the Server itself? I like ot have multiabple user accounts on the Wiki (some read and write and other just read) where they can also reset there own password if required. Thank

  • How to use classes from an existing outside library ?

    Dear People, I added a library to use classes already built. In JBuilder7 I went to Tools | ConfigureLibraries and added the objectdraw library. At the left when I look in the directory structure under User Home is "objectdraw" so I did add the libra

  • Problem with sizing

    I have this problem I cant figure out. I have this class that extends JPanel called Container. It's layout is BoxLayout (Y_AXIS), and has two components. One of the components is a JPanel with just a picture drawn in it, and the other is a control pa

  • Why I can't open any ppt files in power point?

    When I receiv e.ppt files as attachments I cannot see them in PowerPoint,only as .pdf. But I cannot edite them. I have an I-MAc. Thank you coco

  • Suggest me any good books for OCA_DBA Preparation

    Hi Guys, I am planning to appear in OCA DBA Examination before March 2009. For the preparation purpose, I need some material like Books, model papers, any other important articles etc. Kindly share the material with me if anybody have it, It would be