Photo library is not yet available.
I cannot get my iphone XsMax to sync with my iMac(Catalina). Both system software have been updated to the latest version. Whenever I sync, the message 'Photos cannot be synced to the iphone because your photos library is not yet available. Please try again later'. I have restored my iphone, turn on and off my iMac and yet the problem still persist. I have no issue before updated to Catalina but now I am stucked. Any one has any suggestion to resolve this?
iMac 27″, macOS 10.15