沙箱与ionic 3 ios build中的Podfile.lock不同步

Bal*_*Bsk 4 xcode ios cocoapods ionic-framework ionic3

Run custom shell script cp check pods manifest.lock    
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.
Run Code Online (Sandbox Code Playgroud)

我正在使用ionic 3,我想在ios 中构建我的应用程序,但它产生了上面提到的问题。

我试过

pod install,
pod update,
reinstall of cocoapods,
pod cache clean**,**cocoapods deintergrate**,**restart of my project, 
clean and build of my project 
Run Code Online (Sandbox Code Playgroud)

没有任何效果,我在 Xcode 中每次构建项目时从构建阶段删除了libpods.a文件,而且我尝试了来自各个站点的许多解决方案,但直到现在我都没有得到解决方案

Ste*_*cht 9

请尝试以下操作:

  • 退出Xcode
  • 导航到项目文件夹
  • 删除Pods文件夹
  • 删除 Podfile.lock
  • 从命令行调用 pod install
  • 重要:通过.xcworkspace(而不是通过 .xcodeproj)打开项目

如果这不起作用,请进行构建设置检查:

  • 在导航器中转到根节点
  • 在右侧的编辑器中选择“构建设置”
  • 向下滚动:您应该会看到以下条目: 在此处输入图片说明 PODS_PODFILE_DIR_PATH 应该显示您的项目目录(PODFILE 所在的位置,您可以在此处输入${SRCROOT}/.,对于 PODS_ROOT 您可以输入${SRCROOT}/Pods

如有必要,请更正条目