Search code examples
swiftfirebasecocoapodsxcode12

Error Method definition for 'uptimeMilliseconds' not found in Swift


The error Method definition for 'uptimeMilliseconds' not found randomly showed up while I was programming with Swift on the newest Xcode Beta (Beta 4). I was working fine and compiling up to this point, but this error randomly occurred.
I'm using Pods and this error showed up in GoogleDataTransport/GDTCORClock at @implementation GDTCORClock.
Has someone experienced the same issue or does someone know what causes this and how to fix it?


Solution

  • I was experiencing this same issue, even when trying to build in the newest non-beta version of Xcode.

    I was able to solve it by doing the following:

    • delete the Pods folder
    • delete the *.xcworkspace file
    • delete the Podfile.lock file
    • run pod install