1. 新建工程:

Xcode 添加.pch

 

2. 创建pch文件:

Xcode 添加.pch

 

3. 在setting里面进行设置:

Xcode 添加.pch

 


将building setting中的precompile header选项的路径添加“$(SRCROOT)/项目名称/pch文件名”(例如:$(SRCROOT)/LotteryFive/LotteryFive-Prefix.pch)

Xcode 添加.pch

可以了,编译一下程序,如果有错误检查一下添加的路径是否正确。

相关文章:

  • 2022-12-23
  • 2021-07-06
  • 2022-12-23
  • 2021-05-29
  • 2021-10-27
  • 2021-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-30
  • 2021-12-07
  • 2021-10-16
  • 2022-12-23
  • 2021-12-16
  • 2021-04-15
相关资源
相似解决方案