I switched a project to the New Build System to see what it was like. The result was not good. My app is created, but fails upon launch due to a codesign error. What is strange is that codesign says all is OK. Also, switching back to the default build system resolves the issue.
$ codesign -dv old-build-system/GeoTag.app (copied the build folder to the desktop to compare with the new build system code)
Executable=/Users/marc/Desktop/Build/Products/Debug/GeoTag.app/Contents/MacOS/GeoTag
Identifier=org.snafu.GeoTag
Format=app bundle with Mach-O thin (x86_64)
CodeDirectory v=20200 size=4752 flags=0x0(none) hashes=141+5 location=embedded
Signature size=4685
Signed Time=Feb 23, 2018 at 4:48:01 PM
Info.plist entries=28
TeamIdentifier=A3UXBEBE8Z
Sealed Resources version=2 rules=13 files=242
Internal requirements count=1 size=176$ codesign -dv new-build-system/GeoTag.app
Executable=/Users/marc/Library/Developer/Xcode/DerivedData/GeoTag-aqjdodmrxrygnggelbxhetiiwrcm/Build/Products/Debug/GeoTag.app/Contents/MacOS/GeoTag
Identifier=org.snafu.GeoTag
Format=app bundle with Mach-O thin (x86_64)
CodeDirectory v=20200 size=4752 flags=0x0(none) hashes=141+5 location=embedded
Signature size=4685
Signed Time=Feb 26, 2018 at 2:18:51 PM
Info.plist entries=28
TeamIdentifier=A3UXBEBE8Z
Sealed Resources version=2 rules=13 files=241
Internal requirements count=1 size=176Similar, but there is one less file. The binary file generated by the two build systems are also different with the old binary being 176 bytes larger. Notice that 176 is also the size of teh internal requirements. And another difference is in the generated CodeResources file... the file created under the new build system is missing this bit:
<key>embedded.provisionprofile</key>
<dict>
<key>hash</key>
<data>
HbRKMmw84D6zwoCtZ3iR65jpvRI=
</data>
<key>hash2</key>
<data>
IcwPZc9G9KPpdHJdrYerYB3e2ZJV9aUZ+AYnhVfT84k=
</data>
</dict>So the question is: is there something I need to change in my Xcode/project configuration or is it a bug with the new build system?