XVimProject / XVim2

Vim key-bindings for Xcode 9
MIT License
2.31k stars 181 forks source link

Failed to run ```make``` for XCode 13 on MacOS Big Sur 11.7 #400

Closed ad184hl closed 1 year ago

ad184hl commented 1 year ago

I did code sign following here. The make command fails.

XCode Version 13.2.1 (13C100) MacOS Big Sur 11.7.1 (20G918) MacBook Pro (Retina, 13-inch, Mid 2014)

Error message (skipped many lines):

...
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13:9: note: while building module 'AppKit' imported from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13:
#import <AppKit/AppKit.h>
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h:10:9: note: while building module 'OpenGL' imported from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h:10:
#import <OpenGL/CGLTypes.h>
        ^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/OpenGL.h"
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/OpenGL.framework/Headers/OpenGL.h:8:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/OpenGL.framework/Headers/OpenGL.h:8:
#include <OpenGL/OpenGLAvailability.h>
         ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/OpenGL.framework/Headers/OpenGLAvailability.h:4:10: error: 'os/availability.h' file not found
#include <os/availability.h>
         ^
/Users/honghaoli/git_folder/XVim2/XVim2/XVim/XVimTextStoring.h:9:9: note: while building module 'Cocoa' imported from /Users/honghaoli/git_folder/XVim2/XVim2/XVim/XVimTextStoring.h:9:
#import <Cocoa/Cocoa.h>
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13:9: note: while building module 'AppKit' imported from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13:
#import <AppKit/AppKit.h>
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGLLayer.h:11:9: note: while building module 'QuartzCore' imported from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGLLayer.h:11:
#import <QuartzCore/CAOpenGLLayer.h>
        ^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/QuartzCore.h"
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:9:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:9:
#include <QuartzCore/CoreImage.h>
         ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreImage.h:1:10: error: could not build module 'CoreImage'
#include <CoreImage/CoreImage.h>
         ^
22 errors generated.
<unknown>:0: error: failed to emit precompiled header '/Users/honghaoli/git_folder/XVim2/build/SharedPrecompiledHeaders/XVim2-Bridging-Header-swift_16191CJH0UO09-clang_2NKFZT2FKA3C6.pch' for bridging header '/Users/honghaoli/git_folder/XVim2/XVim2-Bridging-Header.h'
/Users/honghaoli/git_folder/XVim2/XVim2/XVim/XVimDefs.h:12:9: note: while building module 'Foundation' imported from /Users/honghaoli/git_folder/XVim2/XVim2/XVim/XVimDefs.h:12:
#import <Foundation/Foundation.h>
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
#include <CoreFoundation/CoreFoundation.h>
         ^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/CoreFoundation.h"
        ^
44 errors generated.

** BUILD FAILED **

The following build commands failed:
    CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'XVim2' from project 'XVim2')
    CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'XVim2' from project 'XVim2')
    PrecompileSwiftBridgingHeader normal x86_64 (in target 'XVim2' from project 'XVim2')
(3 failures)
make: *** [release] Error 65
ad184hl commented 1 year ago

Hmm, I reinstalled the xcode, restarted the macbook, did bunch of cleanup, now it is working. Not sure the root cause though.