xcode 沙箱与ionic 3 ios build中的Podfile.lock不同步
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/53201957/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
The sandbox is not in sync with the Podfile.lock in ionic 3 ios build
提问by Balakrishnan Bsk
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.
I'm using ionic 3and I want to build my application in iosbut it creates an issue mentioned above.
我正在使用ionic 3,我想在ios 中构建我的应用程序,但它产生了上面提到的问题。
I tried
我试过
pod install,
pod update,
reinstall of cocoapods,
pod cache clean**,**cocoapods deintergrate**,**restart of my project,
clean and build of my project
Nothing worked and I removed libpods.afiles from build phase in every build of my project in Xcode, and also I tried many solutions from various sites but till now i didn't get the solution
没有任何效果,我在 Xcode 的每个项目构建阶段从构建阶段删除了libpods.a文件,而且我尝试了来自各个站点的许多解决方案,但直到现在我还没有得到解决方案
回答by Stephan Schlecht
Try the following:
请尝试以下操作:
- quit Xcode
- navigate to project folder
- delete
Pods
folder - delete
Podfile.lock
- call from command line
pod install
- important: open the the project via
.xcworkspace
(and not via .xcodeproj)
- 退出 Xcode
- 导航到项目文件夹
- 删除
Pods
文件夹 - 删除
Podfile.lock
- 从命令行调用
pod install
- 重要:通过
.xcworkspace
(而不是通过 .xcodeproj)打开项目
If that doesn't work, make a build settings checks:
如果这不起作用,请进行构建设置检查:
- in Navigator go to the root node
- in the editor on the right choose 'Build Settings'
- scroll down: there you should see the following entries:
PODS_PODFILE_DIR_PATH should show your project directory (where PODFILE resides, here you can enter
${SRCROOT}/.
, and for PODS_ROOT you can enter${SRCROOT}/Pods
)
- 在导航器中转到根节点
- 在右侧的编辑器中选择“构建设置”
- 向下滚动:在那里您应该会看到以下条目:
PODS_PODFILE_DIR_PATH 应该显示您的项目目录(PODFILE 所在的位置,您可以在此处输入
${SRCROOT}/.
,对于 PODS_ROOT 您可以输入${SRCROOT}/Pods
)
Correct the entries if necessary
如有必要,请更正条目