We will entertain your mind, enhance your brain, expand your lifestyle.

Permission

We performed an iOS build for the first time in a while to check the development status and encountered various errors. Come to think of it, this was my first time running a Unity build followed by an Xcode build on this new machine. The main errors are listed below.

  • xcrun: error: SDK “iphoneos” cannot be located
  • Certificate File Missing Private Key
  • UnityFramework/UnityFramework.h file not found
  • GameAssembly build error

The first two issues were due to insufficient preparation for the Xcode build. Regarding the personal authentication file, we had copied it from my old machine, but the private key failed to transfer.

  • Set Xcode path to Command Line Tools
  • Regenerate the personal authentication file.

The third issue took the most time to address. We sought guidance from Gemini and tried various approaches to resolve it, but none of them worked.

  • Temporarily disable Xcode’s security restrictions (sandboxing)
  • Disable parallel builds.
  • Explicitly add targets and control the order in the scheme editor.
  • Changing project folder and file permissions

After endlessly tweaking the build settings, we suddenly realized we simply couldn’t open the Unity build file. It turned out the whole issue was just that Xcode hadn’t been granted Full Disk Access.