gpt4 book ai didi

ios - xcodebuild 引发 libSwiftCore 错误

转载 作者:可可西里 更新时间:2023-11-01 06:21:26 28 4
gpt4 key购买 nike

我正在尝试使用 xcode8 iOS 10 为模拟器构建我的应用程序,但我对这个错误感到困惑。它为发布而构建,很好,但是,它很难为模拟器构建。我目前的源代码中同时包含 Objective-c 和 swift 文件。有人以前见过这个错误吗?

无法复制 libswiftCore.dylib

这是控制台日志:

13:42:35 Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftRemoteMirror.dylib to /Users/myUser/dir/artifacts/Debug-iphonesimulator/myApp.app/libswiftRemoteMirror.dylib
13:42:35 Probing signature of /Users/myUser/dir/artifacts/Debug-iphonesimulator/myApp.app/Frameworks/libswiftCore.dylib
13:42:35 /usr/bin/codesign '-r-' '--display' '/Users/myUser/dir/artifacts/Debug-iphonesimulator/myApp.app/Frameworks/libswiftCore.dylib'
13:42:35 error: "libswiftCore.dylib" couldn't be copied to "(A Document Being Saved By xcodebuild)".
13:42:35
13:42:36 ** BUILD FAILED **
13:42:36
13:42:36
13:42:36 The following build commands failed:
13:42:36 CopySwiftLibs /Users/myUser/dir/artifacts/Debug-iphonesimulator/myApp.app
13:42:36 (1 failure)
13:42:36 Build step 'Execute shell' marked build as failure
13:42:39 Archiving artifacts
13:45:06 Finished: FAILURE

最佳答案

当磁盘空间不足时,我会遇到同样的错误。尝试将项目移动到另一个驱动器,清理项目,然后重新构建。

关于ios - xcodebuild 引发 libSwiftCore 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39520212/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com