Follow-up to 1d0452110f4b02f6d771c61d5c3a944f82b155f3

- Updated Xcode project

Signed-off-by: Haru <haru@dotalux.com>
Fixed some errors pointed out by clang's static analyzer

Signed-off-by: Haru <haru@dotalux.com>