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 4019574
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:07:16+00:00 2026-05-20T10:07:16+00:00

How can I release a library for my XCODE project? I have a project

  • 0

How can I release a library for my XCODE project? I have a project which I wanted to expose to others as a library.

  • 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-20T10:07:17+00:00Added an answer on May 20, 2026 at 10:07 am

    You must make a Cocoa Touch Static Library That contains all of the header and implementation files that you want to ship, and then use a script similar to the following:

    #!/bin/bash
    #build the device
    echo building for ARM architecture
    xcodebuild -sdk iphoneos4.2 "ARCHS=armv6 armv7" build > /dev/null
    #build the simulator
    echo building for the i386 architecture
    xcodebuild -sdk iphonesimulator4.2 "ARCHS=i386 x86_64" "VALID_ARCHS=i386 x86_64" build > /dev/null
    #make the folder
    mkdir "Fat Binary"
    #lipo suck it together
    echo lipo binaries together
    lipo -output Fat\ Binary/libMyLib.a -create build/Release-iphoneos/libmyLib.a build/Release-iphonesimulator/libmyLib.a
    echo lipo binary saved at $./Fat Binary/libmyLib.a
    echo coping headers
    cp -R build/Release-iphoneos/usr "Fat Binary"
    echo [COMPLETE]
    

    This, in a nutshell, creates a folder that contains a library (libmyLib.a) and a folder of headers (usr) that must be added into the target project, the headers by Add->Existing Files and the Library by Add->Existing Framework->Add Other.

    Also note that the role of the headers in your library must be public, or they will not copy, and that you must replace instances of libmyLib.a with the name of your library.

    I have used this process many times, and it is the best you can get to making a framework for the iOS at this time, sadly.

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

Sidebar

Related Questions

I have recently published a first stable release for my open source library http://jooq.sourceforge.net
How can i release the memory that I used for a variable (e.g. a
When do you think we can expect the full release version of ASP.NET MVC?
Printf got added to Java with the 1.5 release but I can't seem to
I am trying to add the Parsekit framework to my OSX Xcode project. I've
I have a library of 16 short sound clips I need to be able
I am developing a Math application which can be extended by writing python scripts.
I'm using Detours library from microsoft, and I was using the 32bit version (which
I made a custom Static Library that I use in an iOS project. When
We have an app in progress/development using the Office Fluent UI ribbon control library.

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.