gpt4 book ai didi

cocoapods - Xcode5 xcodebuild在预编译头包含Pods-environment.h时失败,在xcodebuild之前执行pod install

转载 作者:行者123 更新时间:2023-12-03 07:59:39 29 4
gpt4 key购买 nike

构建脚本的简化版本是:

# change Podfild here 
pod install
xcodebuild

它适用于 Xcode 4.6,但对于 Xcode5-DP5 它失败了。

fatal error: file '/path/to/myproject/Pods/Pods-environment.h' has been modified
since the precompiled header
'/Users/hiroshi/Library/Developer/Xcode/DerivedData/MyProject-gfmuvpipjscewkdnqacgumhfarrd/Build/Intermediates/PrecompiledHeaders/MyProject-Prefix-dwjpvcnrlaydzmegejmcvrtcfkpf/MyProject-Prefix.pch.pch'
was built

最佳答案

这样改buildactions就成功了。

# change Podfild here 
pod install
xcodebuild clean build

我猜 Xcode5 不会重新预编译预编译头,只有默认的 build buildaciton,需要先做 clean

关于cocoapods - Xcode5 xcodebuild在预编译头包含Pods-environment.h时失败,在xcodebuild之前执行pod install,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18436244/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com