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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:38:14+00:00 2026-06-07T01:38:14+00:00

I created a new project of type Static Linked Library. I have moved the

  • 0

I created a new project of type Static Linked Library.

I have moved the code (previously working in the app) to the library leaving all the xib files in the app.

I have changed the export directory and added the library file from the derived data folder so it gets the compiled version and links to it.

I have added the library to the bundle and have verified it is in the app using iPhone Explorer

I have verified that the xib file recognized the new view type by removing and selecting the custom view type in the custom class field of the identity inspector.

I have changed all of the #import commands to reflect the <> VS “” change and have gotten the app to compile.

however none of the methods of my custom class can be executed. and an NSLog reports that the class is its base counterpart as opposed to the custom derived class.

I am at a loss and have spend a long time converting all the code I have to work in a library. I am hoping someone can help with this.

  • 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-06-07T01:38:17+00:00Added an answer on June 7, 2026 at 1:38 am

    On this issue, it turns out that Objective C’s compiler does not load the categories and custom classes in the libraries by default. There are 2 ways to overcome this.

    And here are your options.

    1. Create an Activation type method on the category that will be called to “Activate” that Class or Category. This will need to be done before the application loads any nib files. And seems like a bit of a pain in the butt. This was however how I originally overcame this issue.

    2. Add linker flags that will tell objective C to load all libraries and attach any and all Categories and Classes within the libraries before executing the application. (this will need to be done, on top of #import(ing) the correct files from their correct locations. I will provide a graphic below. and provide the flags for search purposes

    enter image description here

    -ObjC is the first one I added, but -all_load really did the trick.

    I hope that others can benefit from this experience.

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

Sidebar

Related Questions

i have one doubt,i have created new project in eclipse with android 2.3.1 and
I created a new project with the following code segment: char* strange = (Strange??);
I have just created a new project with a many-to-many relation (User-Group) and the
I have just created a new project in VS2010 using the Visual c# >
Using this guide I have created a static library (let's call it AppCore )
I have created a new class of type NSObject, which created two files --
i'm using eclipse platform and window builder pro within. I've already created new project
I created a new project, Windows Phone 7.0 Since i wanted the DockPanel, i
I created a new project in Eclipse called Lottery. The first thing that happened
I've created a new project in VS2008, and added a .MDF file to the

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.