Search code examples
iosswiftgitgithubcocoapods

There is a problem with commiting my app to GitHub after updating pods


I ran pod update on my project then tried to commit the app on my Mac using Github app. I got this error.

error: 'Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h' is beyond a symbolic link
fatal: Unable to process path Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h

AI recommended I don't check Pods directory to source control. However, I see this link in my .gitignore which says keep it checked in. https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control

How do I fix this?


Solution

  • Try:

    git add .

    Before the commit.

    Check out this reference: Git file is beyond a symbolic link