排毒构建失败,原因是抛出YogaKit.modulemap致命错误
Xcode版本:-11.3 “反应”:“ 16.11.0”, “本机”:“ 0.62.2” “ detox”:“ 13.3.0”,也尝试了最新的16版本
但是使用以下配置成功构建了
“依赖项”:{ “ react”:“ ^ 16.3.0-alpha.1”, “本机”:“ 0.59.9” }, “ devDependencies”:{ “ babel-jest”:“ 22.4.1”, “ babel-preset-react-native”:“ 4.0.0”, “排毒”:“ 13.3.0”, “ jest”:“ 22.4.2”, “ mocha”:“ ^ 5.0.4”, “ react-test-renderer”:“ ^ 16.3.0-alpha.1”
**成功建立**
我认为最新版本的react-native与排毒不兼容。我试图获得Yogakit的决心,但没有成功。
请告诉我是否需要任何内容。如果有人与最新的react-native共享工作配置,我将不胜感激。
严重错误:模块映射文件...... / ios / build / Build / Products / Debug-iphonesimulator / YogaKit / YogaKit.modulemap' 未找到 产生1个错误。 产生20个错误。 致命错误:模块映射文件'..... / ios / build / Build / Products / Debug-iphonesimulator / YogaKit / YogaKit.modulemap' 未找到 产生1个错误。 产生22个错误。**生成失败**
以下构建命令失败: CompileC /....../ios/build/Build/Intermediates.noindex/King.build/Debug-iphonesimulator/King.build/Objects-normal/x86_64/AppDelegate.o /....../ios/ King / AppDelegate.m普通x86_64objective-c com.apple.compilers.llvm.clang.1_0.compiler (1次失败) detox [29631]错误:[cli.js]错误:命令失败:xcodebuild -project ios / King.xcodeproj -scheme King -configuration Debug -sdk iphonesimulator -derivedDataPath ios / build`
答案 0 :(得分:22)
在package.json中查看此配置
db.collection.aggregrate([{income:{$exists:true}}, {$project:{income:1, Averageincome: {$cond:{if;{$gte:{$'income', 40000]}, then: true, else:false}}}}])
看看那个
对于React Native 0.60或更高版本,或工作空间中的任何其他iOS应用(例如:CocoaPods),请使用-workspace ios / example.xcworkspace而不是-project。
答案 1 :(得分:2)
这就是我的工作方式:
答案 2 :(得分:0)
Xcode菜单->文件->另存为工作区->(无标题) 然后在Xcode中打开该工作区文件, 它会工作
然后
答案 3 :(得分:0)
我不确定排毒是什么东西,所以希望这不是话题
我通过研究一个缺少的YogaKit.modulemap遇到了这个问题,该错误未找到pod install
后出现的错误(抱歉,我没有确切的错误)。
我通过打开[project] .xcworkspace然后在顶部Product > Clean Build Folder
OR
shift + command + k
在再次尝试运行项目之前,请确保Xcode已完成构建的清理。
答案 4 :(得分:0)
在Podfile目标上安装后...
post_install do |installer|
flipper_post_install(installer)
installer.pods_project.targets.each do |target|
if target.name == 'YogaKit'
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.1'
end
end
end
end