Remove all of the attributes using setAttributes.
Or try doing this conditionally and enumerating the attributes to remove them one-by-one:
General Development and iPhone/iPad Developer
Remove all of the attributes using setAttributes.
Or try doing this conditionally and enumerating the attributes to remove them one-by-one: