NSClassFromString returns NULL

Discussion in 'iOS Development' started by sebi_m, Mar 14, 2008.

  1. sebi_m

    sebi_m New Member

    Joined:
    Feb 4, 2008
    Messages:
    7
    Likes Received:
    0
    hello all,

    i want to use some xml code on the iphone and i have to use the
    NSClassFromString(@"NSXMLDocument")
    syntax, because otherwise the arm linker refuses to do it's work. unfortunately the NSClassFromString() method returns NULL. there are a lot of references on the net where people do it this way and it seems to work for them. is there anything else i have to do?

    thanks and regards,
    sebastian
  2. sebi_m

    sebi_m New Member

    Joined:
    Feb 4, 2008
    Messages:
    7
    Likes Received:
    0
    LDFLAGS -framework xxx

    dang! problem solved. i omitted some framework in the linker options, i don't know exactly which one, but i just added a bunch of them and now it works. if someone's interested i will try to find out. no time now...

    thanks + regards,
    sebastian
  3. GameBit

    GameBit New Member

    Joined:
    Mar 23, 2008
    Messages:
    1
    Likes Received:
    0
    Im interested

    Please Register or Log in to view images

Share This Page