Xcode / Podfile.lock: no such file

I am trying to run an ionic application on xcode. But xcode throws an apple-o-linker linker error. I get this error when I get it after I have executed the following command:

cordova plugin add phonegap-plugin-push --variable SENDER_ID = 5 ****** --save

I need this plugin for push notifications. After researching Google, I founded that I need Cocoapods installed in projects. But after installing Cocoapods and pod install. I get the following error when I run "project.xcworkspace".

diff: /Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

I tried to restore / clean the project again or install pod. But that was not for me.

Can someone help me?

EDIT -> new error

Apple Mach-O Link (ld) Error Group

clang: error: linker command failed with exit code 1 (use -v to invoke the call)

I get this error when I fixed the error with pods.

+14
source share
7 answers

If you are setting up the environment in your project, you need to select the appropriate pods configuration in the configuration.

enter image description here

+7
source

1- Delete the PODS folder from the project folder, and then run pod installand open the project using .xcworkspace .

, Xcode , PODS ( pods ), podfile.lock manifest.lock script.

+6

CocoaPods ( "sodo gem install cocoapods" ) POD , .podfile. "pod install" , .

+6

, , , . .

, FCM. FCM. , cordova, .

:

cordova --cocoapod-support -save

: podinit, . . AppDelegate , : Push-, DEV, .

iOS .

** ** , FCM Google , . GoogleAnalytics, FCM - GoogleAnalytics, FCM .

0

, :

  1. "IOS" (CD IOS)
  2. "pod install"

, -!

0

cocoapods, .

gem install cocoapods --user-install

0

, :

  1. Xcode → File → Workspace Settings.

  2. : → .

  3. , Podfile.

  4. Podfile, Podfile.lock, Pods Folder , .

  5. , <YourProject>.xcodeproj. : open <YourProject>.xcodeproj. (, .xcworkspace)

  6. Pods , :

    • <Pods-YOURPROJECT>.debug.xcconfig
    • <Pods-YOURPROJECT>.release.xcconfig
  7. Pod init Pod .

  8. <YOUR PROJECT>.xcworkspace, : open YOURPROJECT.xcodeproj

  9. CMD + SHIFT + K .

  10. CMD + B, .

0

Source: https://habr.com/ru/post/1016967/


All Articles