iOS build stoped working with this error: panic: runtime error: invalid memory address or nil pointer dereference