gpt4 book ai didi

ios - 未找到“GeneratedDotEnv.m”文件

转载 作者:行者123 更新时间:2023-11-29 11:29:06 25 4
gpt4 key购买 nike

我正在创建一个 React Native 应用程序,我在其中使用 react-native-config 来构建不同的版本。尝试存档项目时出现此错误。谁能帮我解决这个问题?

最佳答案

将下面的 post_install 脚本添加到您的 podfile

post_install do |installer|
installer.pods_project.targets.each do |target|
targets_to_ignore = %w(React)

if targets_to_ignore.include? target.name
target.remove_from_project
end

if target.name == 'react-native-config'
phase = target.project.new(Xcodeproj::Project::Object::PBXShellScriptBuildPhase)
phase.shell_script = "cd ../../"\
" && RNC_ROOT=./node_modules/react-native-config/"\
" && export SYMROOT=$RNC_ROOT/ios/ReactNativeConfig"\
" && export BUILD_DIR=$RNC_ROOT/ios/ReactNativeConfig"\
" && ruby $RNC_ROOT/ios/ReactNativeConfig/BuildDotenvConfig.ruby"

target.build_phases << phase
target.build_phases.move(phase,0)
end
end
end

请引用这个GitHub-Issue

关于ios - 未找到“GeneratedDotEnv.m”文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55449199/

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