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?
Asked
Active
Viewed 140 times
0
-
1I added the "xcode12" tag, since this question is specific to the Xcode 12 beta build. (Unfortunately there is no "xcode12beta" tag). – Duncan C Aug 05 '20 at 18:36
-
3Please edit the question to show the complete code where you see this. What you have right now is not enough information. – Doug Stevenson Aug 05 '20 at 18:47
-
Solved: two Pods weren’t working with each other/ weren’t updated for Xcode12 beta – gozzomain Aug 06 '20 at 19:05
-
@gozzomain How did you determine the Pods weren't and weren't updated? Were you able to resolve this by updating the Pods? I am having the same error suddenly. – gohnjanotis Aug 07 '20 at 18:12
-
I remembered the last pod I added and removed that one. Pure luck... – gozzomain Aug 08 '20 at 20:55
1 Answers
2
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

gohnjanotis
- 6,513
- 6
- 37
- 57