On Friday (June 10), I was able to build and export a build of my Mac App. Saturday, I could not. Xcode fails with an error "Copy Failed."
After some digging, I discovered that the error is caused by sandboxd preventing ditto from copying a storyboard:
ditto(2310) System Policy: deny forbidden-link-priv
Process: ditto [2310]
Path: /usr/bin/ditto
Load Address: 0x107ca9000
Identifier: ditto
Version: ??? (???)
Code Type: x86_64 (Native)
Parent Process: Xcode [621]
User ID: 501
Date/Time: 2016-06-14 12:07:22.557 -0700
OS Version: Mac OS X 10.11.6 (15G12a)
Report Version: 8
Thread 0:
0 libsystem_kernel.dylib 0x00007fff971c7f42 link + 10
1 Bom 0x00007fff92068259 _copyFromDirToDir + 1376
2 Bom 0x00007fff9206d130 _copyDir + 2085
3 Bom 0x00007fff920681ca _copyFromDirToDir + 1233
4 Bom 0x00007fff9206d130 _copyDir + 2085
5 Bom 0x00007fff920681ca _copyFromDirToDir + 1233
6 Bom 0x00007fff9206d130 _copyDir + 2085
7 Bom 0x00007fff920681ca _copyFromDirToDir + 1233
8 Bom 0x00007fff9206614a BOMCopierCopyWithOptions + 11546
9 ditto 0x0000000107cab3d7
10 libdyld.dylib 0x00007fff9808a5ad start + 1
Binary Images:
0x107ca9000 - 0x107cacffb ditto (51) <cfbc779f-d3aa-3705-91cb-ce0af3c20cfb> /usr/bin/ditto
0x7fff92056000 - 0x7fff92093ff3 com.apple.bom (14.0 - 193.7) <9b8ae30b-24a3-37ab-b04e-4ce67aed4775> /System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
0x7fff971b0000 - 0x7fff971ceff7 libsystem_kernel.dylib (3248.60.4) <beb4a326-7682-3347-929e-4ad13e29ab17> /usr/lib/system/libsystem_kernel.dylib
0x7fff98087000 - 0x7fff9808affb libdyld.dylib (360.22) <cc088c2a-d407-33e7-a6b6-b06e0d4ad999> /usr/lib/system/libdyld.dylibI've tried a number of things suggested on the forums, but nothing has worked so far. What's weird is that all other files are copied fine. It's always this same pair of storyboard files that fails. It fails if I run the command myself via Terminal, too.
Any help is really appreciated!