λ³Έλ¬Έ λ°”λ‘œκ°€κΈ°

🍎 iOS/Error Handling

[Error, Xcode] Core data μ‚¬μš© μ‹œ λ°œμƒν•˜λŠ” Multiple commands produce ERROR 해결방법

[🌱 μ—λŸ¬ λ‚΄μš©]

Multiple commands produce '/Users/μ‚¬μš©μž/Library/Developer/Xcode/DerivedData/ν”„λ‘œμ νŠΈμ΄λ¦„-dpjozrsterzuxkbuxcxfrwavkybr/Build/Intermediates.noindex/ν”„λ‘œμ νŠΈμ΄λ¦„.build/Debug-iphonesimulator/ν”„λ‘œμ νŠΈμ΄λ¦„.build/Objects-normal/x86_64/Subject+CoreDataProperties.o'


[🌱 원인]

Core Data μ‚¬μš© μ‹œ

entity의 Codegen μ˜΅μ…˜ 쀑

Class Definition μ˜΅μ…˜μ€ Core Data에 μ˜ν•΄ μ½”λ“œ(.CoreDataProperties, .CoreDataClass)κ°€ μƒμ„±λ˜μ§€λ§Œ λͺ©λ‘μ— λ‚˜νƒ€λ‚˜μ§€ μ•ŠλŠ”λ‹€.

근데 이미 κ°œλ°œμžκ°€ λ§Œλ“€μ–΄ 놓은 경우(Create NSManagerObject Subclass...) μ€‘λ³΅λ˜μ–΄ λ°œμƒν•œ μ—λŸ¬!!

 

λ”°λΌμ„œ, νŒŒμΌμ„ μƒμ„±ν•˜μ§€ μ•ŠλŠ” Manual/None μ˜΅μ…˜μœΌλ‘œ λ³€κ²½ν•΄μ€˜μ•Ό ν•œλ‹€.


[🌱 해결법]

ν•΄λ‹Ή data model νŒŒμΌμ— ν•΄λ‹Ή Entity 클릭 ν›„ μΈμŠ€νŽ™ν„° μ„€μ • λ³€κ²½

Class > Codegen > Manual/None 선택

 

같은 μ—λŸ¬:

https://stackoverflow.com/questions/45566445/object-is-ambiguous-for-type-lookup-in-this-context-in-xcode-9

 

'Object' is ambiguous for type lookup in this context in Xcode 9

I want to update my app for iOS 11, and have this issue. This is my current code: protocol DataSourceDelegate: class { associatedtype Object func cellIdentifierForObject(object: Object) -...

stackoverflow.com

 

728x90
λ°˜μ‘ν˜•