{"issue":{"state":"open","created_at":"2011-11-14T17:32:49Z","updated_at":"2011-11-22T10:11:21Z","comments":6,"user":{"gravatar_id":"38672e5daac35a7a4224b0ce6d08fb9b","id":1194144,"url":"https://api.github.com/users/aedel","login":"aedel","avatar_url":"https://secure.gravatar.com/avatar/38672e5daac35a7a4224b0ce6d08fb9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I'm relatively new to iOS development, and am trying to implement CocoaLumberjack logging.\r\n\r\nI downloaded the latest source from https://github.com/robbiehanson/CocoaLumberjack, have included the required files in my project, made the necessary code changes, and am getting the run-time linker error that follows below.\r\n\r\nThe environment is Xcode 4.2 Build 4C199, with the project Target set to Device=iPad and DeploymentTarget=4.3. The project was initially written using retain/release, so I left the original source as-is, adding the compiler flag \"-fobjc-arc\" for the Lumberjack files I'm using: DDFileLogger.m, DDLog.m and DDTTYLogger.m.\r\n\r\nThe console output is:\r\n\r\n```\r\nGNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Fri Sep 16 06:56:50 UTC 2011)\r\nCopyright 2004 Free Software Foundation, Inc.\r\nGDB is free software, covered by the GNU General Public License, and you are\r\nwelcome to change it and/or distribute copies of it under certain conditions.\r\nType \"show copying\" to see the conditions.\r\nThere is absolutely no warranty for GDB.  Type \"show warranty\" for details.\r\nThis GDB was configured as \"--host=i386-apple-darwin --target=arm-apple-darwin\".tty /dev/ttys001\r\nsharedlibrary apply-load-rules all\r\ntarget remote-mobile /tmp/.XcodeGDBRemote-10996-56\r\nSwitching to remote-macosx protocol\r\nmem 0x1000 0x3fffffff cache\r\nmem 0x40000000 0xffffffff none\r\nmem 0x00000000 0x0fff none\r\n[Switching to process 11779 thread 0x2e03]\r\n[Switching to process 11779 thread 0x2e03]\r\ndyld: lazy symbol binding failed: Symbol not found: _objc_storeStrong\r\n  Referenced from: /var/mobile/Applications/32E4EEB9-765E-4C72-83C8-F5707253AA99/Demo.app/Demo\r\n  Expected in: /usr/lib/libobjc.A.dylib\r\n\r\ndyld: Symbol not found: _objc_storeStrong\r\n  Referenced from: /var/mobile/Applications/32E4EEB9-765E-4C72-83C8-F5707253AA99/Demo.app/Demo\r\n  Expected in: /usr/lib/libobjc.A.dylib\r\n\r\nwarning: Attempting to create USE_BLOCK_IN_FRAME variable with block that isn't in the frame.\r\n(gdb) \r\n```\r\n\r\nMy project initializes the environment as follows, where fileLogger is an instance variable defined in the corresponding AppDelegate.h file:\r\n\r\n```\r\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions\r\n{\r\n    /*\r\n     * Configure the Lumberjack logging framework (we'll use it instead of NSLog)\r\n     */\r\n\r\n    // the TTY logger is the Xcode console\r\n    [DDLog addLogger:[DDTTYLogger sharedInstance]];\r\n\r\n    // we'll also use a file logger\r\n    fileLogger = [[DDFileLogger alloc] init];\r\n    fileLogger.rollingFrequency = 60 * 60 * 24; // 24 hour rolling\r\n    fileLogger.logFileManager.maximumNumberOfLogFiles = 7;\r\n    [DDLog addLogger:fileLogger];\r\n\r\n\r\n    // Override point for customization after application launch.\r\n    DDLogInfo(@\"didFinishLaunchingWithOptions: entered\");\r\n\r\n    // create instance of the view controller\r\n    MainViewController *aViewController = [[MainViewController alloc]\r\n                                           initWithNibName:@\"MainView\" bundle:nil];\r\n    self.mainViewController = aViewController;  // same as: [self setMainViewController:aViewController];\r\n    [aViewController release];\r\n\r\n    // Add the main view controller's view to the window and display.\r\n    self.window.rootViewController = self.mainViewController;\r\n\r\n    [self.window makeKeyAndVisible];\r\n    return YES;\r\n}\r\n```\r\n\r\nHas anyone encountered this problem, and know of a solution or workaround? Is what I'm doing even possible... having mixed ARC and non-ARC files in a project?\r\n","assignee":null,"id":2233554,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":8,"labels":[],"title":"CocoaLumberjack Error: Symbol not found: _objc_storeStrong","closed_at":null,"html_url":"https://github.com/robbiehanson/CocoaLumberjack/issues/8","url":"https://api.github.com/repos/robbiehanson/CocoaLumberjack/issues/8","milestone":null},"action":"created","comment":{"created_at":"2011-11-22T10:11:21Z","updated_at":"2011-11-22T10:11:21Z","user":{"gravatar_id":"26826b55dce2a1b8ee0ddc7293d8b08e","id":304604,"url":"https://api.github.com/users/robbiehanson","login":"robbiehanson","avatar_url":"https://secure.gravatar.com/avatar/26826b55dce2a1b8ee0ddc7293d8b08e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"You're right, this could use a bit of documentation. There are tags... perhaps I can document the min required OS per tag in a wiki. Then you can just grab the latest tag that still fits as per your app requirements.","id":2832575,"url":"https://api.github.com/repos/robbiehanson/CocoaLumberjack/issues/comments/2832575"}}