iOS Xcode 15 Sandbox: rsync(xxxx) deny(1) file-write-create

问题

在Xcode 新建项目并pod install后,run的时候,遇到了如下的问题:


Showing Recent Errors Only
PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Intermediates.noindex/FoundationPodTest.build/Debug-iphonesimulator/FoundationPodTest.build/Script-E88C34EA17BFA0AB5702C3F2.sh (in target 'FoundationPodTest' from project 'FoundationPodTest')
    cd /Users/liyazhu/Desktop/Demo/FoundationPodTest/FoundationPodTest
    /usr/bin/sandbox-exec -D SCRIPT_OUTPUT_FILE_0\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FoundationPodTest.app/Frameworks/FMDB.framework -D SCRIPT_OUTPUT_FILE_1\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FoundationPodTest.app/Frameworks/HYYFoundation.framework -D SCRIPT_OUTPUT_FILE_2\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FoundationPodTest.app/Frameworks/KVOController.framework -D SCRIPT_OUTPUT_FILE_3\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FoundationPodTest.app/Frameworks/YYCategories.framework -D SCRIPT_INPUT_FILE_0\=/Users/liyazhu/Desktop/Demo/FoundationPodTest/FoundationPodTest/Pods/Target\ Support\ Files/Pods-FoundationPodTest/Pods-FoundationPodTest-frameworks-Debug-input-files.xcfilelist -D SCRIPT_INPUT_FILE_1\=/Users/liyazhu/Desktop/Demo/FoundationPodTest/FoundationPodTest/Pods/Target\ Support\ Files/Pods-FoundationPodTest/Pods-FoundationPodTest-frameworks-Debug-output-files.xcfilelist -D SCRIPT_INPUT_FILE_2\=/Users/liyazhu/Desktop/Demo/FoundationPodTest/FoundationPodTest/Pods/Target\ Support\ Files/Pods-FoundationPodTest/Pods-FoundationPodTest-frameworks.sh -D SCRIPT_INPUT_FILE_3\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FMDB/FMDB.framework -D SCRIPT_INPUT_FILE_4\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/HYYFoundation/HYYFoundation.framework -D SCRIPT_INPUT_FILE_5\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/KVOController/KVOController.framework -D SCRIPT_INPUT_FILE_6\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/YYCategories/YYCategories.framework -D SCRIPT_INPUT_FILE_7\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Intermediates.noindex/FoundationPodTest.build/Debug-iphonesimulator/FoundationPodTest.build/InputFileList-E88C34EA17BFA0AB5702C3F2-Pods-FoundationPodTest-frameworks-Debug-input-files-ea8abfaa884cbbf6a8bba06e1644990a-resolved.xcfilelist -D SCRIPT_INPUT_FILE_8\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Intermediates.noindex/FoundationPodTest.build/Debug-iphonesimulator/FoundationPodTest.build/OutputFileList-E88C34EA17BFA0AB5702C3F2-Pods-FoundationPodTest-frameworks-Debug-output-files-e50913a89662a9a9d6a0f9bc3f7dabaa-resolved.xcfilelist -D SCRIPT_INPUT_FILE_9\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Intermediates.noindex/FoundationPodTest.build/Debug-iphonesimulator/FoundationPodTest.build/Script-E88C34EA17BFA0AB5702C3F2.sh -D SCRIPT_INPUT_ANCESTOR_0\=/ -D SCRIPT_INPUT_ANCESTOR_1\=/Users -D SCRIPT_INPUT_ANCESTOR_2\=/Users/liyazhu -D SCRIPT_INPUT_ANCESTOR_3\=/Users/liyazhu/Desktop -D SCRIPT_INPUT_ANCESTOR_4\=/Users/liyazhu/Desktop/Demo -D SCRIPT_INPUT_ANCESTOR_5\=/Users/liyazhu/Desktop/Demo/FoundationPodTest -D SCRIPT_INPUT_ANCESTOR_6\=/Users/liyazhu/Desktop/Demo/FoundationPodTest/FoundationPodTest -D SCRIPT_INPUT_ANCESTOR_7\=/Users/liyazhu/Desktop/Demo/FoundationPodTest/FoundationPodTest/Pods -D SCRIPT_INPUT_ANCESTOR_8\=/Users/liyazhu/Desktop/Demo/FoundationPodTest/FoundationPodTest/Pods/Target\ Support\ Files -D SCRIPT_INPUT_ANCESTOR_9\=/Users/liyazhu/Desktop/Demo/FoundationPodTest/FoundationPodTest/Pods/Target\ Support\ Files/Pods-FoundationPodTest -D SCRIPT_INPUT_ANCESTOR_10\=/Users/liyazhu/Library -D SCRIPT_INPUT_ANCESTOR_11\=/Users/liyazhu/Library/Developer -D SCRIPT_INPUT_ANCESTOR_12\=/Users/liyazhu/Library/Developer/Xcode -D SCRIPT_INPUT_ANCESTOR_13\=/Users/liyazhu/Library/Developer/Xcode/DerivedData -D SCRIPT_INPUT_ANCESTOR_14\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd -D SCRIPT_INPUT_ANCESTOR_15\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build -D SCRIPT_INPUT_ANCESTOR_16\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Intermediates.noindex -D SCRIPT_INPUT_ANCESTOR_17\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Intermediates.noindex/FoundationPodTest.build -D SCRIPT_INPUT_ANCESTOR_18\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Intermediates.noindex/FoundationPodTest.build/Debug-iphonesimulator -D SCRIPT_INPUT_ANCESTOR_19\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Intermediates.noindex/FoundationPodTest.build/Debug-iphonesimulator/FoundationPodTest.build -D SCRIPT_INPUT_ANCESTOR_20\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products -D SCRIPT_INPUT_ANCESTOR_21\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator -D SCRIPT_INPUT_ANCESTOR_22\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FMDB -D SCRIPT_INPUT_ANCESTOR_23\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/HYYFoundation -D SCRIPT_INPUT_ANCESTOR_24\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/KVOController -D SCRIPT_INPUT_ANCESTOR_25\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/YYCategories -D SCRIPT_OUTPUT_ANCESTOR_0\=/ -D SCRIPT_OUTPUT_ANCESTOR_1\=/Users -D SCRIPT_OUTPUT_ANCESTOR_2\=/Users/liyazhu -D SCRIPT_OUTPUT_ANCESTOR_3\=/Users/liyazhu/Library -D SCRIPT_OUTPUT_ANCESTOR_4\=/Users/liyazhu/Library/Developer -D SCRIPT_OUTPUT_ANCESTOR_5\=/Users/liyazhu/Library/Developer/Xcode -D SCRIPT_OUTPUT_ANCESTOR_6\=/Users/liyazhu/Library/Developer/Xcode/DerivedData -D SCRIPT_OUTPUT_ANCESTOR_7\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd -D SCRIPT_OUTPUT_ANCESTOR_8\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build -D SCRIPT_OUTPUT_ANCESTOR_9\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products -D SCRIPT_OUTPUT_ANCESTOR_10\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator -D SCRIPT_OUTPUT_ANCESTOR_11\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FoundationPodTest.app -D SCRIPT_OUTPUT_ANCESTOR_12\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FoundationPodTest.app/Frameworks -D SRCROOT\=/Users/liyazhu/Desktop/Demo/FoundationPodTest/FoundationPodTest -D PROJECT_DIR\=/Users/liyazhu/Desktop/Demo/FoundationPodTest/FoundationPodTest -D OBJROOT\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Intermediates.noindex -D SYMROOT\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products -D DSTROOT\=/tmp/FoundationPodTest.dst -D SHARED_PRECOMPS_DIR\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Intermediates.noindex/PrecompiledHeaders -D CACHE_ROOT\=/var/folders/h_/83ncwdr50rl1jgn9j4c2v6tw0000gn/C/com.apple.DeveloperTools/15.0-15A240d/Xcode -D CONFIGURATION_BUILD_DIR\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator -D CONFIGURATION_TEMP_DIR\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Intermediates.noindex/FoundationPodTest.build/Debug-iphonesimulator -D LOCROOT\=/Users/liyazhu/Desktop/Demo/FoundationPodTest/FoundationPodTest -D LOCSYMROOT\=/Users/liyazhu/Desktop/Demo/FoundationPodTest/FoundationPodTest -D INDEX_PRECOMPS_DIR\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Index.noindex/PrecompiledHeaders -D INDEX_DATA_STORE_DIR\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Index.noindex/DataStore -D TEMP_DIR\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Intermediates.noindex/FoundationPodTest.build/Debug-iphonesimulator/FoundationPodTest.build -D TARGET_TEMP_DIR\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Intermediates.noindex/FoundationPodTest.build/Debug-iphonesimulator/FoundationPodTest.build -D DERIVED_FILE_DIR\=/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Intermediates.noindex/FoundationPodTest.build/Debug-iphonesimulator/FoundationPodTest.build/DerivedSources -f /Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Intermediates.noindex/FoundationPodTest.build/Debug-iphonesimulator/FoundationPodTest.build/1aa632d4bc95fc2dc3896fbd09591f33.sb /bin/sh -c /Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Intermediates.noindex/FoundationPodTest.build/Debug-iphonesimulator/FoundationPodTest.build/Script-E88C34EA17BFA0AB5702C3F2.sh

error: Sandbox: rsync(83514) deny(1) file-write-create /Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FoundationPodTest.app/Frameworks/FMDB.framework/_CodeSignature (in target 'FoundationPodTest' from project 'FoundationPodTest')
error: Sandbox: rsync(83515) deny(1) file-write-create /Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FoundationPodTest.app/Frameworks/FMDB.framework/.FMDB.3jsiTY (in target 'FoundationPodTest' from project 'FoundationPodTest')
error: Sandbox: rsync(83515) deny(1) file-write-create /Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FoundationPodTest.app/Frameworks/FMDB.framework/.Info.plist.BO4zG1 (in target 'FoundationPodTest' from project 'FoundationPodTest')
mkdir -p /Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FoundationPodTest.app/Frameworks
rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FMDB/FMDB.framework" "/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FoundationPodTest.app/Frameworks"
building file list ... done
FMDB.framework/FMDB
FMDB.framework/Info.plist
FMDB.framework/_CodeSignature/
rsync: recv_generator: mkdir "/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FoundationPodTest.app/Frameworks/FMDB.framework/_CodeSignature" failed: Operation not permitted (1)
*** Skipping everything below this failed directory ***
rsync: mkstemp "/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FoundationPodTest.app/Frameworks/FMDB.framework/.FMDB.3jsiTY" failed: Operation not permitted (1)
rsync: mkstemp "/Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FoundationPodTest.app/Frameworks/FMDB.framework/.Info.plist.BO4zG1" failed: Operation not permitted (1)

sent 354012 bytes  received 70 bytes  708164.00 bytes/sec
total size is 357340  speedup is 1.01
rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/d9889869-120b-11ee-b796-7a03568b17ac/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]

Sandbox: rsync(83514) deny(1) file-write-create /Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FoundationPodTest.app/Frameworks/FMDB.framework/_CodeSignature

Sandbox: rsync(83515) deny(1) file-write-create /Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FoundationPodTest.app/Frameworks/FMDB.framework/.FMDB.3jsiTY

Sandbox: rsync(83515) deny(1) file-write-create /Users/liyazhu/Library/Developer/Xcode/DerivedData/FoundationPodTest-fzqialiskgziqaajuzeodfplvyrd/Build/Products/Debug-iphonesimulator/FoundationPodTest.app/Frameworks/FMDB.framework/.Info.plist.BO4zG1


错误图片

解决方案:

设置里面搜索user 把User Script Sanboxing 改为NO
在这里插入图片描述

新版本的Xcode 15 编译报该错误 右侧工具栏 项目的workspace 和 pod的 space 都选择为15.0 即可
在这里插入图片描述
在这里插入图片描述

参考文档:https://www.jianshu.com/p/b28af79dc06c

  • 10
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值