ios - embed .caf into a static library .a is it possible? -


i able play .caf or .mp3 file when place resource inside project. below.

nsstring *mp3path = [[nsbundle mainbundle] pathforresource:@"beep" oftype:@"caf"]; nsurl *mp3url = [nsurl fileurlwithpath:mp3path]; _player = [[avaudioplayer alloc] initwithcontentsofurl:mp3url error:nil]; _player.numberofloops = 8;  [_player play]; 

but reasons, need generate static library .a project , wish embed .caf or .mp3 file inside .a library.

is possible @ all? if is, tell me how? because couldn't find sample doing similar thing online.

it's not usual include resources in static library. included in .bundle file. can generate framework contains static .a library, bundle file , headers.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -