swift/cocoapods/lumberjack/link issue

I'm an Xcode newb. Goal: Make a swift link library which is also a framework. Add pod file to library. Library (pod file) uses Lumberjack, which I obtain from cocoa pods. Produce framework. Make a test app (iOS) which imports new framework. Call an exported method from the framework.

Podfile includes Lumberjack by specifying pod 'CocoaLumberjack/Swift', which forces it to include some header and code and to compile that.

Problem: My test app is telling me during debug startup that Lumberjack is missing. This is a runtime error.

Can't figure out what to do with Lumberjack. Can't figure out if I need to include that framework in the Pod project, then embed it. Because if I try to do that, the compile of the pod project says it can't find the framework. It says "No such file or directory (in target 'SoundScapeSoundLib' from project 'SoundScapeSoundLib'). I added it to the lib by doing to project settings, General, and then to Frameworks and Libraries, and added "CocoaLumberjack.framework" and it automatically selected "Embed & Sign". The Pods project actually builds fine, and CocoaLumberjack.framework is shown under Pods/Products.

Not sure what is going on here.

Figured it out. When you install the pod file, LJ ends up building to the wrong directory. You need to go into the framework that builds LJ, into the build settings, and set CONFIGURATION_BUILD_DIR to NOT include "CocoaLumberjack" at the end of the path. Yeah, it's that simple.


swift/cocoapods/lumberjack/link issue
 
 
Q