1. Chromium Embedded Framework
  2. cef
  3. Issues

Issues

Issue #2201 wontfix

branch 3071: build cefclient fails on macOS

Satoshi Kojima
created an issue

When you build cefclient on branch 3071 @ commit 1ebbf3c, this error occurs:

tests/cefclient/browser/browser_window_osr_mac.mm:36:61: error: cannot find protocol declaration for 'NSAccessibility'
    : NSOpenGLView<NSDraggingSource, NSDraggingDestination, NSAccessibility> {

Version of products and OS

CEF 3071 @ commit 1ebbf3c macOS 10.12.5 Xcode 8.3.3

How to fix

Attached patch should fix the problem

--- browser_window_osr_mac.mm.org   2017-06-19 15:35:32.000000000 +0900
+++ browser_window_osr_mac.mm   2017-06-19 15:32:21.000000000 +0900
@@ -19,8 +19,6 @@
 #include "tests/shared/browser/geometry_util.h"
 #include "tests/shared/browser/main_message_loop.h"

-#import <AppKit/NSAccessibility.h>
-
 namespace {

 CefTextInputClientOSRMac* GetInputClientFromContext(
@@ -33,7 +31,7 @@ CefTextInputClientOSRMac* GetInputClient
 }  // namespace

 @interface BrowserOpenGLView
-    : NSOpenGLView<NSDraggingSource, NSDraggingDestination, NSAccessibility> {
+    : NSOpenGLView<NSDraggingSource, NSDraggingDestination> {
  @private
   NSTrackingArea* tracking_area_;
   client::BrowserWindowOsrMac* browser_window_;

Comments (5)

  1. Marshall Greenblatt

    I'm not able to reproduce this problem with cef_binary_3.3071.1640.g1ebbf3c_macosx64 and Xcode 8.3 (8E162) on macOS 10.12.1 (16B2657).

    What cmake command-line are you using? Are you creating a Debug or Release build? Has something changed related to this in Xcode 8.3.3?

  2. Dan Kegel

    I ran into this just now with cef3112, osx 10.10, and Xcode 6.1.1 build version 6A2008a, with commandlinetoolsosx10.10forxcode6.1.1.dmg installed. (The 3112 build was done locally with that toolchain, and only has a few local patches.) The cmake commandline was

    cmake ../cef_binary_3.3112.1656.g4c2dc92_macosx64 -GNinja -DCMAKE_BUILD_TYPE=Release

    Upgrading to xcode 7.2.1 with Command_Line_Tools_OS_X_10.10_for_Xcode_7.2.dmg installed and then rebuilding just cefclient got me past this and on to a different, smaller issue.

  3. Log in to comment