Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Errors when Upgrading to 5.15.2 or 5.15.1 but not on 5.15.0 #363

Open
juliangsp opened this issue Feb 18, 2022 · 4 comments
Open

Build Errors when Upgrading to 5.15.2 or 5.15.1 but not on 5.15.0 #363

juliangsp opened this issue Feb 18, 2022 · 4 comments

Comments

@juliangsp
Copy link

Step 1: Are you in the right place?

  • ❌ N/A: For general technical questions, post a question on StackOverflow
    with BlinkID and Microblink tags.__

  • ✅ For issues or feature requests related to the code in this repository
    file a Github issue.

  • ❌ N/A: For help troubleshooting your application that does not fall under one
    of the above categories, reach out to the personalized
    Microblink support.

Step 2: Describe your environment

  • Xcode version: 13.2.1
  • BlinkID SDK version: 5.15.2 and 5.15.1
  • What are you trying to scan: N/A

Step 3: Describe the problem

  • What happened? How can we make the problem occur and reproduce?
    After upgrading to 5.15.2 or 5.15.1 (via Cocoapods) I get build many errors on the project (uses Objetive-C and Swift v5 code), where as if I upgrade to 5.15.0 I get no errors.
    Errors are multiple ('too many errors emitted, stopping now' from compiler) appearing on the autogenerated XX-Swift.h file with Ambiguous expansion of macro 'XYZ....' where 'XYZ...' is 'SWIFT_RUNTIME_NAME', 'SWIFT_PROTOCOL', 'SWIFT_EXTENSION', 'SWIFT_PASTE', 'OBJC_DESIGNATED_INITIALIZER', etc.

Step 4: Relevant code

N/A

@mparadina
Copy link
Contributor

Hi @juliangsp

Can you please tell me which version of platform is set in your Podfile and the Deployment target in your Xcode project?

Also to ask, would you mind sharing the exact exceptions you're receiving the 5.15.1 and 5.15.2 versions?

@juliangsp
Copy link
Author

Hi @mparadina

The platform directive in my Podfile is:

platform :ios, '13.0'
inhibit_all_warnings!

we also use this code in the Podfile to configure the embedded Pod project added to the workspace:

post_install do | installer | require 'fileutils'

    # Disable Code Coverage for Pods projects
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['CLANG_ENABLE_CODE_COVERAGE'] = 'NO'
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0' # Same version as iOS platform (see top of file)
            config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"

            # Required for Veracode Static Analysis
            if target.name == 'Pods-DW' && config.name == 'Debug'
                config.build_settings['ENABLE_BITCODE'] = 'YES'
            end
        end
    end
end

As for the compile errors here's what I get only for main.m, the rest of the files have pretty similar errors:

CompileC DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/Objects-normal/arm64/main.o DW/main.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'DW' from project 'DW')
    cd /my/redacted/path/to/project/root
    export LANG\=en_US.US-ASCII
    /Applications/Xcode-13.2.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-ios13.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path\=DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Werror -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG\=1 -DCOCOAPODS\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=0 -isysroot /Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -fembed-bitcode-marker -index-store-path DerivedData/DW/Index/DataStore -iquote DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DW-generated-files.hmap -IDerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DW-own-target-headers.hmap -IDerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DW-all-target-headers.hmap -iquote DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DW-project-headers.hmap -IDerivedData/DW/Build/Products/Debug-iphoneos/include -IPods/Headers/Public -IPods/Headers/Public/AFNetworking -IPods/Headers/Public/CocoaLumberjack -IPods/Headers/Public/Cuckoo -IPods/Headers/Public/Expecta -IPods/Headers/Public/Expecta+OCMock -IPods/Headers/Public/FLEX -IPods/Headers/Public/GSCXScanner -IPods/Headers/Public/GTXiLib -IPods/Headers/Public/OCMock -IPods/Headers/Public/RNCryptor-objc -IPods/Headers/Public/RegExCategories -IPods/Headers/Public/SCLAlertView-Objective-C -IPods/Headers/Public/SVProgressHUD -IPods/Headers/Public/Specta -IPods/Headers/Public/WebViewJavascriptBridge -IPods/Headers/Public/mailgun -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -ILibraries -ILibraries/XMLReader -ILibraries/ZebraLinkOS -ILibraries/cmbSDK.xcframework -ILibraries/ZebraLinkOS/headers -ILibraries/cmbSDK.xcframework/ios-arm64_armv7 -ILibraries/cmbSDK.xcframework/ios-x86_64-simulator -I/Applications/Xcode-13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/libxml2 -IDerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources-normal/arm64 -IDerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/arm64 -IDerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources -Wall -Wextra -Wno-unused-parameter -FDerivedData/DW/Build/Products/Debug-iphoneos -FPods/AppDynamicsAgent/iOSAgent-2021.12.1 -FPods/PPBlinkID -FPods/BarcodeScanner -FDerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID -FDerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/BarcodeScanner -F/my/redacted/path/to/project/root -FLibraries -fmodule-map-file\=DerivedData/DW/Build/Products/Debug-iphoneos/CocoaLumberjack/CocoaLumberjack.modulemap -isystem Pods/Headers/Public -isystem Pods/Headers/Public/AFNetworking -isystem Pods/Headers/Public/FLEX -isystem Pods/Headers/Public/RNCryptor-objc -isystem Pods/Headers/Public/RegExCategories -isystem Pods/Headers/Public/SCLAlertView-Objective-C -isystem Pods/Headers/Public/SVProgressHUD -isystem Pods/Headers/Public/WebViewJavascriptBridge -isystem Pods/Headers/Public/mailgun -iframework Pods/AppDynamicsAgent/iOSAgent-2021.12.1 -iframework Pods/PPBlinkID -iframework DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID -iframework Pods/BarcodeScanner -iframework DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/BarcodeScanner -include DW/DW-prefix.pch -MMD -MT dependencies -MF DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/Objects-normal/arm64/main.d --serialize-diagnostics DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/Objects-normal/arm64/main.dia -c DW/main.m -o DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/Objects-normal/arm64/main.o

In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:218:1: error: ambiguous expansion of macro 'SWIFT_CLASS' [-Werror,-Wambiguous-macro]
SWIFT_CLASS("_TtC2DW11AudioHelper")
^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:113:9: note: expanding this definition of 'SWIFT_CLASS'
#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME (SWIFT_NAME) __attribute__ ((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:113:11: note: other definition of 'SWIFT_CLASS'
#  define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
          ^
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:218:1: error: ambiguous expansion of macro 'SWIFT_RUNTIME_NAME' [-Werror,-Wambiguous-macro]
SWIFT_CLASS("_TtC2DW11AudioHelper")
^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:113:33: note: expanded from macro 'SWIFT_CLASS'
#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME (SWIFT_NAME) __attribute__ ((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
                                ^
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:68:9: note: expanding this definition of 'SWIFT_RUNTIME_NAME'
#define SWIFT_RUNTIME_NAME(X) __attribute__ ((objc_runtime_name (X)))
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:68:10: note: other definition of 'SWIFT_RUNTIME_NAME'
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
         ^
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:220:30: error: ambiguous expansion of macro 'OBJC_DESIGNATED_INITIALIZER' [-Werror,-Wambiguous-macro]
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
                             ^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:141:9: note: expanding this definition of 'OBJC_DESIGNATED_INITIALIZER'
#define OBJC_DESIGNATED_INITIALIZER __attribute__ ((objc_designated_initializer))
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:141:11: note: other definition of 'OBJC_DESIGNATED_INITIALIZER'
#  define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
          ^
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:228:1: error: ambiguous expansion of macro 'SWIFT_PROTOCOL' [-Werror,-Wambiguous-macro]
SWIFT_PROTOCOL("_TtP2DW23BarcodeScanningProtocol_")
^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:131:9: note: expanding this definition of 'SWIFT_PROTOCOL'
#define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME (SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:131:10: note: other definition of 'SWIFT_PROTOCOL'
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
         ^
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:228:1: error: ambiguous expansion of macro 'SWIFT_RUNTIME_NAME' [-Werror,-Wambiguous-macro]
SWIFT_PROTOCOL("_TtP2DW23BarcodeScanningProtocol_")
^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:131:36: note: expanded from macro 'SWIFT_PROTOCOL'
#define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME (SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
                                   ^
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:68:9: note: expanding this definition of 'SWIFT_RUNTIME_NAME'
#define SWIFT_RUNTIME_NAME(X) __attribute__ ((objc_runtime_name (X)))
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:68:10: note: other definition of 'SWIFT_RUNTIME_NAME'
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
         ^
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:239:1: error: ambiguous expansion of macro 'SWIFT_PROTOCOL' [-Werror,-Wambiguous-macro]
SWIFT_PROTOCOL("_TtP2DW26ContinuousScanningProtocol_")
^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:131:9: note: expanding this definition of 'SWIFT_PROTOCOL'
#define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME (SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:131:10: note: other definition of 'SWIFT_PROTOCOL'
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
         ^
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:239:1: error: ambiguous expansion of macro 'SWIFT_RUNTIME_NAME' [-Werror,-Wambiguous-macro]
SWIFT_PROTOCOL("_TtP2DW26ContinuousScanningProtocol_")
^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:131:36: note: expanded from macro 'SWIFT_PROTOCOL'
#define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME (SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
                                   ^
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:68:9: note: expanding this definition of 'SWIFT_RUNTIME_NAME'
#define SWIFT_RUNTIME_NAME(X) __attribute__ ((objc_runtime_name (X)))
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:68:10: note: other definition of 'SWIFT_RUNTIME_NAME'
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
         ^
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:253:1: error: ambiguous expansion of macro 'SWIFT_CLASS' [-Werror,-Wambiguous-macro]
SWIFT_CLASS("_TtC2DW25ScanOverlayViewController")
^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:113:9: note: expanding this definition of 'SWIFT_CLASS'
#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME (SWIFT_NAME) __attribute__ ((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:113:11: note: other definition of 'SWIFT_CLASS'
#  define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
          ^
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:253:1: error: ambiguous expansion of macro 'SWIFT_RUNTIME_NAME' [-Werror,-Wambiguous-macro]
SWIFT_CLASS("_TtC2DW25ScanOverlayViewController")
^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:113:33: note: expanded from macro 'SWIFT_CLASS'
#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME (SWIFT_NAME) __attribute__ ((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
                                ^
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:68:9: note: expanding this definition of 'SWIFT_RUNTIME_NAME'
#define SWIFT_RUNTIME_NAME(X) __attribute__ ((objc_runtime_name (X)))
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:68:10: note: other definition of 'SWIFT_RUNTIME_NAME'
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
         ^
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:258:120: error: ambiguous expansion of macro 'OBJC_DESIGNATED_INITIALIZER' [-Werror,-Wambiguous-macro]
- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER;
                                                                                                                       ^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:141:9: note: expanding this definition of 'OBJC_DESIGNATED_INITIALIZER'
#define OBJC_DESIGNATED_INITIALIZER __attribute__ ((objc_designated_initializer))
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:141:11: note: other definition of 'OBJC_DESIGNATED_INITIALIZER'
#  define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
          ^
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:259:66: error: ambiguous expansion of macro 'OBJC_DESIGNATED_INITIALIZER' [-Werror,-Wambiguous-macro]
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
                                                                 ^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:141:9: note: expanding this definition of 'OBJC_DESIGNATED_INITIALIZER'
#define OBJC_DESIGNATED_INITIALIZER __attribute__ ((objc_designated_initializer))
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:141:11: note: other definition of 'OBJC_DESIGNATED_INITIALIZER'
#  define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
          ^
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:263:1: error: ambiguous expansion of macro 'SWIFT_CLASS' [-Werror,-Wambiguous-macro]
SWIFT_CLASS("_TtC2DW28BarcodeScannerViewController")
^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:113:9: note: expanding this definition of 'SWIFT_CLASS'
#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME (SWIFT_NAME) __attribute__ ((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:113:11: note: other definition of 'SWIFT_CLASS'
#  define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
          ^
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:263:1: error: ambiguous expansion of macro 'SWIFT_RUNTIME_NAME' [-Werror,-Wambiguous-macro]
SWIFT_CLASS("_TtC2DW28BarcodeScannerViewController")
^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:113:33: note: expanded from macro 'SWIFT_CLASS'
#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME (SWIFT_NAME) __attribute__ ((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
                                ^
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:68:9: note: expanding this definition of 'SWIFT_RUNTIME_NAME'
#define SWIFT_RUNTIME_NAME(X) __attribute__ ((objc_runtime_name (X)))
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:68:10: note: other definition of 'SWIFT_RUNTIME_NAME'
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
         ^
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:282:120: error: ambiguous expansion of macro 'OBJC_DESIGNATED_INITIALIZER' [-Werror,-Wambiguous-macro]
- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER;
                                                                                                                       ^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:141:9: note: expanding this definition of 'OBJC_DESIGNATED_INITIALIZER'
#define OBJC_DESIGNATED_INITIALIZER __attribute__ ((objc_designated_initializer))
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:141:11: note: other definition of 'OBJC_DESIGNATED_INITIALIZER'
#  define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
          ^
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:283:66: error: ambiguous expansion of macro 'OBJC_DESIGNATED_INITIALIZER' [-Werror,-Wambiguous-macro]
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
                                                                 ^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:141:9: note: expanding this definition of 'OBJC_DESIGNATED_INITIALIZER'
#define OBJC_DESIGNATED_INITIALIZER __attribute__ ((objc_designated_initializer))
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:141:11: note: other definition of 'OBJC_DESIGNATED_INITIALIZER'
#  define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
          ^
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:290:42: error: ambiguous expansion of macro 'SWIFT_EXTENSION' [-Werror,-Wambiguous-macro]
@interface BarcodeScannerViewController (SWIFT_EXTENSION(DW)) <AVCaptureVideoDataOutputSampleBufferDelegate>
                                         ^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:136:9: note: expanding this definition of 'SWIFT_EXTENSION'
#define SWIFT_EXTENSION(M) SWIFT_PASTE (M##_Swift_, __LINE__)
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:136:10: note: other definition of 'SWIFT_EXTENSION'
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
         ^
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:290:42: error: ambiguous expansion of macro 'SWIFT_PASTE' [-Werror,-Wambiguous-macro]
@interface BarcodeScannerViewController (SWIFT_EXTENSION(DW)) <AVCaptureVideoDataOutputSampleBufferDelegate>
                                         ^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:136:28: note: expanded from macro 'SWIFT_EXTENSION'
#define SWIFT_EXTENSION(M) SWIFT_PASTE (M##_Swift_, __LINE__)
                           ^
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:54:9: note: expanding this definition of 'SWIFT_PASTE'
#define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER (x, y)
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:54:10: note: other definition of 'SWIFT_PASTE'
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
         ^
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:298:1: error: ambiguous expansion of macro 'SWIFT_CLASS' [-Werror,-Wambiguous-macro]
SWIFT_CLASS("_TtC2DW30FeedbackComposerViewController")
^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:113:9: note: expanding this definition of 'SWIFT_CLASS'
#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME (SWIFT_NAME) __attribute__ ((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:113:11: note: other definition of 'SWIFT_CLASS'
#  define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
          ^
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:298:1: error: ambiguous expansion of macro 'SWIFT_RUNTIME_NAME' [-Werror,-Wambiguous-macro]
SWIFT_CLASS("_TtC2DW30FeedbackComposerViewController")
^
In module 'Microblink' imported from DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:194:
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:113:33: note: expanded from macro 'SWIFT_CLASS'
#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME (SWIFT_NAME) __attribute__ ((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
                                ^
DerivedData/DW/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/PPBlinkID/Microblink.framework/Headers/Microblink-Swift.h:68:9: note: expanding this definition of 'SWIFT_RUNTIME_NAME'
#define SWIFT_RUNTIME_NAME(X) __attribute__ ((objc_runtime_name (X)))
        ^
In file included from <built-in>:1:
In file included from DW/DW-prefix.pch:30:
DerivedData/DW/Build/Intermediates.noindex/DW.build/Debug-iphoneos/DW.build/DerivedSources/DW-Swift.h:68:10: note: other definition of 'SWIFT_RUNTIME_NAME'
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
         ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

Note errors:
error: ambiguous expansion of macro

and at the end:

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

Before building I make sure to delete DerivedData/ folder and to run Clean Build Folder.

@juliangsp
Copy link
Author

Also I noticed from the error there's a reference to:
In file included from DW/DW-prefix.pch:30:

which in that precompiled headers file DW-prefix.pch for line 30 contains the import of the auto-generated Swift header file:
#import "DW-Swift.h"

@juliangsp
Copy link
Author

Hi @mparadina, do you have any insights on this? I'm have a paid license key, should I report this through support too? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants