How to fix: the app references non-public symbols in payload/appname.app/projectname: _cmtimebasecreatewithmasterclock

Chanakya Hirpara
1 min readJul 7, 2023

Recently i came across this issue while uploading app using Xcode and struggled to find solution. So for people like me i am providing solution so that it can be resolved in small amount of time.

Steps:

  1. Open terminal and navigate using “cd command” to your project directory. e.g: cd “projectpath”.
  2. type “grep -r CMTimebaseCreateWithMasterClock .” in my case non-public symbol is“CMTimebaseCreateWithMasterClock” so i passed “CMTimebaseCreateWithMasterClock”. You can pass any other error string that is presented by Xcode to resolve such kind of solution.
  3. Hit enter and you will be listed with files or frameworks those are using non-public symbols.
  4. Now you can replace that framework or code that is used in file found by grep command.
  5. Re-upload an application and wow you can upload successfully it.

Please like, clap and follow for more posts.

--

--