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
Post a Comment