Recent iOS project was using ShareKit via "git submodule" command, which added a LOT of items into dependency chart generated by objc_dep utility. Additionally I didn't have any control of those files, just used them as they were given.
To make dependency chart usable again, I added a command line parameter to ignore a subdirectory.
Showing posts with label dependency. Show all posts
Showing posts with label dependency. Show all posts
Thursday, October 18, 2012
Friday, January 6, 2012
Dependency Graph Tool for iOS Projects
One of the tools, which I used to use with Symbian C++ projects, was an automated dependency graph generator. Can't recall the name, had totally forgotten anything like it ever existed. Totally happy in my ignorance. Blissful happy-go-lucky cowboy coding.
Until I found this tool: objc_dep.py at GitHub by nst, which does "Graph the import dependancies in an Objective-C project".
Oh the memories! Oh the horrow, when I checked my current projects...
Until I found this tool: objc_dep.py at GitHub by nst, which does "Graph the import dependancies in an Objective-C project".
Oh the memories! Oh the horrow, when I checked my current projects...
Thursday, June 24, 2010
Another reason for "Undefined symbols referenced from"
Failed to add a static library into my iPhone application. Doing everything I've done earlier, searching for new tips on internet, recreating static library project dozens of times - and still:
Undefined symbols:Finally found out that even though my version of TouchXML links to dynamic libxml2, I need to link libxml2 with application, too! Expected that once would be enough. Now wondering whether it really will be linked twice.
"_xmlDocSetRootElement", referenced from:
+[CXMLNode(CXMLNode_CreationExtensions) documentWithRootElement:] in libTouchXML.a
ld: symbol(s) not found
collect2: ld returned 1 exit status
Unexpected File Type 'wrapper.pb-project' in Frameworks & Libraries build phase
This is a XCode project dependency analysis warning and most likely means your project is missing something you expected to be there. There are similar warning notes for both build and link phases. More info at "Xcode's Plugin Interface".
It means that building or linking something failed, in this case ProtocolBuffers static library. Possible reasons are missing "Linked Libraries" and/or "Direct Dependencies" definitions or that building those failed.
Possible Fix: make sure your target (Info - General) has correct setup. If you're using Apple SDK 4.0 add -ObjC into "Other Linker Flags" and also -all_load to force loading of everything. Make sure you do this for both project and target. More info at Mac OS X Reference Library "Technical Q&A QA1490": Building Objective-C static libraries with categories.
warning: skipping file '/Users/jounimiettunen/svn_iphone/project/trunk/protobuf/ProtocolBuffers.xcodeproj' (unexpected file type 'wrapper.pb-project' in Frameworks & Libraries build phase)
It means that building or linking something failed, in this case ProtocolBuffers static library. Possible reasons are missing "Linked Libraries" and/or "Direct Dependencies" definitions or that building those failed.
Possible Fix: make sure your target (Info - General) has correct setup. If you're using Apple SDK 4.0 add -ObjC into "Other Linker Flags" and also -all_load to force loading of everything. Make sure you do this for both project and target. More info at Mac OS X Reference Library "Technical Q&A QA1490": Building Objective-C static libraries with categories.
Subscribe to:
Comments (Atom)
