我正在使用 pod 1.1.1 并遇到问题。
- Mac 上的 Xcode 7.3.1:Sierra
在安装后 Hook 上遇到问题,如果将其删除,我会收到 Segmentaton Fault 11。
[!] An error occurred while processing the post-install hook of the Podfile.
# 的未定义方法“项目”
post_install do |installer_representation|
installer_representation.project.targets.each do |target|
if target.name == 'Pods-T-Appboy-iOS-SDK'
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'ABK_ENABLE_IDFA_COLLECTION=1'
end
end
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
最佳答案
关于ios - 安装后 Hook 问题,并发生段错误 11,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40586634/