xcode6 - Swift beta 6 - Confusing linker error message -
i'm getting error message linker when building swift program xcode 6 beta 6, targeting ios 8. code compiled , ran correctly beta 5.
undefined symbol architecture x86_64: __tfss26_forcebridgefromobjectivecu__ftpss9anyobject_mq__q_", referenced from: __tfc8raytrace14raytracingplot15drawfocalpointfs0_ft_t_ in raytracingplot.o ld: symbol(s) not found architecture x86_64
here's code in question:
private func drawfocalpoint() { var attributes = dictionary<string, anyobject>() let fstring: string = "f" let distance: cgfloat = focaldistance let centerx = cgrectgetmidx(bounds) let centery = cgrectgetmidy(bounds) let circleradius: cgfloat = 4.0 let focalpointframe = cgrectmake(0, 0, circleradius * 2.0, circleradius * 2.0) var path = uibezierpath(ovalinrect: focalpointframe) let color = uicolor.blackcolor() let currentcontext = uigraphicsgetcurrentcontext() cgcontextsavegstate(currentcontext) let shadowcolor = uicolor(white:0, alpha:0.75).cgcolor cgcontextsetshadowwithcolor(currentcontext, cgsizemake(0, 4), cgfloat(8), shadowcolor) // image f var imagefpath = uibezierpath(cgpath: path.cgpath) let imageftransform = cgaffinetransformmaketranslation((centerx - distance - circleradius), (centery - circleradius)) imagefpath.applytransform(imageftransform) color.set() imagefpath.fill() fstring.drawatpoint(cgpointmake(centerx - distance - circleradius, centery + 5), withattributes:attributes) cgcontextsetshadowwithcolor(currentcontext, cgsizemake(0.0, 0.0), cgfloat(0.0), nil) // clear shadow cgcontextrestoregstate(currentcontext) }
i'd appreciate hint in code error can fix it. thank you.
i got error new version of beta6 release hours after bad 1 got pulled.
i've solved , other illegible errors deleting contents of derived folder. can find folder located going preferences > locations.
the default path is: /users/[your username]/library/developer/xcode/deriveddata
you can hold option
while product menu open in xcode, change clean
clean build folder
... , accomplish same task without having folder-hunt.
Comments
Post a Comment