"(assign) __weak" is not allowed. Also, this project doesn't use ARC so probably shouldn't be using weak anyway. Removed references to "__weak".
updated code to build without warnings when building for archive