React Native Release模式下x86_64架构Swift编译构建失败求助
大家好,我碰到一个棘手的问题:平时用react-native run-ios在Debug模式下运行项目完全正常,但切换到Release模式执行react-native run-ios --configuration Release时,构建直接失败了,具体报错信息如下:
BUILD FAILED
The following build commands failed:
SwiftEmitModule normal x86_64 Emitting\ module\ for\ FieldRocket (in target 'FieldRocket' from project 'FieldRocket')
SwiftCompile normal x86_64 Compiling\ ExpoModulesProvider.swift /Users/kodyk/SoftEngineering/ServiceRocketMobile/ios/Pods/Target\ Support\ Files/Pods-FieldRocket/ExpoModulesProvider.swift (in target 'FieldRocket' from project 'FieldRocket')
SwiftCompile normal x86_64 /Users/kodyk/SoftEngineering/ServiceRocketMobile/ios/Pods/Target\ Support\ Files/Pods-FieldRocket/ExpoModulesProvider.swift (in target 'FieldRocket' from project 'FieldRocket')
SwiftCompile normal x86_64 Compiling\ noop-file.swift /Users/kodyk/SoftEngineering/ServiceRocketMobile/ios/FieldRocket/noop-file.swift (in target 'FieldRocket' from project 'FieldRocket')
SwiftCompile normal x86_64 /Users/kodyk/SoftEngineering/ServiceRocketMobile/ios/FieldRocket/noop-file.swift (in target 'FieldRocket' from project 'FieldRocket')
(5 failures)
有没有朋友遇到过类似的情况?或者能给我一些排查方向的建议?比如是不是Release模式下的架构配置、Swift编译选项出了问题?麻烦大家帮我看看,谢谢啦!
备注:内容来源于stack exchange,提问作者Kody_06

