• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 3rd party executable in iOS project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 3rd party executable in iOS project


  • Subject: Re: 3rd party executable in iOS project
  • From: Koen van der Drift <email@hidden>
  • Date: Mon, 21 Oct 2013 21:26:04 -0400

Ok, I figured it out. I was able to build three different static libraries for armv7, armv7s and i386 and combined them with lipo into one that I added to my project.

The question now is, how do I call the functions in this library?

On the command line, I need to do something like this:

foo file1 > output

With NSTask and companions it is easy to do this, but how can I do that for iOS where NSTask is not present?


- Koen.


On Oct 21, 2013, at 4:17 PM, Koen van der Drift <email@hidden> wrote:

> I think I am on the right track now.  I'm building the project (plain c) on the command line with an updated makefile for iOS, but am getting some compiler and linker errors.  Since this is outside the scope of this mailing list I will ask additional questions on the Xcode list.
>
> - Koen.
>
>
> On Oct 21, 2013, at 2:53 PM, Koen van der Drift <email@hidden> wrote:
>
>>
>> On Oct 21, 2013, at 2:43 PM, Jens Alfke <email@hidden> wrote:
>>
>>> Can you configure that project as a [static] library that you can link into your app and call directly?
>>
>> Yeah, I though about that as well, and am going to try that. It comes with makefiles for Mac (OSX only though), so I'll start with that.
>>
>> Actually, I misspoke, it is not an open source project, but the license says am allowed to use it in a non-commercial project.
>>
>> Thanks,
>>
>> - Koen.
>


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: 3rd party executable in iOS project
      • From: Jens Alfke <email@hidden>
    • Re: 3rd party executable in iOS project
      • From: Daniel DeCovnick <email@hidden>
References: 
 >3rd party executable in iOS project (From: Koen van der Drift <email@hidden>)
 >Re: 3rd party executable in iOS project (From: Jens Alfke <email@hidden>)
 >Re: 3rd party executable in iOS project (From: Koen van der Drift <email@hidden>)
 >Re: 3rd party executable in iOS project (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Re: How did I break Auto Save during -[NSApp terminate:]?
  • Next by Date: Re: 3rd party executable in iOS project
  • Previous by thread: Re: 3rd party executable in iOS project
  • Next by thread: Re: 3rd party executable in iOS project
  • Index(es):
    • Date
    • Thread