fix clean and builds
fix for running on iOS
fix on iOS
update as sample code