adding theo's fixes to PG simple

these are the fixes that theo added the PG in dev apps, which fixes IOS project generation.