Realm - module file was created by an older version of compiler

后端 未结 3 1976
孤独总比滥情好
孤独总比滥情好 2021-01-20 16:17

I use latest version of xcode and swift 2.2. One of my projects, which I havent open for several month now not building, because of error module file was created by a

3条回答
  •  天命终不由人
    2021-01-20 16:46

    I had this issue when upgrading from Swift 2.2 to Swift 3.0, specifically for Realm Swift cocoapod. I think this solution should work for this general issue. Here is what worked for me:

    (1) Go to derived data folder /Users/(yourUserName)/Library/Developer/Xcode/DerivedData

    (2) Select project with error

    (3) Delete

    (4) Clean project

    (5) Run

    Cleaning initially did not work for me. Hope this helps!

提交回复
热议问题