简体   繁体   English

我的应用程序创建了/ var / mobile /文件夹,但在Finder中找不到它

[英]my app creates the /var/mobile/ folder but I can't find it in Finder

My Xcode app creates a document and resource path. 我的Xcode应用程序创建一个文档和资源路径。 Please see the console output below when I print out these two path variables: 当我打印出这两个路径变量时,请参见下面的控制台输出:

在此处输入图片说明

However, when I try to find this folder in Finder, I'm told the folder doesn't exist. 但是,当我尝试在Finder中查找此文件夹时,会提示该文件夹不存在。

在此处输入图片说明

Why?! 为什么?!

The code for getting the two paths are below: 获取两条路径的代码如下:

// Get the path to the resource directory.
    NSString* resourcePath= [[NSBundle mainBundle] resourcePath];
    std::string *resourcePathCPP = new std::string([resourcePath UTF8String]);

    // Get the path to the Documents direcotory
    NSArray* paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString* documentsPath = ([paths count] > 0) ? [paths objectAtIndex:0] : nil;
    std::string *documentsPathCPP = new std::string([documentsPath UTF8String]);

Thanks! 谢谢!

That should be on your iPhone/iPad's file system, not on your Mac. 那应该在您的iPhone / iPad的文件系统上,而不是在您的Mac上。 Otherwise Go to folder ... Is the right way to check a directory. 否则, 转到文件夹...是检查目录的正确方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Finder找不到文件夹消息:为什么? - Finder Can't find the folder message: Why? 找不到 ios 文档的 /var/mobile/applications 目录 - can't find /var/mobile/applications directory for ios documents 在 Finder 中看不到 ios .app 包 - Can't see ios .app package in Finder 如何在Finder中镜像我的项目文件夹结构? - How can I get my project's folder structure to be mirrored in Finder? 当我将 iPhone 连接到 MacBook 时,Finder 不显示我创建的应用程序 - When I connected my iPhone to a MacBook, the Finder doesn't show the app I created 如何在iPhone模拟器文件夹下找到我的应用程序文件? - How can I find my app files under iPhone Simulator folder? 为什么我不能在按钮操作中使用var值? - why I can't use var value in my button action? 找不到我的应用程序崩溃的原因 - Can't find the cause of my app crashing 我无法提交我的 App Store 应用程序,因为它没有看到 assets 文件夹。 解决办法是什么? - I can't submit my App store App because it doesn't see the assets folder. What is the solution? “Xcode 找不到任何匹配的 iOS 应用程序开发配置文件......”。 我可以在没有真正的移动设备的情况下解决这个问题吗? - "Xcode couldn't find any iOS App Developement provisioning profiles matching..". Can I fix this without a real mobile device?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM