标题:mac下开放个app,为什么fopen打不开文件那,是什么原因那?
取消只看楼主
qq871852072
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2020-9-29
 问题点数:0 回复次数:0 
mac下开放个app,为什么fopen打不开文件那,是什么原因那?
FILE *srcFile = fopen(binaryPath, "r");
        if (srcFile == NULL)
        {
            int errNum = 0;
            errNum = errno;
            printf("open fail errno = %d reason = %s \n", errNum, strerror(errNum));
            fprintf(stderr, "Error: Could not open binary %s\n", binaryPath);
            exit(1);
        }
显示结果是
open fail errno = 1 reason = Operation not permitted
Error: Could not open binary /Users/sorke/Library/Developer/Xcode/DerivedData/testOpen-bubwyliyuporlthhugwnbxxxdhph/Build/Products/Debug-iphoneos/testDynamic.dylib
搜索更多相关主题的帖子: mac fopen not open 原因 
2020-09-29 11:18



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-503317-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.052371 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved