rakefile: handle iOS distribution build mode