> On May 9, 2016, at 2:07 PM, David Hoerl <dho...@mac.com> 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      (Xcode-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to