iOS. Cannot run a project after updating cocos2d library inside this project -
it cannot compile sources , writes:
undefined symbols architecture i386:
"_ctfontmanagerregisterfontsforurl", referenced from: -[cclabelttf getfontname:] in cclabelttf.o ld: symbol(s) not found architecture i386 clang: error: linker command failed exit code 1 (use -v see invocation)
but when replace code in following function in cclabelttf "return nil":
- (nsstring*) getfontname:(nsstring*)fontname { // custom .ttf file ? if ([[fontname lowercasestring] hassuffix:@".ttf"]) { // file, register font font manager nsstring* fontfile = [[ccfileutils sharedfileutils] fullpathforfilename:fontname]; nsurl* fonturl = [nsurl fileurlwithpath:fontfile]; ctfontmanagerregisterfontsforurl((cfurlref)fonturl, kctfontmanagerscopeprocess, null); return [[fontfile lastpathcomponent] stringbydeletingpathextension]; } return fontname; }
then can compile code cannot use labels.
so how solve without creating of new project , copying sources it?
edited
previous version 2.x, have last rc2 version.
i have deleted files of old library, copied files new library project folder , added them project via xcode. xcode can create projects new library files, took them new project. made changes remove warnings.
solved importing coretext.framework
but think create new project because still have troubles identifying of iphone5 screen size
Comments
Post a Comment