Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7060045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:18:20+00:00 2026-05-28T04:18:20+00:00

I’m working on an iOS app where I use third party libraries. I want

  • 0

I’m working on an iOS app where I use third party libraries. I want to migrate my project to use ARC, but the third party libraries are still using the old memory management. So I want to separate third party code and put it in a separate project without ARC, and then somehow link that project into my iOS-app project, so that they will be built together using the same configuration.

Is this possible to do in a very simple way, or am i better of just turning off ARC for the individual files? (seems very tedious..)

Can I use a workspace? Where one project is my iOS app and the other just contains third party code?

I’ve played around a bit and googled a lot, but there just doesn’t seem to be any simple soultion, or am I wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:18:20+00:00Added an answer on May 28, 2026 at 4:18 am

    So I figured it out myself, with a lot of help from different blogs. Something this basic should be more trivial and well documented… But here we go, this is what I did to get a library for AsiHttpRequest:

    1. Create a new iOS project. Select the ‘Cocoa Touch Static Library’ template. Call it whatever you like. You don’t want to tick ‘Use automatic reference counting’, since AsiHttpRequest does not support it.
    2. Select a location for your library project (will matter later on).
    3. Delete the default .h- and .m-file created by Xcode.
    4. Drag and drop the AsiHttpRequest files into the project
    5. You can add the frameworks that AsiHttpRequest is dependent of, but you will have to add them to your main project anyway, so it is not necessary.
    6. Try to build the project, it should do so without errors.
    7. Open your main project
    8. From finder, drag your library .proj-file into your main project (in Xcode, so that it ‘lands’ onto the main project file)
    9. The library project should now appear under your main project (still in XCode). It should be expandable and you should be able to see the library project files as well. If it doesn’t, try closing all open projects and reopen the main project.
    10. Select the main project, and select target. Under Build Phases – Link Binary With Libraries, click the +-sign.
    11. In the list of frameworks you should see your library project (called something like libname.a). Select that file
    12. The newly added file might appear red in the list of frameworks, don’t worry, it works anyway. Guess it’s a bug.
    13. Still under target, go to Build Settings
    14. Under Header Search Paths add the relative search path to where the library .h-files are. This is relative to your main projects .proj-file. (For example ../some folder/libproject/)
    15. Hopefully your main project will build without errors and the library project will be built at the same time, using the same configuration as the main project.

    I have no idea if this is a good approach or if there is some easier way to do it. However, I like this, since I can use the library project in several projects. And if I want to update the library project, I only have to do it in one place, and the other projects will be updated as well, since they all reference the same project.

    Edit1:
    I had some problems with library projects using objective c categories. I received unrecognized selector sent to instance errors in runtime when trying to call those methods. This problem was solved by following the answer given here.

    1. Go to build settings of the target in the main project and add -ObjC to the entry called Other Linker Flags

    Edit2:
    I found this template for creating Universal frameworks. I haven’t tried it, but I guess something like this would work as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to count how many characters a certain string has in PHP, but
I want use html5's new tag to play a wav file (currently only supported
I have a French site that I want to parse, but am running into
We're building an app, our first using Rails 3, and we're having to build
I want to construct a data frame in an Rcpp function, but when I
I am using Paperclip to handle profile photo uploads in my app. They upload
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to understand how to use SyndicationItem to display feed which is
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.