uber / ios-snapshot-test-case

Snapshot view unit tests for iOS
MIT License
1.79k stars 211 forks source link

Failed to resolve package with v8.0.0 #168

Closed 417-72KI closed 2 years ago

417-72KI commented 2 years ago
invalidManifestFormat("/Applications/Xcode-13.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATSUI.framework/Modules/module.modulemap:2:19: error: umbrella for module \'ApplicationServices.ATSUI\' already covers this directory
  umbrella header \"ATSUnicode.h\"
                  ^
/Applications/Xcode-13.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATSUI.framework/Modules/module.modulemap:4:10: error: inferred submodules require a module with an umbrella
  module * { export * }
         ^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import \"Headers/CoreImage.h\"
        ^
/Applications/Xcode-13.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h:8:9: note: in file included from /Applications/Xcode-13.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h:8:
#import <CoreImage/CoreImageDefines.h>
        ^
/Applications/Xcode-13.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImageDefines.h:19:10: error: could not build module \'ApplicationServices\'
#include <ApplicationServices/ApplicationServices.h>
         ^
/Applications/Xcode-13.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:10:9: note: while building module \'CoreVideo\' imported from /Applications/Xcode-13.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:10:
#import <CoreVideo/CoreVideo.h>
        ^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import \"Headers/CoreVideo.h\"
        ^
/Applications/Xcode-13.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:29:10: note: in file included from /Applications/Xcode-13.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:29:
#include <CoreVideo/CVPixelBuffer.h>
         ^
/Applications/Xcode-13.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:23:10: note: in file included from /Applications/Xcode-13.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:23:
#include <CoreVideo/CVImageBuffer.h>
         ^
/Applications/Xcode-13.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVImageBuffer.h:28:10: error: could not build module \'ApplicationServices\'
#include <ApplicationServices/ApplicationServices.h>
         ^
<unknown>:0: error: could not build Objective-C module \'CoreImage\'", diagnosticFile: Optional(<AbsolutePath:"path/to/derivedData/SourcePackages/ManifestLoading/ios-snapshot-test-case.dia">)) in https://github.com/uber/ios-snapshot-test-case

I think it is caused by importing CoreImage in Package.swift (https://github.com/uber/ios-snapshot-test-case/pull/167/files#diff-f913940c58e8744a2af1c68b909bb6383e49007e6c5a12fb03104a9006ae677eR4) 🤔

thii commented 2 years ago

@417-72KI Why do you have MacOSX11.3.sdk in Xcode 13.1?