fixes #1775 where it can't run in iOS simulator

This samples can't be invalidated in this case.