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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:21:33+00:00 2026-05-27T16:21:33+00:00

I have a Cocoa-based universal dynamic library that also includes more static libraries, from

  • 0

I have a Cocoa-based universal dynamic library that also includes more static libraries, from which I want to export functionality. It seems I cannot do the latest without using an export symbols file, and this is fine by me … somehow. I don’t use anywhere the setting “Symbols Hidden by default” (GCC_SYMBOLS_PRIVATE_EXTERN, -fvisibility=hidden).
The problem appeared when I was trying to export a base class from the dynamic library, more specifically when trying to use its members in derived classes not included in the library and even more specifically in the 64-bit build:
”
Undefined symbols:
“_OBJC_IVAR_$_PluginBase.fConn”
”
I am aware of the 64-bit changes: http://developer.apple.com/library/mac/#releasenotes/Cocoa/RN-ObjectiveC/_index.html, section “64-bit Class and Instance Variable Access Control”

And, of course, everything works if I add _OBJC_IVAR_$_PluginBase.fConn to the export file … but only for the 64-bit build, the 32-bit one doesn’t know about such things:
”
Undefined symbols:
“_OBJC_IVAR_$_PluginBase.fConn”, referenced from:
-exported_symbol[s_list] command line option
“

The only solution seems another workaround: to have two export files. But … I cannot use “Add build setting condition” for EXPORTED_SYMBOLS_FILE setting :-S.

Any ideas (besides using public accessor methods) ?

  • 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-27T16:21:34+00:00Added an answer on May 27, 2026 at 4:21 pm

    You can make architecture-conditional build settings using xcconfig files. It looks like it’s not possible through the GUI. Create a Build Configuration file containing the following:

    EXPORTED_SYMBOLS_FILE[arch=i386]=$(SRCROOT)/SymbolsList32Bit
    EXPORTED_SYMBOLS_FILE[arch=x86_64]=$(SRCROOT)/SymbolsList64Bit
    

    and then in the Project settings, set that file to be the build config for the project and you should be good to go. (Obviously you’ll have to make the paths point to your files, but hopefully you get the idea.)

    It worked for me. (FWIW you can also conditionalize on SDK name, like MY_SETTING[sdk=iphoneos*]=FOO, MY_SETTING[sdk=mac]=BAR, etc.)

    Hope that helps!

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

Sidebar

Related Questions

I have developed a very simple C++ based cocoa touch static library and a
I have created a Cocoa document based picture drawing application. I want that the
Environment: xcode 3.2.1, document-based core-data application. I have a document-based cocoa app which uses
I have a document-based Cocoa app. During runtime, I load an additional nib from
I have a simple document-based Cocoa app that acts as a viewer for .wav
Editing my nib for a document-based Cocoa application, I see that when I have
I just got a book for iPhone programming from the library which is based
I have a Cocoa document-based app that (currently at least) functions as a basic
I have a document-based Cocoa application that has to start up a sub-process before
I have a Cocoa app that uses a WebView to display an HTML interface.

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.