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

  • Home
  • SEARCH
  • 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 402131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:05:49+00:00 2026-05-12T17:05:49+00:00

I have a library I made, and now I want to utilize it in

  • 0

I have a library I made, and now I want to utilize it in an application. I’ve believe I’ve properly linked to the library. Here are all the things I’ve done:

  • Set the header search path
  • Set other linker flags to “-ObjC”
  • Added the static library xcode project
  • Made sure the lib.a was listed as a framework target
  • Added the library as a direct dependency

Like I said in the title, I’ve successfully run the app with the static library in the simulator. Once I try testing the app using the device, it crashes the second it has to use a function from the library:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** +[NSDate firstOfCurrentMonth]: unrecognized selector sent to class 0x3841bb44'
2009-10-10 12:45:31.159 Basement[2372:207] Stack:
  • 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-12T17:05:50+00:00Added an answer on May 12, 2026 at 5:05 pm

    This is due to a bug in the current SDK linker. See this post for more information on the problem and possible workarounds. (also see this post.)

    Update:

    Another thing you can try is to remove the static library and include the library’s source files directly in the application’s project. I was facing a similar static library linking issue and that’s what I ended up falling back on to get it to run successfully. If that works (however gross a workaround it may be) then it’s definitely a linker issue.

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

Sidebar

Related Questions

I have several libraries made by myself (a geometry library, a linked list library,
I have a Class Library project which is made in 3.5 framework. Now I
I have an application that I now want to split part of off into
I have a library made in C++/GDI that I am trying to port to
I have a smallish utility library I made that I had created in TFS
i have made a userControl library .. and it contains NetworkStream, StreamReader, FileStream So
i have made my custom Static Library (.a) successfully. i have tested it in
I have made a sample for posting on Facebook using the basic Facebook library
I have a big project compiled into libProject.so-file (shared library), I made some modules
I have a library with an Interface. Public Interface Progress { int ProgressValue{get;set;}, string

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.