3

I have created distribution certificate and distribution provision profile. while trying to build application. Its throwing following error.

Could not read profile /Users/nan/Projects/Projectname/node_modules/react-native/React/OptimizationProfiles/React.profdata: No such file or directory

Please let me know where I'm going wrong.

Kartiikeya
  • 2,358
  • 7
  • 33
  • 68

2 Answers2

3

Finally figured it out!

  1. Go to the Project dropdown and select your Target
  2. Go to Build Settings
  3. Under Apple LLVM 9.0 - code generation, find Use Optimization Profile and select no
ziennaLabs
  • 31
  • 2
0

Guessing your xCode is up to date

Go to Project -> Build Setting -> Apple LLVM 9.2-code generation

and clear Optimization Profile File

Clean Your project.....

Hope it will work for you.

harsha.kuruwita
  • 1,315
  • 12
  • 21