skip to Main Content

My iOS application has been building fine for several months. And then, suddenly my project builds are now failing with an error "A function declaration without a prototype is deprecated in all versions of C".

enter image description here

What has changed: I moved my project from an external drive to my internal drive

What I have done to attempt to mitigate:

  1. Reinstalled Xcode
  2. Cloned my project from github and rebuilt it

Also, I am no longer able to build from the original directory on my external drive 🤔

Any advice would be greatly appreciated!

2

Answers


  1. Chosen as BEST ANSWER

    I was able to resolve this problem as follows:

    1. cd to the project app folder
    2. change the Podfile entries:
    • pod 'Firebase/Auth' => pod 'Firebase/Auth', '10.7.0'
    • pod 'Firebase/Messaging => pod 'Firebase/Messaging', '10.7.0'
    1. run "pod install --repo-update"

    Then

    1. Quit Xcode.
    2. Delete the project's temp files located at ~/Library/Developer/Xcode/DerivedData
    3. Delete ProjectName.xcworkspace
    4. Delete Podfile.lock file and Pods folder
    5. Run pod install.
    6. Open the newly created ProjectName.xcworkspace file and build.

  2. Thank you @Joel Stevick. Your answer help me but the only step that worked for me is to update specific repository which is GoogleDataTransport. So I have just follow below step and my issue is resolved:

    pod update GoogleDataTransport
    

    I hope this might help anyone.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search