Undefined symbols when linking app for simulator (i386)

500 views
Skip to first unread message

Brian Hardy

unread,
Mar 4, 2013, 4:53:49 PM3/4/13
to frank-...@googlegroups.com
I just updated frank-cucumber (the gem) and applied this patch:


to get "frank update" to work.

After that, I get errors trying to "frank build" my app like this:

Undefined symbols for architecture i386:
  "_DDExtractFileNameWithoutExtension", referenced from:
      -[HTTPConnection replyToHTTPRequest] in libCocoaHTTPServer.a(HTTPConnection.o)
      -[HTTPConnection filePathForURI:allowDirectory:] in libCocoaHTTPServer.a(HTTPConnection.o)
      -[HTTPConnection socket:didReadData:withTag:] in libCocoaHTTPServer.a(HTTPConnection.o)
      ___43-[HTTPConnection responseHasAvailableData:]_block_invoke_0 in libCocoaHTTPServer.a(HTTPConnection.o)
      ___35-[HTTPConnection responseDidAbort:]_block_invoke_0 in libCocoaHTTPServer.a(HTTPConnection.o)
      -[HTTPServer setDocumentRoot:] in libCocoaHTTPServer.a(HTTPServer.o)
      ___20-[HTTPServer start:]_block_invoke_0 in libCocoaHTTPServer.a(HTTPServer.o)
      ...
  "_OBJC_CLASS_$_GCDAsyncSocket", referenced from:
      objc-class-ref in libCocoaHTTPServer.a(HTTPConnection.o)
      objc-class-ref in libCocoaHTTPServer.a(HTTPServer.o)

At first guess, it looks like there is something missing from the i386 segment of the libCocoaHTTPServer.a library that frank is installing.

Anyone have any ideas what's going on here?

Thanks
/brian

Brian Hardy

unread,
Mar 4, 2013, 5:15:35 PM3/4/13
to frank-...@googlegroups.com
Found the cause.

frankify.xcconfig had outdated FRANK_LDFLAGS set; I appended " -lCocoaLumberjack -lCocoaAsyncSocket" and that particular hump is now surmounted.

developer...@gmail.com

unread,
Aug 1, 2013, 2:24:56 AM8/1/13
to frank-...@googlegroups.com
Please suggest me what to do now-
When i'm compiling EmployeeAdmin Frankified  in xcode i'm getting errors given below---

ld: warning: directory not found for option '-L"/Users/sirishdubey/Automation/Frank/example/EmployeeAdmin/Shared/lib/PureMVC"'

Undefined symbols for architecture i386:

  "_DDExtractFileNameWithoutExtension", referenced from:

      -[HTTPConnection replyToHTTPRequest] in libCocoaHTTPServer.a(HTTPConnection.o)

      -[HTTPConnection filePathForURI:allowDirectory:] in libCocoaHTTPServer.a(HTTPConnection.o)

      -[HTTPConnection socket:didReadData:withTag:] in libCocoaHTTPServer.a(HTTPConnection.o)

      ___43-[HTTPConnection responseHasAvailableData:]_block_invoke in libCocoaHTTPServer.a(HTTPConnection.o)

      ___35-[HTTPConnection responseDidAbort:]_block_invoke in libCocoaHTTPServer.a(HTTPConnection.o)

      -[HTTPServer setDocumentRoot:] in libCocoaHTTPServer.a(HTTPServer.o)

      ___20-[HTTPServer start:]_block_invoke in libCocoaHTTPServer.a(HTTPServer.o)

      ...

  "_OBJC_CLASS_$_DDLog", referenced from:

      objc-class-ref in libCocoaHTTPServer.a(HTTPConnection.o)

      objc-class-ref in libCocoaHTTPServer.a(HTTPServer.o)

      objc-class-ref in libCocoaHTTPServer.a(MultipartFormDataParser.o)

      objc-class-ref in libCocoaHTTPServer.a(MultipartMessageHeader.o)

      objc-class-ref in libCocoaHTTPServer.a(MultipartMessageHeaderField.o)

      objc-class-ref in libCocoaHTTPServer.a(HTTPAsyncFileResponse.o)

      objc-class-ref in libCocoaHTTPServer.a(HTTPFileResponse.o)

      ...

  "_OBJC_CLASS_$_DDTTYLogger", referenced from:

      objc-class-ref in libFrank.a(FrankLoader.o)

  "_OBJC_CLASS_$_GCDAsyncSocket", referenced from:

      objc-class-ref in libCocoaHTTPServer.a(HTTPConnection.o)

      objc-class-ref in libCocoaHTTPServer.a(HTTPServer.o)

ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Reply all
Reply to author
Forward
0 new messages