tristanhimmelman / ObjectMapper

Simple JSON Object mapping written in Swift
MIT License
9.14k stars 1.03k forks source link

ObjectMapper causes build error in Xcode 11.4 (11E146) #1089

Open aerialcombat opened 4 years ago

aerialcombat commented 4 years ago

CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'ObjectMapper' from project 'ObjectMapper') cd /Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/SourcePackages/checkouts/ObjectMapper export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name ObjectMapper -Onone -enable-batch-mode -enforce-exclusivity=checked @/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/Build/Intermediates.noindex/ObjectMapper.build/Debug-iphonesimulator/ObjectMapper.build/Objects-normal/x86_64/ObjectMapper.o.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DXcode -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk -target x86_64-apple-ios8.0-simulator -g -module-cache-path /Users/dj/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -index-store-path /Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/Index/DataStore -swift-version 4.2 -I /Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/Build/Products/Debug-iphonesimulator -I /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib -F /Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/Build/Products/Debug-iphonesimulator -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -c -j6 -output-file-map /Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/Build/Intermediates.noindex/ObjectMapper.build/Debug-iphonesimulator/ObjectMapper.build/Objects-normal/x86_64/ObjectMapper-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/Build/Intermediates.noindex/ObjectMapper.build/Debug-iphonesimulator/ObjectMapper.build/Objects-normal/x86_64/ObjectMapper.swiftmodule -Xcc -I/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/Build/Intermediates.noindex/ObjectMapper.build/Debug-iphonesimulator/ObjectMapper.build/swift-overrides.hmap -Xcc -I/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/Build/Products/Debug-iphonesimulator/include -Xcc -I/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/Build/Intermediates.noindex/ObjectMapper.build/Debug-iphonesimulator/ObjectMapper.build/DerivedSources-normal/x86_64 -Xcc -I/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/Build/Intermediates.noindex/ObjectMapper.build/Debug-iphonesimulator/ObjectMapper.build/DerivedSources/x86_64 -Xcc -I/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/Build/Intermediates.noindex/ObjectMapper.build/Debug-iphonesimulator/ObjectMapper.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG=1 -emit-objc-header -emit-objc-header-path /Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/Build/Intermediates.noindex/ObjectMapper.build/Debug-iphonesimulator/ObjectMapper.build/Objects-normal/x86_64/ObjectMapper-Swift.h -working-directory /Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/SourcePackages/checkouts/ObjectMapper

:0: error: filename "CodableTransform.swift" used twice: '/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/SourcePackages/checkouts/ObjectMapper/Sources/ObjectMapper/CodableTransform.swift' and '/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/SourcePackages/checkouts/ObjectMapper/Sources/ObjectMapper/ObjectMapper/CodableTransform.swift' :0: note: filenames are used to distinguish private declarations with the same name :0: error: filename "CustomDateFormatTransform.swift" used twice: '/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/SourcePackages/checkouts/ObjectMapper/Sources/ObjectMapper/CustomDateFormatTransform.swift' and '/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/SourcePackages/checkouts/ObjectMapper/Sources/ObjectMapper/ObjectMapper/CustomDateFormatTransform.swift' :0: note: filenames are used to distinguish private declarations with the same name :0: error: filename "DataTransform.swift" used twice: '/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/SourcePackages/checkouts/ObjectMapper/Sources/ObjectMapper/DataTransform.swift' and '/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/SourcePackages/checkouts/ObjectMapper/Sources/ObjectMapper/ObjectMapper/DataTransform.swift' :0: note: filenames are used to distinguish private declarations with the same name :0: error: filename "DateFormatterTransform.swift" used twice: '/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/SourcePackages/checkouts/ObjectMapper/Sources/ObjectMapper/DateFormatterTransform.swift' and '/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/SourcePackages/checkouts/ObjectMapper/Sources/ObjectMapper/ObjectMapper/DateFormatterTransform.swift' :0: note: filenames are used to distinguish private declarations with the same name :0: error: filename "DateTransform.swift" used twice: '/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/SourcePackages/checkouts/ObjectMapper/Sources/ObjectMapper/DateTransform.swift' and '/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/SourcePackages/checkouts/ObjectMapper/Sources/ObjectMapper/ObjectMapper/DateTransform.swift' :0: note: filenames are used to distinguish private declarations with the same name :0: error: filename "DictionaryTransform.swift" used twice: '/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/SourcePackages/checkouts/ObjectMapper/Sources/ObjectMapper/DictionaryTransform.swift' and '/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/SourcePackages/checkouts/ObjectMapper/Sources/ObjectMapper/ObjectMapper/DictionaryTransform.swift' :0: note: filenames are used to distinguish private declarations with the same name :0: error: filename "EnumOperators.swift" used twice: '/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/SourcePackages/checkouts/ObjectMapper/Sources/ObjectMapper/EnumOperators.swift' and '/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/SourcePackages/checkouts/ObjectMapper/Sources/ObjectMapper/ObjectMapper/EnumOperators.swift' :0: note: filenames are used to distinguish private declarations with the same name :0: error: filename "EnumTransform.swift" used twice: '/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/SourcePackages/checkouts/ObjectMapper/Sources/ObjectMapper/EnumTransform.swift' and '/Users/dj/Library/Developer/Xcode/DerivedData/ObjectMapperTest-adavhmasokixqrapefwoyigfpqqt/SourcePackages/checkouts/ObjectMapper/Sources/ObjectMapper/ObjectMapper/EnumTransform.swift'
connyhald commented 4 years ago

Same here. I've tried deleting Derived Data, clean builds, etc. but nothing helps.

connyhald commented 4 years ago

Duplicate of #1082

russellry commented 4 years ago

Try downgrading to XCode 11.3.1 - I had issues with another library as well, downgrading the XCode version fixed it perfectly.

BanTheRewind commented 4 years ago

recursion There appears to be a shortcut to the "Sources" directory named "ObjectMapper", which causes recursion. In Xcode 11.4, this causes the source files to show up twice. recursion_xcode

xavier-rigau commented 4 years ago

Why still not fixed?

ledkof18 commented 4 years ago

Any update? :/

kwakueshun commented 4 years ago

This seems to be an issue in Xcode 11.4.1 as I still get the same error.

sanojKashyap commented 4 years ago

Facing issue with Xcode 11.5 Mac - Catilina Swift Language Version in Xcode: Swift 5

/Users/SS/Documents/Workspace/XXX/XX/XX/Models/SignIn/SamlAuthRequest.swift:10:8: Module compiled with Swift 5.1.3 cannot be imported by the Swift 5.2.4 compiler: /Users/SS/Documents/Workspace/XXX/XX/Carthage/Build/iOS/ObjectMapper.framework/Modules/ObjectMapper.swiftmodule/x86_64-apple-ios-simulator.swiftmodule

fmarouvo commented 2 years ago

Facing issue with Xcode 11.5 Mac - Catilina Swift Language Version in Xcode: Swift 5

/Users/SS/Documents/Workspace/XXX/XX/XX/Models/SignIn/SamlAuthRequest.swift:10:8: Module compiled with Swift 5.1.3 cannot be imported by the Swift 5.2.4 compiler: /Users/SS/Documents/Workspace/XXX/XX/Carthage/Build/iOS/ObjectMapper.framework/Modules/ObjectMapper.swiftmodule/x86_64-apple-ios-simulator.swiftmodule

same here