ln has a special syntax to create the symlink inside the last path if it's
a directory (or a symlink to a directory).
Also pass --strict to codesign --verify to catch this kind of error.
dest_path = os.path.join(frameworks_dir, framework)
dest_dylib_path = os.path.join(frameworks_dir, *parts[i:-1])
break
+ if os.path.exists(dest_path):
+ print dest_path, "already exists, skipping..."
+ return
args = ['mkdir', '-p', dest_dylib_path]
commands.append(args)
# Verify the signature
codesign -dv $src_app
-codesign --verify -v $src_app
+codesign --verify -v --strict $src_app
spctl -a -t exec -vv $src_app
# Validate that the key used for signing the binary matches the expected TeamIdentifier