I am struggling to build app with unity on xcode. In the beginning, I could not build the app on my iPhone from xcode because I got this error
This iPhone 8 (Model A1863, A1905, A1906, A1907) is running iOS 12.1.2 (16C101), which may not be supported by this version of Xcode.
I also tried to install the older version xcode but it did not work since it requires new version as mentioned above.
Then, I attempted to reinstall xcode now and got error
Xcode can’t be installed on “Macintosh HD” because macOS version 10.13.6 or later is required.
I am using version 10.12.6 macOS Sierra and I think that there should be available installation version 10.13.6 on my App Store but 10.13 doesn't show up in my app store updates section. Therefore, I went to Apple official page to upgrade to 10.13 but it said that this update requires macOS version 10.13. I cannot install even version version 10.13.
How can I update my OS and install xcode to solve this issue ?