问题
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.
回答1:
Finally figured it out!
- Go to the Project dropdown and select your Target
- Go to Build Settings
- Under Apple LLVM 9.0 - code generation, find Use Optimization Profile and select no
回答2:
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.
来源:https://stackoverflow.com/questions/48110213/apple-llvm-9-0-error-group-could-not-read-profile-no-such-file-or-directory-fou