Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcodebuild raises libSwiftCore error

Tags:

ios

xcodebuild

Im trying to build my application with xcode8 iOS 10 for simulator and i'm baffled by this error. It builds for release, just fine, however, it has a hard time building for simulator. I currently have both Objective-c and swift files in my source. Has anyone see this error before?

libswiftCore.dylib couldn't be copied

Here is the console log:

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
like image 581
Rafthecalf Avatar asked Dec 29 '25 00:12

Rafthecalf


1 Answers

I get this same error when I've run low on disk space. Try moving the project to another drive, clean the project, and re-build.

like image 100
lordjeff82 Avatar answered Dec 30 '25 15:12

lordjeff82



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!