• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom iOS framework links fine for Debug Config, but not for Release
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom iOS framework links fine for Debug Config, but not for Release


  • Subject: Re: Custom iOS framework links fine for Debug Config, but not for Release
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 09 May 2016 17:11:00 -0700


On May 9, 2016, at 2:07 PM, David Hoerl <email@hidden> wrote:

But now I'm totally mystified why I cannot get my app to link in Release - it works just fine with Debug.

The release error is:

Undefined symbols for architecture arm64:
 "_OBJC_CLASS_$_SBSoundEffects", referenced from:

The release version of the framework isn’t exporting any of its symbols, probably. A debug build exports all symbols by default, but IIRC a release one doesn’t. I use an exported-symbols (.exp) file to tell the linker which symbols to export — you configure that with the “Exported Symbols File” option in the Linker build settings. The .exp file is just a list of symbols, one per line; for obscure reasons function and global variable names have to be prefixed with a “_”. For an Obj-C class use the name “.objc_class_name_SBSoundEffects”.

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • [SOLVED] Custom iOS framework links fine for Debug Config, but not for Release
      • From: David Hoerl <email@hidden>
    • Re: Custom iOS framework links fine for Debug Config, but not for Release
      • From: David Hoerl <email@hidden>
References: 
 >Custom iOS framework links fine for Debug Config, but not for Release (From: David Hoerl <email@hidden>)

  • Prev by Date: Re: Custom iOS framework links fine for Debug Config, but not for Release
  • Next by Date: Re: A file called ~/Library/Caches/com.dt.Xcode
  • Previous by thread: Re: Custom iOS framework links fine for Debug Config, but not for Release
  • Next by thread: Re: Custom iOS framework links fine for Debug Config, but not for Release
  • Index(es):
    • Date
    • Thread