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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:19:55+00:00 2026-05-15T19:19:55+00:00

I have a static library built with 3.1.3. I’m including it into an application,

  • 0

I have a static library built with 3.1.3. I’m including it into an application, which I’m building with 3.2/4.0b2.

The static library contains a UIViewController subclass, which in it’s -init calls [super initWithNibName:nil bundle:nil].

This method in turn calls _doCommonSetup, which corrupts one of the subclass’s ivars:

0x003a68e9  <+0014>  pop    %ebx
0x003a68ea  <+0015>  mov    0x8(%ebp),%esi
0x003a68ed  <+0018>  movl   $0x1,0x8(%esp)
0x003a68f5  <+0026>  mov    0x1d98327(%ebx),%eax
0x003a68fb  <+0032>  mov    %eax,0x4(%esp)
0x003a68ff  <+0036>  mov    %esi,(%esp)
0x003a6902  <+0039>  call   0x20e5f52 <dyld_stub_objc_msgSend>
0x003a6907  <+0044>  movl   $0x44898000,0x70(%esi)  <- corrupting subclass's ivar (setting it to 0x4489..)

I can use the static library fine with applications built with 3.0 or 3.1.3. But 3.2 and 4.0 cause problems.

Is this supposed to work, or can the static library be used only within apps that are build with same or older version of the SDK it was built with?

  • 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-15T19:19:56+00:00Added an answer on May 15, 2026 at 7:19 pm

    This was because 4.0 is using the modern runtime even on the simulator, while older versions were not. Compiled libraries are not compatible.

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

Sidebar

Related Questions

I have refactored some UIView sub-classes into a static library. However, when using Interface
I have built a static library in my home directory and there is also
In my C++ application I have a static library (libCOMMON.a) that links to boost
I have a static library project with a UnitTest target using the built-in SenTestingKit
I have an xcdatamodel with a set of entities built in a static library.
I have a static library that I have built with MinGW, I am trying
I have a shared library project that is built from 4 static libraries (
From this tutorial . see i have one pre-built static library named as stackoverflow.a
I have a static library (let's call it S) that uses a category (NSData+Base64
I have created a static library following this link . But I am facing

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.