Re: Custom iOS framework links fine for Debug Config, but not for Release
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