Cocoalumberjack: Can't build project on Xcode 12 beta

Created on 7 Aug 2020  路  15Comments  路  Source: CocoaLumberjack/CocoaLumberjack

New Issue Checklist

Issue Info

Info | Value |
-------------------------|-------------------------------------|
Platform Name | iOS
Platform Version | 14.0
CocoaLumberjack Version | 3.6.2
Integration Method | CocoaPods
Xcode Version | Xcode 12 beta 4
Repro rate | 100%

Issue Description and Steps

Xcode 12 beta 4 can't find the module CocoaLumberjack. Please add support of it.

Most helpful comment

@sushichop Thanks for confirming. I was _just_ trying to do the same, but failed at installing CocoaPods (which seems to be related to Big Sur, though).

All 15 comments

For Xcode 12 support, you need to use the master branch.
Also, there is #1161 which might be the same issue.

1161 seems to have been resolved by upgrading the Xcode project version.

@odarynakorolevych Can you verify that you're using an up to date project version and also try master when using Xcode 12?

I am also facing the same issue. Please check

Showing All Messages
~/Logging Manager/LogManager.h:15:9: 'CocoaLumberjack/CocoaLumberjack.h' file not found

Failed to emit precompiled header '~/Xcode/DerivedData/ABC-fgropwrduxzlubdcsarmrrumkcwd/Build/Intermediates.noindex/PrecompiledHeaders/App Stage-Bridging-Header-swift_26K6PXALQ98NL-clang_1EJ4IRL0H586Y.pch' for bridging header '~/Models/App Stage-Bridging-Header.h'


@shikhil-sevenlakes Can you provide a few details? What integration method are you using? What "version" of CocoaLumberjack (you should be using the current master branch).

@shikhil-sevenlakes Can you provide a few details? What integration method are you using? What "version" of CocoaLumberjack (you should be using the current master branch).

Info | Value
-- | --
Platform Name | iOS
Platform Version | 14.0
CocoaLumberjack Version | 3.6.2
Integration Method | CocoaPods
Xcode Version | Xcode 12 beta 5

I am using the master branch -
pod 'CocoaLumberjack/Swift',:git => 'https://github.com/CocoaLumberjack/CocoaLumberjack.git', :branch => 'master'

@ffried - I am still facing the same issue in Xcode 12 beta 6 as well.

I confirmed I was able to build a small sample project below.
So I don't think this is directly related to CocoaLumberjack's issue.
Please check you set SWIFT_VERSION to your Xcode project. Or can you make a small project for repro?

Info | Value
-- | --
Platform Name | iOS
Platform Version | 14.0
CocoaLumberjack Version | master branch
Integration Method | CocoaPods 1.9.3
Xcode Version | Xcode 12 beta 6

Podfile

platform :ios, '10.0'

target 'SampleSwiftApp' do
  use_frameworks!
  pod 'CocoaLumberjack/Swift', :git => 'https://github.com/CocoaLumberjack/CocoaLumberjack.git'
end

ViewController.swift

import UIKit
import CocoaLumberjack

class ViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        dynamicLogLevel = .info
        DDLog.add(DDOSLogger.sharedInstance)
        DDLogVerbose("verbose")
        DDLogDebug("debug")
        DDLogInfo("info")
        DDLogWarn("warn")
        DDLogError("error")
    }
}

@sushichop Thanks for confirming. I was _just_ trying to do the same, but failed at installing CocoaPods (which seems to be related to Big Sur, though).

@ffried I see! My environment is Catalina(mac OS 10.15.6)馃檪

@ffried @sushichop - Thanks. The SWIFT_VERSION of the project is Swift 5.

I am able to build the app for the device but it fails to compile for simulators. It gives header file not found.

Not sure if this is related to Cocoalumberjack or I need to change some project settings.

I am having the same problem too but with SPM. I am on Xcode 12 beta 6

@shikhil-sevenlakes thanks for the link, but in this case it was not enough. Lumber Jack seems to be the only framework I am still having an issue with.

@shikhil-sevenlakes Thanks! It actually solved my issue, turns out I had missed on of my dependent targets.

I'm closing this since as far as I've seen the issues collected here have either been resolved, or aren't on our side.
If anyone still has issues, please open a new issue.

Was this page helpful?
0 / 5 - 0 ratings